Skip to content

test(release): stop auto-maintenance racing the tag fixture cleanup - #6462

Merged
Hmbown merged 2 commits into
mainfrom
test/release-tag-fixture-cleanup-race
Sep 24, 2026
Merged

Hmbown merged 2 commits into
mainfrom
test/release-tag-fixture-cleanup-race

Conversation

@Hmbown

@Hmbown Hmbown commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Refs #6458

Version drift failed on #6431, #6443 and #6456 with rm: cannot remove '/tmp/tmp.*/checkout': Directory not empty. It fails immediately after require-release-tag-checkout tests passed, so every assertion held and only the EXIT trap failed.

The fixture commits and pushes, which can start a detached git maintenance run --auto. That process keeps writing into .git while the trap deletes the directory. This PR:

  • turns off maintenance.auto and gc.auto for every git process in the fixture, via GIT_CONFIG_COUNT
  • retries the removal once

Verification: the fixture passes locally and shellcheck is clean. I have not reproduced the race locally; the cause is inferred from the log, so reruns in CI are the proof.

🤖 Generated with Claude Code

Version drift failed on #6431, #6443 and #6456 with
`rm: cannot remove '/tmp/tmp.*/checkout': Directory not empty` right after
"require-release-tag-checkout tests passed": every assertion held, and only
the EXIT trap failed. The fixture commits and pushes, which can spawn a
detached `git maintenance run --auto` still writing into .git while the
trap deletes it. Disable auto maintenance/gc for every git process in the
fixture via GIT_CONFIG_COUNT, and retry the removal once.

Verification: the fixture passes locally; shellcheck clean. The race was
never reproduced locally, so the root cause is inferred from the log; CI
reruns are the proof.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 24, 2026 00:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T00:45:51.998936Z e09e418 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Hmbown
Hmbown merged commit e91559d into main Sep 24, 2026
31 checks passed
@Hmbown
Hmbown deleted the test/release-tag-fixture-cleanup-race branch September 24, 2026 06:21
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.

2 participants