Skip to content

microvm-rootfs: deterministic ext4 image (fixed UUID/hash-seed + SOURCE_DATE_EPOCH)#255

Open
bryan-minimal wants to merge 1 commit into
mainfrom
bryan/microvm-rootfs-reproducible
Open

microvm-rootfs: deterministic ext4 image (fixed UUID/hash-seed + SOURCE_DATE_EPOCH)#255
bryan-minimal wants to merge 1 commit into
mainfrom
bryan/microvm-rootfs-reproducible

Conversation

@bryan-minimal

Copy link
Copy Markdown
Member

rootfs.img was non-reproducible: mke2fs randomizes the filesystem UUID and the directory hash seed and stamps current time on every inode (15924 differing bytes; first divergence at the ext4 superblock UUID, file offset 0x468).

Fix — pin all three:

  • -U <fixed-uuid> (filesystem UUID)
  • -E hash_seed=<fixed-uuid> (directory htree hashing)
  • SOURCE_DATE_EPOCH=0 (mke2fs honors it for inode/superblock timestamps)

Verified byte-reproducible across two from-scratch builds (repro-check diff: no differences).

🤖 Generated with Claude Code

mke2fs randomized the filesystem UUID and directory hash seed and stamped current time on every inode -- rootfs.img differed across builds (15924 bytes, first divergence at the ext4 superblock UUID). Pin all three: -U + -E hash_seed (fixed UUID) and SOURCE_DATE_EPOCH=0 for inode/superblock times. Verified byte-reproducible across two builds.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@bryan-minimal, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 3 hours, 7 minutes, and 58 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0494ba46-02ec-425a-9262-8bf22cdf327c

📥 Commits

Reviewing files that changed from the base of the PR and between 263ba22 and 32d94fa.

📒 Files selected for processing (1)
  • packages/microvm-rootfs/build.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bryan/microvm-rootfs-reproducible

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

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