Repository navigation
A release check still running is a wait, never a refused model - #983
Merged
Merged
Conversation
The hourly check and the step before applying asked blocking(), true for
a check still running, a check that didn't finish and a refused model
alike, and both gave "a model this release calls was refused; checking
again daily", even minutes before the check passed.
- check_hold tells the three apart: pending ("waiting for the release
check; trying again next hour"), stalled (started again by the next
hourly check, which says so) and refused (the reason as before). decide
and the step before applying return the reason and its kind as `check`.
- notify_blocked never tells a check that is pending or didn't finish;
a refused model is still told once.
- The next hourly check installs once the check has passed.
- Docs: the model check section of updates.md. Incident case xv.
- Tests: the three reasons are distinct; no notice for a wait; pending
then verified installs at the next hourly check; a stalled check is
started again; a refused model is told once.
Contributor
|
💚 Post-merge health check passed: the deploy of
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A release whose signature was still being checked had a pending model check, and the hourly check said "a model this release calls was refused; checking again daily" minutes before the check passed. A check still running, a check that didn't finish and a refused model now each have their own reason, and only a refused model is told to the admins.
Changes
check_hold(record, version)returns the kind and reason:pending("waiting for the release check; trying again next hour"),stalled("the release check didn't finish; starting it again, trying again next hour") orrefused(the reason as before).blocking()is kept as a yes or no over it.decide()and the step before applying give that reason, and its kind ascheckon the decision. A stored stalled check is started again by the next hourly check, and the decision says so.notify_blocked()never tells a check that is pending or didn't finish. A refused model is still emailed once.docs/self-host/updates.md. Incident casexv_pending_check_is_a_wait.Verification
python3 -m unittest discover -s lambda/tests: 676 pass. Newtest_updater_check_pending.py: the three reasons are distinct and neither wait reads as a refusal;decide()gives each its own reason;notify_blocked()sends nothing for a wait; a pending check sends no notice and the next hourly check installs once it has passed; a stalled check is started again and says so; a refused model is told once.python3 -m unittest discover -s .github/scripts: 222 pass.check_workflows.pyandbrand_spelling.pypass.cargo test -p worker -- incidents::: 974 passed, including the new case.