Skip to content

chore(devcontainer): install pinned Bun for dashboard contributors - #534

Merged
Sertaç Özercan (sozercan) merged 3 commits into
orka-agents:mainfrom
jabrailkhalil:chore/devcontainer-bun
Sep 12, 2026
Merged

Sertaç Özercan (sozercan) merged 3 commits into
orka-agents:mainfrom
jabrailkhalil:chore/devcontainer-bun

Conversation

@jabrailkhalil

@jabrailkhalil Jabrail (jabrailkhalil) commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Installs Bun 1.3.13 and Node.js 24 in the devcontainer so dashboard contributors can run the documented UI workflow after rebuilding. The Bun pin matches the UI CI jobs. Node is required by the UI test tooling: without it, Vitest falls back to Bun and fails while importing unchanged schemas.

Bun setup selects the amd64 or arm64 release asset, uses x64-baseline without AVX2, and verifies a pinned official SHA-256 digest before extraction. It reuses a valid installation, verifies the active version, and preserves external executables and version-manager shims. If a different version shadows the pin, setup fails with PATH-ordering guidance. A working 1.3.13 shim remains supported. CONTRIBUTING.md documents rebuilding the container and running the UI commands.

Validation:

  • Shell syntax checks, devcontainer JSON parsing, and git diff --check passed.
  • The published Node devcontainer feature provisioned Node 24 in the declared golang:1.27.0 Linux arm64 image. Fresh shells resolved both Node and Bun 1.3.13.
  • Frozen UI install, build, lint, and tests passed with that feature and Bun: 126 test files and 1,106 tests.
  • Native Bun installation, reruns, upgrades, and managed-shim preservation passed. Matching-version shims were accepted unchanged; mismatched versions failed with guidance and worked after correcting PATH.
  • All three release archives matched their published digests. amd64 asset selection and extraction passed with simulated CPU flags and execution. Corrupted archives failed before extraction; unsupported architectures and residual version mismatches failed as expected.

Fixes #526.

Copilot AI balanced review requested due to automatic review settings September 9, 2026 19:09