Skip to content

Turn host pressure off in the E13 B2 recovery test - #2246

Merged
santoshkumarradha merged 4 commits into
app/v3from
fix/c41-b2-busy-machine
Nov 3, 2026
Merged

santoshkumarradha merged 4 commits into
app/v3from
fix/c41-b2-busy-machine

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What fails

TestAppBackgroundE13B2QueuedTaskAcquiresAndSettlesAtStartup times out on B2 startup recovery acquired and settled the queued task during 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 under task.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 stays queued.

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

  • Forced red: with hostLoad temporarily returning 99, the old test fails in 30.45 s with the same line and the same acquires=1 and queued state. With this change, 3 of 3 pass.
  • Alone on a quiet box: the old test passes 15 of 15 in under 1 s.
  • recovered as unverified is 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

santoshkumarradha and others added 4 commits November 2, 2026 15:09
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]>
@santoshkumarradha
santoshkumarradha merged commit 15db2c5 into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the fix/c41-b2-busy-machine branch November 3, 2026 07:19
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.

1 participant