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

Refactor utils.py #637

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Refactor utils.py #637

merged 2 commits into from
Jan 7, 2025

Conversation

cvicentiu
Copy link
Member

This PR introduces two changes:

  1. Introduce type hints.
  2. Clean up branch-prioritisation logic.
  3. Removes unused code

The branch prioritisation logic should be double checked.

utils.py Show resolved Hide resolved
utils.py Outdated Show resolved Hide resolved
@cvicentiu cvicentiu force-pushed the refactor-3 branch 2 times, most recently from 7c18870 to 7a6bfb2 Compare January 7, 2025 13:38
@cvicentiu cvicentiu force-pushed the refactor-3 branch 4 times, most recently from 592abdd to 41590c3 Compare January 7, 2025 16:31
1. Introduce typehints
2. Include what you use.
The sorting key sorts in the following priority order:
1. First release branches
2. Next branches that create packages
3. Finally, first come, first serve.

This sort key has the added benefit of ensuring that for equal priority
build requests, the one that was first in queue is the first picked up.
Buildbot documentation does not make any guarantees that the initial
requests list is sorted by submit time.
@RazvanLiviuVarzaru RazvanLiviuVarzaru merged commit 2cb618b into dev Jan 7, 2025
8 checks passed
@grooverdan grooverdan deleted the refactor-3 branch January 9, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants