Skip to content

Fix preflight readiness cancellation tests on slow hosts - #120

Merged
InauguralPhysicist merged 1 commit into
mainfrom
release-blockers/116-readiness-20261003
Oct 4, 2026
Merged

InauguralPhysicist merged 1 commit into
mainfrom
release-blockers/116-readiness-20261003

Conversation

@InauguralPhysicist

Copy link
Copy Markdown
Contributor

Cancellation tests could fail before the synthetic oracle emitter published its PID because a separate eight-second readiness deadline expired on a busy host. Wait for the existing atomic readiness marker within a shared, bounded fixture budget, leaving time for cleanup. The emitter stays alive long enough that natural completion cannot satisfy the cancellation check.

The SIGHUP control deliberately delays PID publication for nine seconds, making the previous gate fail at the intended readiness assertion. The corrected full Python suite passes 61/61, and five consecutive delayed-start cleanup controls pass. Each still asserts the real child session is empty before fallback cleanup, and the failure receipt records the actual signal. This is a deterministic startup-delay calibration, not a performance measurement.

Closes #116.

The independent eight-second wait expired before the actual emitter started.
Preserve the atomic readiness marker and real session-cleanup assertions,
using bounded readiness and cleanup intervals within the fixture budget.
Keep the synthetic emitter alive until cancellation and permanently delay
SIGHUP readiness to expose the old deadline reliably.

Validation: original wait fails one delayed-start control at readiness;
full Python suite 61/61; five consecutive delayed-start cleanup controls
5/5. Independent static review found no blocking defect. This measures
cleanup behavior, not host performance. Closes #116.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@InauguralPhysicist

Copy link
Copy Markdown
Contributor Author

Reviewed head 355932cc8bb10238a0aae805c047902a69583143. Independent source review found no blocking defect and confirmed that real session-empty assertions remain before fallback cleanup. The deterministic nine-second emitter startup delay makes the former eight-second readiness condition fail. Root full Python suite passes 61/61; five additional delayed-start cleanup runs pass 5/5. These are controlled startup-delay results, not a claim about timing on every loaded host.

Exact-head CI completed successfully (one workflow, one test job), and the PR is clean. Source scope is the synthetic process-level test harness; solver behavior is unchanged.

@InauguralPhysicist
InauguralPhysicist merged commit 6093f1c into main Oct 4, 2026
1 check passed
@InauguralPhysicist
InauguralPhysicist deleted the release-blockers/116-readiness-20261003 branch October 4, 2026 03:53
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.

test_real_preflight_sighup_cleans_session is wall-clock flaky (8 s deadline)

1 participant