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

backend: unknown resalloc tickets helper cleanup #3419

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

praiskup
Copy link
Member

If no tickets are taken (which often happens in the staging environment), this script encountered corner case issues.

@@ -33,7 +33,9 @@ def used_ids():
output = output.strip()
tickets = set()
for ticket_id in output.split("\n"):
assert all(c.isdigit() for c in ticket_id)
if len(ticket_id) <= 0:
Copy link
Member

Choose a reason for hiding this comment

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

This needs an explanation. A length of a string ticket ID, is a weird thing to calculate. Are you basically doing if ticket_id:?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, updated

If no tickets are taken (which often happens in the staging
environment), this script encountered corner case issues.
@xsuchy xsuchy merged commit 658230d into fedora-copr:main Sep 24, 2024
7 checks passed
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.

3 participants