Skip to content

fix(pm-stack): ignore bun .bun cache dir in claimant install no-write assertion (#9532) - #10031

Merged
dezren39 merged 2 commits into
mainfrom
queue/16075-9532-claimant-install
Nov 14, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/16075-9532-claimant-install

Conversation

@dezren39

@dezren39 dezren39 commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Summary

The claimant install bun suite (pm-stack/opencode-claimant/test/install.test.mjs) asserts that argument-validation failures perform no writes to the home directory. On CI runners, bun (installed under ~/.bun by setup-bun) drops a .bun cache/state directory into the overridden HOME while executing the installer, so readdir(home) contains an extra .bun entry and the exact-list assertion fails even though the installer itself wrote nothing. Locally (NixOS bun at /run/current-system/sw/bin/bun) this artifact does not appear, masking the failure.

Fix

Filter .bun out of the home-directory listing in expectNoWrites before the exact comparison, since it is a bun runtime artifact rather than an installer write. The store-file contents and the defaultDir listing are still asserted unchanged, so the no-write guarantee (the actual invariant under test) is preserved.

Closes #9532.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 14, 2026 14:01
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T14:01:19.361120Z
We couldn’t complete this review. Comment @codex review to try again.
305fa6c 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.

@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.

@dezren39
dezren39 merged commit 6e3e400 into main Nov 14, 2026
1 check failed
@dezren39
dezren39 deleted the queue/16075-9532-claimant-install branch November 14, 2026 15:54
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.

developing-today/code / pm-stack tests: main run 43392266890 fails, claimant install suite file missing

1 participant