Skip to content

ci: centralize chonk benchmarks/tests around pinned IVC inputs - #23261

Open
AztecBot wants to merge 1 commit into
nextfrom
cb/8e9b5a5d2f9c
Open

AztecBot wants to merge 1 commit into
nextfrom
cb/8e9b5a5d2f9c

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

Centralizes all chonk (client-IVC) benchmarks and tests around a single pinned
inputs tarball, removes the per-CI-hash regeneration of the e2e chonk captures,
and adds an automated refresh flow triggered by /update-chonk-inputs.

Architecture

  • New barretenberg/cpp/scripts/pinned_chonk_inputs.sh — single source of
    truth for pinned_chonk_inputs_hash and the S3 location. Exports the
    download/upload/check helpers used by every consumer.
  • yarn-project/end-to-end/bootstrap.sh build_bench — now downloads the
    pinned tarball into example-app-ivc-inputs-out/ in the default path
    (fast, ~seconds). The slow e2e capture is gated behind
    UPDATE_CHONK_INPUTS=1 and, when run, uploads a new tarball to S3 and
    rewrites the pin. This lets make full finish much faster on normal PRs and
    lets the chonk benches run earlier in the pipeline.
  • test_chonk_standalone_vks_havent_changed.sh — sources the helper
    instead of holding its own pin. --update_inputs delegates to the same
    regen path that CI uses, so local and CI updates stay in sync. Skipped from
    the test list when UPDATE_CHONK_INPUTS=1 (the regen itself is the
    acceptance).

Automated refresh

  • New bootstrap.sh ci-update-chonk-inputs — runs the heavy regen
    (build_bench with UPDATE_CHONK_INPUTS=1), uploads the new tarball to S3,
    and caches the rewritten pinned_chonk_inputs.sh + new hash for the calling
    workflow.
  • New ci.sh update-chonk-inputs — public entry point that spins up the
    EC2 spot instance.
  • New .github/workflows/update-chonk-inputs.yml — triggered by the
    /update-chonk-inputs PR comment or the update-chonk-inputs label.
    Spins up the EC2, downloads the rewritten pin file from cache, commits
    with chore: refresh pinned chonk inputs to <hash> [skip ci], fetches the
    PR head (to merge with any pushes that landed in the meantime), rebases,
    and git push --force-with-lease. [skip ci] keeps the bot push from
    re-triggering CI.

Where pinned inputs get consumed

After this PR, every place that previously expected
yarn-project/end-to-end/example-app-ivc-inputs-out/ to be populated by the
e2e capture now picks up the same directory populated by the pinned-inputs
download. No call-site changes were needed — the consumer scripts
(ci_benchmark_ivc_flows.sh, ci_benchmark_browser_memory.sh,
benchmark_example_ivc_flow_remote.sh, bench_hardware_concurrency.sh,
test_chonk_standalone_vks_havent_changed.sh, the bench_cmds loops in
yarn-project/end-to-end/bootstrap.sh) already read from that path.

Test plan

  • CI3 fast run on this PR — confirm build_bench downloads the pinned
    tarball and the chonk bench steps (ci_benchmark_ivc_flows.sh,
    ci_benchmark_browser_memory.sh) succeed without an e2e capture.
  • barretenberg/cpp/scripts/test_chonk_standalone_vks_havent_changed.sh
    passes against the current pinned hash.
  • Add the update-chonk-inputs label to a throwaway PR or comment
    /update-chonk-inputs and confirm:
    • the EC2 regen completes,
    • a new bb-chonk-inputs-<hash>.tar.gz appears in
      s3://aztec-ci-artifacts/protocol/,
    • the workflow pushes a chore: refresh pinned chonk inputs ... [skip ci]
      commit to the PR head,
    • that commit does NOT trigger ci3 (due to [skip ci]).
  • Concurrent-push scenario: push to a PR while update-chonk-inputs is
    running and confirm the rebase step picks up the new commit before
    force-with-lease.

Created by claudebox · group: slackbot

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label May 13, 2026
@ludamad ludamad added the ci-draft Run CI on draft PRs. label May 14, 2026
@ludamad
ludamad marked this pull request as ready for review May 14, 2026 20:34
@ludamad
ludamad requested a review from charlielye as a code owner May 14, 2026 20:34

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

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants