Repository navigation
TEST: Remove merge-queue correctness-test timing races - #3278
Merged
Roman Lutz (romanlutz) merged 2 commits intoOct 17, 2026
Merged
Roman Lutz (romanlutz) merged 2 commits into
Roman Lutz (romanlutz) merged 2 commits into
Conversation
Await scenario task completion and modal accessibility. Use finite correctness watchdogs without changing production deadlines. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0c4473a3-e3cd-44e2-9b2c-f11dd78a19de
Roman Lutz (romanlutz)
approved these changes
Oct 17, 2026
Roman Lutz (romanlutz)
enabled auto-merge
October 17, 2026 03:04
|
There was an error handling pipeline event 2f349945-6948-4214-9c59-4ea8e5444760. |
This was referenced Oct 17, 2026
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.
Description
Fix the unrelated test timing failures seen while #3221 was in the merge queue. This PR starts from current
main. It does not change #3221 or production code.wait_for(gather(...)); the traceback shows the gather finished with valid snapshots.aria-hidden. Its immediate button query found no accessible roles.finally.#3138 and #3207 are already merged. The fresh-launch metadata test still used the old polling helper. Reuse the completion helper rather than add another polling deadline.
The analytics fixture retains real SDK execution, SQL, serialization, admission, cancellation, and cleanup. Production request deadlines do not change. The explicit timeout test still forces expiry through its controlled event and checks the 504 response and retained cleanup ownership.
Open #3268 overlaps the analytics fixture and its coupled test assertion. It also changes the old resume polling helper. This PR does not depend on it or include its wider CI changes; the fresh-launch test no longer uses that polling helper.
Tests and Documentation
Local validation on Windows, using the worktree environment from
uv sync --frozen --extra all:uv run --no-sync pytest -q -n 4 --dist=loadfile tests\unit\backenduv run --no-sync pytest -q tests\unit\backend\test_scenario_resume.py -k 'run_completion_waits_for_terminal_handoff or fresh_launch_saves_only_nonsecret'uv run --no-sync pytest -q tests\unit\analytics\test_execution.pyfrontend:npm test -- --runInBand --runTestsByPath src/components/Scenarios/ScenarioRunPage.test.tsx --silentfrontend:npm run type-checkfrontend:npx eslint src/components/Scenarios/ScenarioRunPage.test.tsx --max-warnings 0uv run --no-sync ty check --output-format concise tests\unit\backend\conftest.py tests\unit\backend\test_analytics_lifecycle.py tests\unit\backend\test_scenario_resume.py tests\unit\backend\test_scenario_progress_read_model.pyUV_NO_SYNC=1:uv run --no-sync pre-commit run --all-filesA temporary, uncommitted progress-test probe expired the old gather wait without a real sleep. All three baseline exit modes raised
TimeoutError; all three changed modes passed the full assertions.The frontend failure was diagnosed from the CI DOM and trace. A local immediate-query probe did not reproduce it. The changed test passed with fake timers and the normal accessible-role query.
doc/contributing/4_running_tests.mdnow describes task-completion waits, finite correctness budgets, and deferred modal accessibility. JupyText is not applicable; no notebooks or executable documentation samples changed. The macOS CI suite has not been run locally.