Skip to content

fix: CRS tests work without compressed data on disk#22066

Merged
johnathan79717 merged 2 commits intomerge-train/barretenbergfrom
jh/crs-tests-no-disk-compressed
Mar 26, 2026
Merged

fix: CRS tests work without compressed data on disk#22066
johnathan79717 merged 2 commits intomerge-train/barretenbergfrom
jh/crs-tests-no-disk-compressed

Conversation

@johnathan79717
Copy link
Copy Markdown
Contributor

Summary

  • CRS factory tests no longer require bn254_g1_compressed.dat on disk. check_bn254_consistency uses get_bn254_g1_data() which handles both formats. Chunk hash tests download directly from CDN inline.
  • crs/bootstrap.sh gains a CRS_FORMAT mode: default is happy if either compressed or uncompressed exists; CRS_FORMAT=uncompressed downloads uncompressed and deletes compressed (for AMI baking).
  • ami_update.sh uses CRS_FORMAT=uncompressed so AMI instances have uncompressed CRS for fast cold starts.

Test plan

  • srs_tests builds and passes locally
  • CI passes with ci-barretenberg label

- check_bn254_consistency uses get_bn254_g1_data which handles both
  compressed and uncompressed formats automatically
- Chunk hash tests download compressed data from CDN inline instead
  of reading from disk, so they work regardless of local cache state
Default mode is now happy if either compressed or uncompressed CRS exists
on disk. If neither exists, downloads compressed (smaller).

CRS_FORMAT=uncompressed downloads uncompressed and deletes compressed,
used for AMI baking where we want fast cold starts.

Update ami_update.sh to use CRS_FORMAT=uncompressed.
@johnathan79717 johnathan79717 added the ci-barretenberg Run all barretenberg/cpp checks. label Mar 26, 2026
@johnathan79717 johnathan79717 requested review from ludamad and removed request for charlielye March 26, 2026 16:33
@johnathan79717 johnathan79717 added ci-full Run all master checks. and removed ci-barretenberg Run all barretenberg/cpp checks. labels Mar 26, 2026
@johnathan79717 johnathan79717 enabled auto-merge (squash) March 26, 2026 16:37
@johnathan79717 johnathan79717 added ci-barretenberg Run all barretenberg/cpp checks. no-cache Disable CI cache and removed ci-full Run all master checks. labels Mar 26, 2026
@johnathan79717 johnathan79717 merged commit e7fc502 into merge-train/barretenberg Mar 26, 2026
49 of 58 checks passed
@johnathan79717 johnathan79717 deleted the jh/crs-tests-no-disk-compressed branch March 26, 2026 16:44
notnotraju pushed a commit that referenced this pull request Mar 26, 2026
## Summary
- CRS factory tests no longer require `bn254_g1_compressed.dat` on disk.
`check_bn254_consistency` uses `get_bn254_g1_data()` which handles both
formats. Chunk hash tests download directly from CDN inline.
- `crs/bootstrap.sh` gains a `CRS_FORMAT` mode: default is happy if
either compressed or uncompressed exists; `CRS_FORMAT=uncompressed`
downloads uncompressed and deletes compressed (for AMI baking).
- `ami_update.sh` uses `CRS_FORMAT=uncompressed` so AMI instances have
uncompressed CRS for fast cold starts.

## Test plan
- [x] `srs_tests` builds and passes locally
- [ ] CI passes with `ci-barretenberg` label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-barretenberg Run all barretenberg/cpp checks. no-cache Disable CI cache

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants