Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix combined queues and remove broken retry log link for multi repo queues #165

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Skgland
Copy link
Contributor

@Skgland Skgland commented Feb 18, 2022

No description provided.

bors.rust-lang.org mentions

> Homu provides a few simple ways to customize the queue's contents to fit your needs:
>
> * queue/rust+cargo will combine the queues of the rust and cargo repos (for example).

but it appears 963762a broke this by early aborting to a 404 without checking this case
@Mark-Simulacrum
Copy link
Member

I would prefer to drop support for showing a queue across multiple repositories, rather than trying to fix it. I don't think we need that feature, and dropping support seems likely to be safer/simpler/more maintainable in the long run.

@Skgland
Copy link
Contributor Author

Skgland commented Feb 19, 2022

Removing combined queues appears reasonable given how long this breakage went unnoticed, but I like to view the "all" queue as I find it gives a nice overview.

Comment on lines +121 to +126
if repo_label == 'all':
labels = g.repos.keys()
else:
labels = repo_label.split('+')
if any(label not in g.cfg['repo'] for label in labels):
abort(404)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This suggestion could be applied to remove the support for combining queues with + but keep the all queue

Suggested change
if repo_label == 'all':
labels = g.repos.keys()
else:
labels = repo_label.split('+')
if any(label not in g.cfg['repo'] for label in labels):
abort(404)
if repo_label == 'all':
labels = g.repos.keys()
elif repo_label in g.cfg['repo']:
labels = [repo_label]
else:
abort(404)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants