Skip to content

feat: merge-train/barretenberg#21793

Merged
AztecBot merged 5 commits intonextfrom
merge-train/barretenberg
Mar 19, 2026
Merged

feat: merge-train/barretenberg#21793
AztecBot merged 5 commits intonextfrom
merge-train/barretenberg

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Mar 19, 2026

BEGIN_COMMIT_OVERRIDE
chore: run tests in nightly debug build (#21791)
chore: sha tests for mixed constant-witness inputs (#21123)
END_COMMIT_OVERRIDE

## Summary

The nightly barretenberg debug build was only compiling (`bootstrap.sh
build`) but never running tests. This meant debug-only assertions (like
the `uint256::slice` bounds check that caught an incorrect parameter in
#21723) were never exercised in CI.

- Change `ci-barretenberg-debug` bootstrap target from `build` to `ci`
(build + test)
- Bump EC2 resources: 16 → 32 CPUs, add 120min shutdown time (debug
tests are ~2x slower)

**Manual follow-up needed**: Update
`.github/workflows/barretenberg-nightly-debug-build.yml` timeout from
120 to 240 minutes (workflow files are blocked from this session).

## Context

#21723 — Federico
discovered that `uint256::slice` only asserts `start >= end` in debug
mode. Tests passed in release CI despite incorrect parameters due to
silent wraparound. Running debug tests nightly will catch these kinds of
issues.

ClaudeBox log: https://claudebox.work/s/99cbf067abf65f72?run=1

---------

Co-authored-by: ludamad <adam.domurad@gmail.com>
ledwards2225 and others added 4 commits March 19, 2026 08:19
Adds some tests of the sha256 hash gadget under various mixed
constant-witness cases.

Also removes buggy but unused logic from the `sparse_value` constructor
related to constant values
Copy link
Collaborator

@ludamad ludamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Auto-approved

@AztecBot AztecBot added this pull request to the merge queue Mar 19, 2026
@AztecBot
Copy link
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

Merged via the queue into next with commit 85032a7 Mar 19, 2026
17 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants