File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,9 +262,8 @@ function avm_check_circuit {
262262# tests are known-flaky and provide no additional backwards-compat coverage). Also excludes
263263# kernelless_simulation, which asserts on the exact number of nullifiers emitted and breaks whenever
264264# contracts add/remove nullifier emissions across versions (unrelated to the compat contract surface).
265- # event_logs and avm_simulator are excluded for the same reason: they exercise contract surface that
266- # evolves alongside the test code (TestLog gains methods, AVM assertion-string format changes with
267- # nargo) rather than the PXE oracle surface that backwards compatibility actually guarantees.
265+ # event_logs is excluded because the new tagging-cache reconciliation test (#23044) calls a
266+ # TestLog method (deliver_squashed_and_surviving_notes) that does not exist in legacy artifacts.
268267function compat_test_cmds {
269268 local version=${1:? version is required}
270269 local run_test_script=" yarn-project/end-to-end/scripts/run_test.sh"
@@ -274,7 +273,7 @@ function compat_test_cmds {
274273 local tests=(
275274 src/e2e_! (prover| block_building| epochs)/* .test.ts
276275 src/e2e_p2p/reqresp/* .test.ts
277- src/e2e_! (block_building| prover_* | kernelless_simulation| event_logs| avm_simulator ).test.ts
276+ src/e2e_! (block_building| prover_* | kernelless_simulation| event_logs).test.ts
278277 )
279278 for test in " ${tests[@]} " ; do
280279 local name=${test#* e2e_}
Original file line number Diff line number Diff line change @@ -56,16 +56,19 @@ describe('e2e_avm_simulator', () => {
5656 * at function.name();
5757 * let call = quote { $name($args) (/home/aztec-dev/aztec-packages/noir-projects/aztec-nr/aztec/src/macros/dispatch.nr:59:20)
5858 * at AvmTest.0xc3515746
59+ *
60+ * Older nargo (pre-#22911) recorded the assertion span as the inner boolean expression only,
61+ * so legacy contract artifacts under compat-e2e emit `'not_true == true'` instead of the full
62+ * `'assert(not_true == true, "This assertion should fail!")'`. The regex below accepts either
63+ * form so the test passes against both current-nargo artifacts and pinned legacy artifacts.
5964 */
6065 describe ( 'Not nested' , ( ) => {
6166 it ( 'PXE processes user code assertions and recovers message (properly enriched)' , async ( ) => {
6267 await expect (
6368 avmContract . methods . assertion_failure ( ) . simulate ( { from : defaultAccountAddress } ) ,
6469 ) . rejects . toThrow (
6570 expect . objectContaining ( {
66- message : expect . stringMatching (
67- / A s s e r t i o n f a i l e d : T h i s a s s e r t i o n s h o u l d f a i l ! ' a s s e r t \( n o t _ t r u e = = t r u e , " T h i s a s s e r t i o n s h o u l d f a i l ! " \) ' / ,
68- ) ,
71+ message : expect . stringMatching ( / A s s e r t i o n f a i l e d : T h i s a s s e r t i o n s h o u l d f a i l ! .* n o t _ t r u e = = t r u e / ) ,
6972 stack : expect . stringMatching ( / a t i n n e r _ h e l p e r _ w i t h _ f a i l e d _ a s s e r t i o n [ \s \S ] * a t A v m T e s t \. .* / ) ,
7073 } ) ,
7174 ) ;
You can’t perform that action at this time.
0 commit comments