Skip to content

test(cli): redact bun build hash in snapshots - #2514

Merged
fengmk2 merged 2 commits into
voidzero-dev:mainfrom
jong-kyung:fix/redact-bun-build-hash
Aug 21, 2026
Merged

test(cli): redact bun build hash in snapshots#2514
fengmk2 merged 2 commits into
voidzero-dev:mainfrom
jong-kyung:fix/redact-bun-build-hash

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

bun banners append the build's short commit hash after the version ("bun pm trust v1.4.0 (34cbb9a40)"), and the hash changes with every bun release. The version was already masked, but the hash was recorded verbatim, so snapshots of fixtures that follow the latest bun broke whenever bun shipped a release, as create_approve_builds_bun did when bun 1.4.0 came out.

Ref: #2513 CI Failure

bun banners append the build's short commit hash after the version
("bun pm trust v1.4.0 (34cbb9a40)"), and the hash changes with every
bun release. The version was already masked, but the hash was recorded
verbatim, so snapshots of fixtures that follow the latest bun broke
whenever bun shipped a release, as create_approve_builds_bun did when
bun 1.4.0 came out.

Mask the hash as <hash>, anchored on the already-masked <version>
token so parenthesized hex elsewhere stays assertable, and re-record
the eight bun snapshots that embedded a hash. A full-suite re-record
confirmed no other snapshot is affected.
@netlify

netlify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 4620ed0
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a872591f3b95400085bc2fa

@jong-kyung jong-kyung self-assigned this Aug 20, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aeb4b73dd5

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vp_cli_snapshots/tests/cli_snapshots/redact.rs Outdated
Anchoring only on the masked version token would also mask a
version-plus-hash line printed by any other tool; require the leading
bun subcommand context so those stay assertable.
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 4620ed051d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung
jong-kyung requested a review from fengmk2 August 20, 2026 16:07
@fengmk2
fengmk2 merged commit ee17977 into voidzero-dev:main Aug 21, 2026
45 checks passed
@jong-kyung
jong-kyung deleted the fix/redact-bun-build-hash branch August 21, 2026 01:24
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