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

Fixed KeyError exception in self._pending_builders.sort(key=lambda bn: self._pending_builders_submitted_at[bn]) #10

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

slydiman
Copy link
Collaborator

_activityLoopIter() may be executed inside getOldestRequestTime() because of yield. So _pending_builders_submitted_at may be cleared in the middle of the loop in _maybeStartBuildsOn(). Use a local dict to accumulate submitted_at values for new_builders.

…: self._pending_builders_submitted_at[bn])

_activityLoopIter() may be executed inside getOldestRequestTime() because of yield. So _pending_builders_submitted_at may be cleared in the middle of the loop in _maybeStartBuildsOn(). Use a local dict to accumulate submitted_at values for new_builders.
@slydiman slydiman requested review from gkistanova and andreil99 June 13, 2024 16:51
Copy link
Owner

@gkistanova gkistanova left a comment

Choose a reason for hiding this comment

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

LGTM.

@gkistanova gkistanova merged commit ce5f583 into llvm/3.x Jun 17, 2024
11 checks passed
gkistanova pushed a commit that referenced this pull request Jul 7, 2024
…: self._pending_builders_submitted_at[bn]) (#10)

_activityLoopIter() may be executed inside getOldestRequestTime() because of yield. So _pending_builders_submitted_at may be cleared in the middle of the loop in _maybeStartBuildsOn(). Use a local dict to accumulate submitted_at values for new_builders.
@slydiman slydiman deleted the fix2-build-requests-submitted_at branch July 25, 2024 19:51
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