Skip to content

1.4: harden frontend builds against corrupted assets - #4099

Open
Daniiiil1 wants to merge 1 commit into
bluerobotics:1.4-devfrom
Daniiiil1:codex/backport-bun-1-3-14
Open

1.4: harden frontend builds against corrupted assets#4099
Daniiiil1 wants to merge 1 commit into
bluerobotics:1.4-devfrom
Daniiiil1:codex/backport-bun-1-3-14

Conversation

@Daniiiil1

Copy link
Copy Markdown

Summary

  • backport Bun 1.3.14 and setup-bun v2 to the 1.4 release branch
  • regenerate the 1.4 lockfile with Bun 1.3.14 and enforce frozen installs in CI and Docker
  • validate generated text assets as strict UTF-8 and reject NUL bytes after every Vite build

This targets the exact observed failure in #4091: the corrupted JS chunk was NUL-interleaved and would now fail the build instead of being published. Bun 1.3.14 also matches current master, removing the old 1.0.3 runtime implicated in the write corruption.

Addresses #4091 for 1.4-dev.

Testing

  • Bun 1.3.14 frozen install passed (917 packages)
  • full frontend build passed (2,439 modules)
  • generated-asset validation passed (85 assets)
  • frontend ESLint passed
  • validator ESLint passed
  • workflow YAML parsed successfully

Signed-off-by: Daniil Mordanov <mordanovdania@gmail.com>
@Daniiiil1
Daniiiil1 marked this pull request as ready for review August 7, 2026 11:45
"dev": "vite --host",
"build": "NODE_ENV=production vite build",
"build": "NODE_ENV=production vite build && bun run validate-build",
"validate-build": "bun scripts/validate-build.ts",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not being used in CI, what is the point ?

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