lab11: Reproducible Builds of QuickNotes with Nix#1338
Open
1r444444 wants to merge 9 commits into
Open
Conversation
Signed-off-by: Irina <irina.bychkova06@mail.ru>
Signed-off-by: Irina <irina.bychkova06@mail.ru>
- flake.nix: buildGoModule for quicknotes binary, dockerTools.buildImage for OCI - flake.lock: pins nixpkgs to nixos-25.11 rev b6018f87 (2026-06-30) - nix-repro.yml: two-parallel-job CI gate that fails on digest mismatch
…urce Temporarily adds a timestamp comment to app/main.go in Build B only, causing the Nix src hash to differ so verify-repro catches the mismatch.
Reverts the intentional divergence introduced in the previous commit. Both jobs now build identically; verify-repro should go green.
- docker: add extraCommands for seed.json and /tmp, set DATA_PATH/SEED_PATH env vars, use Nix store path in Entrypoint — container now actually runs - nix-repro.yml: add permissions: contents: read; guard against empty digests to prevent vacuous CI pass - submission: update sha256sum evidence and add docker run /health proof
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
flake.nixat repo root builds QuickNotes viabuildGoModule;flake.lockpins nixpkgs to nixos-25.11 revb6018f87(2026-06-30); two independentnixos/nixDocker containers produce identical store hashsha256:0qd4klg5q3hn2malql089wdq1cm39ndclxbj10689vzdqwg82f62nix build .#dockerproduces a 20.8 MB OCI image viadockerTools.buildImage(nonroot UID 65532, port 8080); two independent builds produce identical sha256b2f87593...; Lab 6--no-cachebuilds differ (f2d220...vs748f9b...).github/workflows/nix-repro.ymlruns two parallel build jobs + a third that fails on digest mismatch; green/red/green run sequence demonstrated in fork CIDeliverables
flake.nix+flake.lockat repo root.github/workflows/nix-repro.yml— CI gate (both actions pinned by 40-char SHA)submissions/lab11.md— full evidence + design questions a–jCI runs (fork)
Test plan
nix build .#quicknotessucceeds and./result/bin/quicknotesserves/healthnix build .#docker && docker load -i resultloads image;sha256sum resultmatches between two runsnix developenters a shell withgo,gopls,golangci-lint