Skip to content

fix: keep acir unconstrained test builder valid - #24992

Draft
AztecBot wants to merge 1 commit into
nextfrom
cb/fix-bb-debug-unconstrained-fixture
Draft

fix: keep acir unconstrained test builder valid#24992
AztecBot wants to merge 1 commit into
nextfrom
cb/fix-bb-debug-unconstrained-fixture

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

The nightly debug build failed in AcirComponentsCheckTest.DetectsUnconstrainedWitnesses because the test fixture simulated a missing circuit witness by shrinking builder.real_variable_index. That leaves existing gate wires pointing past the end of the vector, so libstdc++ debug mode aborts before ComponentsChecker can report the intended UNCONSTRAINED error.

This keeps the builder internally consistent by building it from an empty circuit and using high ACIR witness IDs that are absent from that valid builder. The test still exercises the UNCONSTRAINED branch without creating dangling gate references.

Failed run: https://github.com/AztecProtocol/aztec-packages/actions/runs/30241948282

Testing

  • AVM=0 AVM_TRANSPILER=0 NATIVE_PRESET=debug cmake --build --preset debug --target acir_components_check_tests
  • NATIVE_PRESET=debug barretenberg/cpp/scripts/run_test.sh acir_components_check_tests AcirComponentsCheckTest.DetectsUnconstrainedWitnesses
  • ./build-debug/bin/acir_components_check_tests

Created by claudebox · group: slackbot · Slack thread

@AztecBot AztecBot added ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure claudebox Owned by claudebox. it can push to this PR. labels Jul 27, 2026
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. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant