Skip to content

test: deflake growing-file bounded-read test (HACK-1404) - #97

Merged
roodboi merged 1 commit into
mainfrom
fix/hack-1404-growing-file-race
Oct 26, 2026
Merged

roodboi merged 1 commit into
mainfrom
fix/hack-1404-growing-file-race

Conversation

@roodboi

@roodboi roodboi commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Release on main (run 40047542615) failed syncManagedTools > rejects an installed plugin file that grows around bounded reads. The same code passed PR #96 CI on Bun 1.4.4, so this is a timing race, not a Bun behavior change.

The test spawns a mutator that appends to unexpected-growing while fclt hashes the installed tree. On a busy or single-core runner the bounded read can finish between appends, so fclt fails closed on installed tree hash differs from bundled payload instead of the per-file change check. Reproduced deterministically on Linux with taskset -c 0 (4/4 fail on main).

Fix: still require status: failed, and accept either fail-closed reason. Test-only. With the patch: 6/6 pass (3 pinned to one core, 3 unpinned).

Follow-up option: a test seam in the reader so the per-file growth path is deterministic. Refs HACK-1404.


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

@linear-code

linear-code Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

HACK-1404

HACK-1483

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 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
🔒 Security Review ✅ Completed 2026-10-24T01:27:06.297186Z 7da2d12 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.

@roodboi
roodboi merged commit 3ad4959 into main Oct 26, 2026
4 checks passed
@roodboi
roodboi deleted the fix/hack-1404-growing-file-race branch October 26, 2026 14:43
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.

1 participant