Repository navigation
Retry the closeout fixture's temp-root removal so the release gate tolerates the detached telemetry flush #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
cc0f71c
Retry the closeout fixture's temp-root removal while the detached tel…
unbraind 1521580
Track the closeout fixture teardown race as pm-github-aplb
unbraind 94fe64c
Flush pm telemetry inline in fixtures that use a disposable global root
unbraind d7d18df
Merge branch 'main' into fix/closeout-test-teardown-retries
unbraind File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| {"hash_algorithm":"sha256","ts":"2026-10-16T07:43:14.293Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"cd687996088c07eef02d762c","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"xhigh","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.301","source":"probe"}},"op":"create","patch":[{"op":"add","path":"/metadata/id","value":"pm-github-aplb"},{"op":"add","path":"/metadata/title","value":"Closeout workflow tests race the detached telemetry flush when removing their temporary global root"},{"op":"add","path":"/metadata/description","value":"The 2026.10.16 release run 38867443956 failed in Run release checks: test/closeout-workflow.test.ts 'compact PR summary is privacy gated before the bot branch is published' threw ENOTEMPTY removing <tmp>/global/runtime/telemetry. The pm CLI's detached telemetry flush (upstream pm-cli#1423; follow-up #1484) can still write under PM_GLOBAL_PATH when the caller removes it. The same race hit PR #133 CI. import-gate.test.ts already retries its global-root removal (maxRetries 5, retryDelay 100); the closeout fixture did not."},{"op":"add","path":"/metadata/type","value":"Issue"},{"op":"add","path":"/metadata/status","value":"in_progress"},{"op":"add","path":"/metadata/priority","value":1},{"op":"add","path":"/metadata/tags","value":["ci","fixed","flaky","tests"]},{"op":"add","path":"/metadata/created_at","value":"2026-10-16T07:43:14.293Z"},{"op":"add","path":"/metadata/updated_at","value":"2026-10-16T07:43:14.293Z"},{"op":"add","path":"/metadata/author","value":"claude-orchestrator"},{"op":"add","path":"/metadata/acceptance_criteria","value":"closeout-workflow.test.ts fixture removal retries like import-gate.test.ts; Release run succeeds"},{"op":"add","path":"/metadata/expected_result","value":"Fixture teardown tolerates a concurrent detached flush write"},{"op":"add","path":"/metadata/actual_result","value":"Release run 38867443956 and PR #133 CI failed with ENOTEMPTY during fixture teardown"}],"before_hash":"3cc22dff72be7b14824654a7a64ea62b04799939b2fee54c1b5f52ca60bf6df0","after_hash":"74334ae496f8effc06addb6bf91c9c4db34e861f89120077ec091b592930f88b","item_hash_version":3,"message":"","context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"831196dafccffe6946e3ddd66590a631bd492353f46704e9c7a8fcf30472fbee"} | ||
| {"hash_algorithm":"sha256","ts":"2026-10-16T07:43:15.393Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"cd687996088c07eef02d762c","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"xhigh","source":"environment"},"role":null,"topic":null,"version":{"value":"2.1.301","source":"probe"}},"op":"files_add","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-10-16T07:43:15.393Z"},{"op":"add","path":"/metadata/files","value":[{"path":"test/closeout-workflow.test.ts","scope":"project"}]}],"before_hash":"74334ae496f8effc06addb6bf91c9c4db34e861f89120077ec091b592930f88b","after_hash":"ac9aed0cde2fb8420e598dcebdc7f63b35a878bd3821ab09963ba0796134c8a6","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"maintenance","record_hash_version":1,"record_hash":"7cd0445d7ec43db4218e2112b0008739da1d792c8ac5412082c9f8a4cce11461"} | ||
| {"hash_algorithm":"sha256","ts":"2026-10-16T07:52:14.347Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"cd687996088c07eef02d762c","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"xhigh","source":"environment"},"role":null,"topic":null,"version":{"value":"2.1.301","source":"probe"}},"op":"comment_add","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-10-16T07:52:14.347Z"},{"op":"add","path":"/metadata/comments","value":[{"created_at":"2026-10-16T07:52:14.347Z","author":"claude-orchestrator","text":"Fix: closeout-workflow.test.ts fixture teardown now retries the temp-root removal (maxRetries 10, retryDelay 100), matching import-gate.test.ts. Local CI-like run (fresh HOME, no global git config, no GH tokens, built dist): node --test test/closeout-workflow.test.ts 20/20 pass. Root cause upstream: detached telemetry flush writes under PM_GLOBAL_PATH after the CLI exits (pm-cli#1423 fixed root resurrection only; follow-up pm-cli#1484 filed)."}]}],"before_hash":"ac9aed0cde2fb8420e598dcebdc7f63b35a878bd3821ab09963ba0796134c8a6","after_hash":"aaee3c6ef7f32ed6acee74fb95c1921035dfc4140d1910ddf999cc2b6088aa30","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"f2a3739f6104b75300b8098bad9700d2d568257a6bc4de91fab1f5a2e5ed84f2"} | ||
| {"hash_algorithm":"sha256","ts":"2026-10-16T08:41:48.891Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"cd687996088c07eef02d762c","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"xhigh","source":"environment"},"role":null,"topic":null,"version":{"value":"2.1.301","source":"probe"}},"op":"comment_add","patch":[{"op":"add","path":"/metadata/comments/1","value":{"created_at":"2026-10-16T08:41:48.891Z","author":"claude-orchestrator","text":"Review round 1 (CodeRabbit): finite rmSync retries cannot outlast a detached flush that may write up to the HTTP timeout later. Both disposable-global-root fixtures (closeout-workflow, import-gate) now set PM_TELEMETRY_INLINE_FLUSH=1 (documented test knob in pm docs/CONFIGURATION.md: flush inline instead of dispatching the detached worker; delivery unchanged). The retry stays as defensive cleanup. Local CI-like run: closeout-workflow 20/20; import-gate has 11 failures locally that reproduce on unchanged main in this host environment (baseline probe), so GitHub CI is the arbiter."}},{"op":"replace","path":"/metadata/updated_at","value":"2026-10-16T08:41:48.891Z"}],"before_hash":"aaee3c6ef7f32ed6acee74fb95c1921035dfc4140d1910ddf999cc2b6088aa30","after_hash":"2291cea3868953c160ab08199eec89393b30b41a6f7ac6ae9de9f132ee1cfbad","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"41e918e89b3ec3dc25e1a690a388a70f776e64f89bc1d60b0a786126408b36c5"} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| id: pm-github-aplb | ||
| title: Closeout workflow tests race the detached telemetry flush when removing their temporary global root | ||
| description: "The 2026.10.16 release run 38867443956 failed in Run release checks: test/closeout-workflow.test.ts 'compact PR summary is privacy gated before the bot branch is published' threw ENOTEMPTY removing <tmp>/global/runtime/telemetry. The pm CLI's detached telemetry flush (upstream pm-cli#1423; follow-up #1484) can still write under PM_GLOBAL_PATH when the caller removes it. The same race hit PR #133 CI. import-gate.test.ts already retries its global-root removal (maxRetries 5, retryDelay 100); the closeout fixture did not." | ||
| type: Issue | ||
| status: in_progress | ||
| priority: 1 | ||
| tags[4]: ci,fixed,flaky,tests | ||
| created_at: "2026-10-16T07:43:14.293Z" | ||
| updated_at: "2026-10-16T08:41:48.891Z" | ||
| author: claude-orchestrator | ||
| acceptance_criteria: closeout-workflow.test.ts fixture removal retries like import-gate.test.ts; Release run succeeds | ||
| expected_result: Fixture teardown tolerates a concurrent detached flush write | ||
| actual_result: Release run 38867443956 and PR #133 CI failed with ENOTEMPTY during fixture teardown | ||
| comments[2]{created_at,author,text}: | ||
| "2026-10-16T07:52:14.347Z",claude-orchestrator,"Fix: closeout-workflow.test.ts fixture teardown now retries the temp-root removal (maxRetries 10, retryDelay 100), matching import-gate.test.ts. Local CI-like run (fresh HOME, no global git config, no GH tokens, built dist): node --test test/closeout-workflow.test.ts 20/20 pass. Root cause upstream: detached telemetry flush writes under PM_GLOBAL_PATH after the CLI exits (pm-cli#1423 fixed root resurrection only; follow-up pm-cli#1484 filed)." | ||
| "2026-10-16T08:41:48.891Z",claude-orchestrator,"Review round 1 (CodeRabbit): finite rmSync retries cannot outlast a detached flush that may write up to the HTTP timeout later. Both disposable-global-root fixtures (closeout-workflow, import-gate) now set PM_TELEMETRY_INLINE_FLUSH=1 (documented test knob in pm docs/CONFIGURATION.md: flush inline instead of dispatching the detached worker; delivery unchanged). The retry stays as defensive cleanup. Local CI-like run: closeout-workflow 20/20; import-gate has 11 failures locally that reproduce on unchanged main in this host environment (baseline probe), so GitHub CI is the arbiter." | ||
| files[1]{path,scope}: | ||
| test/closeout-workflow.test.ts,project | ||
| body: "" |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.