Skip to content

test(artemis-ci): bound the device lease startup test with case_deadline and FP-01 (CHE-9312) [squash] - #342

Merged
congvc-dev merged 1 commit into
mainfrom
agent/x99-claude-sonnet-200k/che-9312-26c12e092cbd
Nov 27, 2026
Merged

congvc-dev merged 1 commit into
mainfrom
agent/x99-claude-sonnet-200k/che-9312-26c12e092cbd

Conversation

@congvc-bot-x99

@congvc-bot-x99 congvc-bot-x99 Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Closes nothing yet; draft until the merge order is met. Issue: CHE-9312 (parent CHE-9185, step 3, plan r11).

What

Test-only. Adds tests/support/case_deadline.py (case_deadline, owned_workers, deadline_supported), its unit tests, and bounds the device lease startup test with the CHE-9311 lease budgets (B_hs 6 s, B_exit 10 s, C_main 30 s, C_fp01 6 s). No product file changed. tests/support/startup_budget.py and its test are untouched (PR #332 open).

Node IDs (red and green)

Node ID Status Red Green
tests/unit/runtime/test_device_lease_startup_io.py::StartupIOTests::test_partial_journal_is_bounded_and_reaped (FP-01, new) new head b4984423, throwaway copy test_zz_red_fp01_throwaway.py (one-line mutation: with case_deadline(C_FP01, until=drained.exists): → with contextlib.nullcontext():), timeout 60 uv run pytest -p no:cacheprovider tests/unit/runtime/test_zz_red_fp01_throwaway.py::StartupIOTests::test_partial_journal_is_bounded_and_reaped → exit 124 (test collected, then hangs in readline) same head, unmodified: timeout 60 uv run pytest -p no:cacheprovider -v tests/unit/runtime/test_device_lease_startup_io.py::StartupIOTests::test_partial_journal_is_bounded_and_reaped → PASSED, 1 passed in 0.35s, exit 0
...::StartupIOTests::test_real_paused_worker_with_fake_executable_cannot_run_before_gate changed (wrapped, budgets) n/a (bounding only) passes
...::StartupIOTests::test_silent_worker_times_out_the_handshake_and_is_reaped new n/a (control) passes
...::StartupIOTests::test_eof_before_a_journal_is_not_a_partial_read new n/a (control) passes
tests/unit/test_case_deadline.py::CaseDeadlineTests::{test_deadline_interrupts_a_blocked_read_and_restores_the_handler, test_without_setitimer_nothing_is_armed, test_until_raises_case_reached_once_and_leaves_no_timer, test_owned_workers_kills_a_live_worker_group_and_reaps_it} new module absent before the helper existed (collection error) 4 passed

Test command and output

uv run pytest tests/unit/test_ci_policy.py tests/unit/runtime/test_device_lease_startup_io.py tests/unit/test_case_deadline.py tests/unit/test_startup_budget.py -q
24 passed, 8 warnings, 2 subtests passed

ruff check and ruff format --check clean on the 3 changed files.

Load window

Plan r11 + amendment A4 (rev 2). Every group has a qualified 20/20 block at 14x to 16.5x:

Group Scope Ratio pre / post Result
main che9185-step3-r11 14.48 / 15.19 20/20
silent che9185-step3-r11 14.94 / 15.61 20/20
FP-01 che9185-step3-r11 15.9 / 15.64 20/20
EOF che9185-step3-r11 16.07 / 16.15 20/20
units (4 tests x 20) che9185-step3-r11-s1 14.68 / 16.01 80/80

Stop rule 4 holds for neither scope. Receipts and journal: CHE-9312 result comment.

Merge order

Draft until an exact-head cross-lab RGS-1 PASS and the 3 Python checks (Python 3.12 (deterministic), Python 3.12 (reverse), Python 3.12) are success on that head. Merger: Cheese.

Rollback

Revert this PR alone.

@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review November 26, 2026 18:12
@congvc-dev
congvc-dev added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 6088af4 Nov 27, 2026
8 checks passed
@congvc-dev
congvc-dev deleted the agent/x99-claude-sonnet-200k/che-9312-26c12e092cbd branch November 27, 2026 04:57
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