Skip to content

feat: merge-train/fairies-v5#24117

Merged
AztecBot merged 3 commits into
v5-nextfrom
merge-train/fairies-v5
Jun 16, 2026
Merged

feat: merge-train/fairies-v5#24117
AztecBot merged 3 commits into
v5-nextfrom
merge-train/fairies-v5

Conversation

@AztecBot

@AztecBot AztecBot commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

BEGIN_COMMIT_OVERRIDE
chore: remove obsolete no_predicates wrappers (#7729) (#24093)
feat!: change for_each iteration order in CapsuleArray, EphemeralArray, TransientArray (#24021)
END_COMMIT_OVERRIDE

…y, TransientArray (#24021)

`for_each` used to iterate from last to first element, with the sole
purpose of making it easy to remove elements in loop.

This is a behavior that makes sense when DB persisted capsules were the
only mechanism available to Aztec.nr to handle arbitrary sized
unconstrained collections. Back then, every capsule operation resulted
in a DB transaction, which made them quite costly.

Now capsules operations mostly write to memory (and commit to disk at
the end of a PXE job), but also we have other pure in-memory mechanisms
such as EphemeralArray and TransientArray.

In the current codebase I have found no code taking advantage of the
ability to remove elements directly from a `for_each` loop, so it seems
a good moment to deprecate this quirk.

Closes F-729
@mverzilli mverzilli requested a review from nventuro as a code owner June 16, 2026 09:15

@ludamad ludamad left a comment

Copy link
Copy Markdown
Collaborator

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 Jun 16, 2026
@AztecBot

Copy link
Copy Markdown
Collaborator Author

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

@AztecBot

Copy link
Copy Markdown
Collaborator Author

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/64ef07fa7a3177a3�64ef07fa7a3177a38;;�): yarn-project/end-to-end/scripts/run_test.sh ha src/composed/ha/e2e_ha_full.parallel.test.ts "should delete old duties via cleanupOldDuties based on DB time, not node time" (39s) (code: 0)

Merged via the queue into v5-next with commit d074c17 Jun 16, 2026
14 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.

4 participants