Skip to content

test(release): pinned, reproducible release policy (Gate 3 G3-4, failing until fixed) - #1067

Draft
hackobi wants to merge 1 commit into
stabilisationfrom
g3-4-reproducible-release-test
Draft

hackobi wants to merge 1 commit into
stabilisationfrom
g3-4-reproducible-release-test

Conversation

@hackobi

@hackobi hackobi commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Gate 3 (Nov 8), task G3-4. This PR adds a test only, and it fails on purpose. It is a static repo-policy check that turns green when every validator runs identical, pinned code.

Run it: bunx jest tests/release/reproducibleRelease.test.ts. Today 7 of 8 rules fail, each naming the file and line:

  1. Every bun install on a validator install path uses --frozen-lockfile (scripts/run, scripts/install-deps.sh).
  2. The Bun version is pinned exactly (packageManager or .bun-version).
  3. CI setup-bun pins bun-version.
  4. No Dockerfile uses :latest (testing/devnet/Dockerfile).
  5. Release Dockerfile base images are pinned by @sha256 digest.
  6. No blanket bun pm trust --all.
  7. ./run does not git pull by default.

Rule 8, "bun.lock is committed", already passes and guards against regression.

Choices the owner may adjust: whether an exact version tag counts as pinned instead of a digest, and whether the devnet Dockerfile is in scope.

Not covered here: "two independent builds of the release tag match" belongs in a CI job. On a v* tag, it would build twice from clean checkouts with SOURCE_DATE_EPOCH and fail unless the image digests match.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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