Skip to content

fix: closing db, correct stub side effects#22939

Merged
Thunkar merged 2 commits intomerge-train/fairiesfrom
gj/embedded_wallet_improvements_and_regressions
May 5, 2026
Merged

fix: closing db, correct stub side effects#22939
Thunkar merged 2 commits intomerge-train/fairiesfrom
gj/embedded_wallet_improvements_and_regressions

Conversation

@Thunkar
Copy link
Copy Markdown
Contributor

@Thunkar Thunkar commented May 5, 2026

The ecosystem-in-a-box repo highlighted these two issues:

  • The walletdb is not being closed when stopping the embedded wallet
  • There was a missing nullifier in the constructor of the stub accounts, which skewed gas measurements in kernelless mode

@Thunkar Thunkar requested a review from mverzilli May 5, 2026 08:28
@Thunkar Thunkar self-assigned this May 5, 2026
@Thunkar Thunkar changed the base branch from next to merge-train/fairies May 5, 2026 08:44
@Thunkar Thunkar merged commit b3ffb4a into merge-train/fairies May 5, 2026
30 checks passed
@Thunkar Thunkar deleted the gj/embedded_wallet_improvements_and_regressions branch May 5, 2026 14:31
AztecBot pushed a commit that referenced this pull request May 5, 2026
The ecosystem-in-a-box repo highlighted these two issues:

* The walletdb is not being closed when stopping the embedded wallet
* There was a missing nullifier in the constructor of the stub accounts,
which skewed gas measurements in kernelless mode
@AztecBot
Copy link
Copy Markdown
Collaborator

AztecBot commented May 5, 2026

✅ Successfully backported to backport-to-v4-next-staging #22924.

AztecBot added a commit that referenced this pull request May 5, 2026
BEGIN_COMMIT_OVERRIDE
docs: add map and state variable docs  (#22824)
fix: e2e compat should not fail for contracts added after legacy stables
(#22900)
chore: fix kv-store browser tests hangs (#22721)
feat: kv-store sqlite backend with page level encryption (#22759)
fix: install node 22 for aztec-cli acceptance test (#22917)
feat: backport kv-store sqlite encryption (#22759) to v4-next (#22927)
fix(docs): correct llms.txt links for versioned developer docs (#22819)
feat(docs): improve discoverability of Aztec.nr API reference docs
(#22861)
feat(docs): backport improve discoverability of Aztec.nr API reference
docs (#22861) to v4-next (#22931)
feat(aztec-nr): add call_self stubs for utility functions (#22885)
docs: add map and state variable docs (backport #22824) (#22880)
refactor: `getPackageVersion` fn cleanup (#22941)
fix(ci): skip acceptance test for canary -commit. tags (#22951)
fix: closing db, correct stub side effects (#22939)
END_COMMIT_OVERRIDE
benesjan pushed a commit that referenced this pull request May 6, 2026
…22999)

## Summary

Excludes `src/e2e_kernelless_simulation.test.ts` from the
`compat_test_cmds` set in `yarn-project/end-to-end/bootstrap.sh`, so it
no longer runs under the backwards-compatibility (`ci-compat-e2e`) job.

## Why

`e2e_kernelless_simulation` asserts on the exact number of nullifiers
emitted by the test contracts. PR #22939 changed the contract artifacts
and now emits a different nullifier count, which causes the test to fail
when the new client runs against older contract artifacts in compat mode
(see the failing `ci-compat-e2e` step on `v4.3.0-nightly.20260506`:
https://github.com/AztecProtocol/aztec-packages/actions/runs/25419116073/job/74558302821#step:4:38).
The mismatch is not a real backwards-compat regression, just an artifact
of the test asserting on internal accounting that legitimately changes
between versions.

Per @benesjan and @mverzilli, the right call is to drop this test from
the compat matrix rather than maintain compat-aware nullifier-count
assertions; reducing the compat surface to tests that actually exercise
the contract API is the longer-term direction.

## Implementation

Added `kernelless_simulation` to the bash extglob exclusion list for the
top-level `e2e_*.test.ts` pattern:

```diff
-    src/e2e_!(block_building|prover_*).test.ts
+    src/e2e_!(block_building|prover_*|kernelless_simulation).test.ts
```

Verified the new pattern with `shopt -s extglob` locally —
`e2e_kernelless_simulation.test.ts` is no longer matched, all other
top-level e2e tests still are. Comment block above the function updated
to record the reason.

Note: the underlying release publish path (`InvalidAccessKeyId` /
`ec2:RunInstances`) tracked in
https://gist.github.com/AztecBot/da1ac0bbfaae2564fe90c993b2886590 is not
addressed by this PR — it requires the `AWS_SESSION_TOKEN` forward in
`bootstrap_ec2` and an IAM policy change. This change just stops
`ci-compat-e2e` from being red on nightlies due to the
kernelless_simulation flake.

ClaudeBox log: https://claudebox.work/s/ed6536a05f7d2b77?run=3
benesjan pushed a commit that referenced this pull request May 6, 2026
…23005)

## Summary

Forward port of
#22999 (which
targets `backport-to-v4-next-staging`) onto `merge-train/fairies` so the
v4 and v5 versions of `compat_test_cmds` stay aligned.

Excludes `src/e2e_kernelless_simulation.test.ts` from the
`compat_test_cmds` set in `yarn-project/end-to-end/bootstrap.sh`, so it
no longer runs under the backwards-compatibility (`ci-compat-e2e`) job.

## Why

`e2e_kernelless_simulation` asserts on the exact number of nullifiers
emitted by the test contracts. PR #22939 changed the contract artifacts
and now emits a different nullifier count, which causes the test to fail
when the new client runs against older contract artifacts in compat mode
(failing v4 nightly:
https://github.com/AztecProtocol/aztec-packages/actions/runs/25419116073/job/74558302821#step:4:38).
The mismatch is not a real backwards-compat regression — the test is
asserting on internal accounting that legitimately changes between
versions.

Per @benesjan and @mverzilli, the right call is to drop this test from
the compat matrix rather than maintain compat-aware nullifier-count
assertions; reducing the compat surface to tests that actually exercise
the contract API is the longer-term direction. Forward-porting here
keeps the v5 compat matrix in lockstep with v4.

## Implementation

Identical to #22999: add `kernelless_simulation` to the bash extglob
exclusion list for the top-level `e2e_*.test.ts` pattern.

```diff
-    src/e2e_!(block_building|prover_*).test.ts
+    src/e2e_!(block_building|prover_*|kernelless_simulation).test.ts
```

Comment block above the function updated with the same reasoning.
Verified with `shopt -s extglob` that the new pattern excludes only
`src/e2e_kernelless_simulation.test.ts` and still includes every other
top-level `src/e2e_*.test.ts`.

ClaudeBox log: https://claudebox.work/s/ed6536a05f7d2b77?run=4
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