Repository navigation
test(ut): stabilize cooperative helper cancellation fixtures - #30535
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-xupeng · review
Commit: f9c2f3753e773e9411c55be2a0d6d06024abc95d
Assessment: approve
Reviewed the complete test-only delta and cancellation ownership paths. The fixtures restore supported grace periods while preserving real escalation, acknowledgement, cleanup and report assertions. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a14d34-4e51-79a3-a62d-6c9c16279dc8 · slot 0 · generation 0
Validation:
-
Isolation preflight passed; source remained unchanged.
-
Full optools suite passed: 78 root tests, 365 named passes, no skips.
-
All three changed tests passed under race detection. Adaptive repetitions passed: engine 18/18, heavy/plan 18/18, light/issues 47/47.
-
Diagnostic four-tick mutation failed both strengthened tests through real KILL escalation, reproducing engine status 92 and heavy/plan status 125.
-
Formatting and diff checks passed. Commands, source fingerprints, exit receipts and logs were reconciled in /home/xupeng/.local/state/mo-bot/jobs/14f40bd7108f0129eca2de26/attempt-1/validation-index.json.
Limitations:
-
Local validation used Linux amd64, Go 1.27.1 and Bash 5.2.37. Supplied CI was pending; author macOS/arm64 claims were not counted as verified execution evidence.
-
The controlled mutation establishes the fixture-budget failure, not the original CI scheduling delay or closure of the broader linked issue #30281.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #30281.
What this PR does / why we need it:
Cooperative cancellation fixtures shortened the helper grace period to one second, below the runner's supported minimum. Under delayed completion, the parent KILLs the helper before its acknowledgement, retains the private report, and returns 125; the engine fixture's missing-report check then reports 92. This matches the failure boundary in the PR #30513 Ubuntu UT job.
Remove the three artificial grace overrides and use the existing 60-tick default. Strengthen the engine-registration and heavy/plan cases using their existing FIFOs: hold completion publication until the fifth real grace tick, verify the report is still unconsumed, then release and verify acknowledgement 143. Preserve the original cancellation entry points, real liveness/KILL/drain logic, exact report assertions and forced-stop controls. Production scripts and the outer test deadline stay unchanged. No retries, new sleeps or extra fixture processes are added.
Validation on Go 1.27.1:
Query execution has no added work. The two strengthened fixtures deliberately traverse five existing quarter-second ticks (about 1.25 seconds each) and remain parallel. No full Linux amd64 CI run is claimed; GitHub CI for this PR is pending. The issue also tracks distinct embedded cancellation cases, so leave it open for further verification.