Skip to content

ci: measure the tutorial bundle digest on Linux, Windows and macOS - #2886

Open
abrichr wants to merge 3 commits into
mainfrom
ci/tutorial-digests
Open

abrichr wants to merge 3 commits into
mainfrom
ci/tutorial-digests

Conversation

@abrichr

@abrichr abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member

Adds tutorial-digests.yml. It runs the quickstart twice on ubuntu-24.04, windows-latest and macos-latest, fails if a platform's two runs give different bundle digests, and reports each digest in the job summary and as an artifact. OpenAdapt Cloud pins these digests in RECEIPT_GALLERY_SAMPLE_BUNDLE_DIGESTS to list published tutorial Seals in its gallery. Dispatch it for each release that changes the tutorial, the compiler or rendering.

This PR is stacked on #2881 (the reproducible tutorial compile), so its first run measures that code. GitHub retargets it to main when #2881 merges.

Measured outside CI so far:

  • macOS arm64: 0415ae8cad2b953670f77c15e7cba42d556475af3f0c12ecf5fdcdf84a2a26b6
  • Linux arm64 (Debian, Playwright Chromium, Docker): e255ebe9e866bd8ce2f6c45ea88b2a3aad6be75eae3b50abe54f700e118d0d0e

Each was stable across two runs. Linux x86_64 under emulation crashed in QEMU, so this job measures it natively.

Runs the quickstart twice per platform, fails if the two digests differ, and
reports each one for Cloud's RECEIPT_GALLERY_SAMPLE_BUNDLE_DIGESTS. Dispatch it
for each release that changes the tutorial, the compiler or rendering.
@abrichr
abrichr force-pushed the ci/tutorial-digests branch from 2f96726 to e5537a0 Compare December 1, 2026 15:33
@abrichr

abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Grok
Reviewed-Head: 4f49478

I reviewed this exact head. I am not approving, and I will not merge or push.

The diff against #2881 is only .github/workflows/tutorial-digests.yml and one README row, as the request said. I reviewed that workflow and did not find a secret, a write token, or an injection path through PR metadata: permissions: contents: read, actions pinned by SHA, persist-credentials: false, and the run scripts do not interpolate titles or body text. The job checks out the PR head SHA, runs the quickstart twice, and fails if a platform's two content_digest values differ. That is a fair test of short-term intra-runner reproducibility, not of cross-day or Cloud-pin equality, which the workflow does not claim.

Blocker: this head still contains the broken #2881 parent

This branch is based on 6dc460baaf57, the #2881 head I requested changes on, not the fix at 1fc0afba2ef2. I have now approved that fix. Until this PR is rebased onto 1fc0afba2ef2 (or otherwise picks up that commit), packages-gate, ci, and run-ci stay red for the same default-at-rest _salts plaintext read, and this stacked PR is not mergeable as green.

Please rebase onto #2881 at 1fc0afba2ef2e4cf2314fa92af49a631209b017f and I will re-review that head. The workflow itself looks acceptable pending that rebase.

Base automatically changed from feat/reproducible-tutorial-bundle to main December 1, 2026 17:33
@abrichr
abrichr enabled auto-merge December 1, 2026 17:35
@abrichr

abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: 67b6ac1

The one blocker at 4f49478e is gone. #2881 merged at 1fc0afba, this branch was retargeted at main, and 67b6ac16 merges that main. I confirmed 1fc0afba is an ancestor. The diff against current main is only .github/workflows/tutorial-digests.yml and one row in .github/workflows/README.md, unchanged from the workflow I already reviewed.

The workflow still looks acceptable: permissions: contents: read, actions pinned by SHA, persist-credentials: false, it checks out the PR head SHA, and the run scripts do not interpolate titles or body text. It runs the quickstart twice on ubuntu-24.04, windows-latest and macos-latest, and fails if a platform's two content_digest values differ. That is a fair test of short-term intra-runner reproducibility, not of cross-day or Cloud-pin equality, which the workflow and the README row do not claim. The job is not a required check.

review-verdict is still red only because the newest Grok comment was REQUEST CHANGES at the old head. The tutorial-digest matrix was still pending when I looked; those jobs are the measurement, not a merge gate. I am not merging. A release decision, if any, still sits with the maintainer.

@abrichr

abrichr commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Grok
Reviewed-Head: 67b6ac1

This supersedes my APPROVE at the same head. CI found a real problem that I missed.

Blocker: launcher / run-ci fails tests/test_ci_locked_installs.py::test_pip_installs_need_hashes. The new .github/workflows/tutorial-digests.yml runs a direct uv pip install --system ./packages/types "./packages/flow[browser]" . without --require-hashes. Every other workflow installs through the locked path (locked_install.py, which adds --require-hashes), so this job would bring unpinned dependencies into the digest it measures. That also undercuts the reproducibility claim, because the digest could move with whatever PyPI serves that day.

Fix: install through the same locked path the other workflows use, with hashes from the existing lock. Don't add an exception to the test. That's the only change I need. Everything else in my earlier review stands.

1 failed, 3520 passed: https://github.com/OpenAdaptAI/OpenAdapt/actions/runs/46704914898

This branch has not been deployed

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