Repository navigation
Conversation
This branch has not been deployed
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
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
barretenberg/cpp/scripts/pinned_chonk_inputs.sh— single source oftruth for
pinned_chonk_inputs_hashand the S3 location. Exports thedownload/upload/check helpers used by every consumer.
yarn-project/end-to-end/bootstrap.sh build_bench— now downloads thepinned tarball into
example-app-ivc-inputs-out/in the default path(fast, ~seconds). The slow e2e capture is gated behind
UPDATE_CHONK_INPUTS=1and, when run, uploads a new tarball to S3 andrewrites the pin. This lets
make fullfinish much faster on normal PRs andlets the chonk benches run earlier in the pipeline.
test_chonk_standalone_vks_havent_changed.sh— sources the helperinstead of holding its own pin.
--update_inputsdelegates to the sameregen 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 theacceptance).
Automated refresh
bootstrap.sh ci-update-chonk-inputs— runs the heavy regen(
build_benchwithUPDATE_CHONK_INPUTS=1), uploads the new tarball to S3,and caches the rewritten
pinned_chonk_inputs.sh+ new hash for the callingworkflow.
ci.sh update-chonk-inputs— public entry point that spins up theEC2 spot instance.
.github/workflows/update-chonk-inputs.yml— triggered by the/update-chonk-inputsPR comment or theupdate-chonk-inputslabel.Spins up the EC2, downloads the rewritten pin file from cache, commits
with
chore: refresh pinned chonk inputs to <hash> [skip ci], fetches thePR head (to merge with any pushes that landed in the meantime), rebases,
and
git push --force-with-lease.[skip ci]keeps the bot push fromre-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 thee2e 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, thebench_cmdsloops inyarn-project/end-to-end/bootstrap.sh) already read from that path.Test plan
fastrun on this PR — confirmbuild_benchdownloads the pinnedtarball 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.shpasses against the current pinned hash.
update-chonk-inputslabel to a throwaway PR or comment/update-chonk-inputsand confirm:bb-chonk-inputs-<hash>.tar.gzappears ins3://aztec-ci-artifacts/protocol/,chore: refresh pinned chonk inputs ... [skip ci]commit to the PR head,
[skip ci]).update-chonk-inputsisrunning and confirm the rebase step picks up the new commit before
force-with-lease.
Created by claudebox · group:
slackbot