Skip to content

1.4: harden frontend builds against corrupted assets - #4099

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

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