Repository navigation
Turn host pressure off in the E13 B2 recovery test - #2246
Merged
Merged
Conversation
TestAppBackgroundE13B2QueuedTaskAcquiresAndSettlesAtStartup waited 30 s for a queued task to settle, but the admission governor holds a queued task while the host's load is at or over 1.5 per core or memory is under the floor. Under a full test run the host stays busy and the task stays queued, so the wait ran out. The governor is doing its job. The test now turns both ceilings off through the settings a person uses. The wait and every assertion are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What fails
TestAppBackgroundE13B2QueuedTaskAcquiresAndSettlesAtStartuptimes out onB2 startup recovery acquired and settled the queued taskduring full test runs.Cause
This is test timing that comes from the host. The admission governor holds a queued task while load is at or over
task.max_load(1.5 per core) or memory is undertask.min_free_mb, and it re-checks every 5 s. A full run keeps the host over that line for the test's 30 s wait, so recovery has already acquired and stopped the old process but task 2 staysqueued.In real use this is the intended "machine busy" hold. The task starts when the machine quiets.
Change
The test sets both ceilings to 0 through the settings rows. The wait and all assertions are unchanged.
Evidence
hostLoadtemporarily returning 99, the old test fails in 30.45 s with the same line and the sameacquires=1andqueuedstate. With this change, 3 of 3 pass.recovered as unverifiedis the normal log line of a passing run with this fixture's model. It appeared in all 15 passes and in none of the 6 failure logs read.🤖 Generated with Claude Code