Repository navigation
espresso/environment: restore TestE2eDevnetWithUnattestedBatcherKey - #574
philippecamacho wants to merge 15 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c0d58398b2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
2b27b0f to
5ae79d0
Compare
f3a674e to
7f5006f
Compare
39caa0b to
e0fa6a2
Compare
7f5006f to
44eb063
Compare
|
The devnet smoke check is still failing after |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Restore the test body removed in acfa2e1. It does not need the SP1 attestation verifier service: outside a Nitro enclave the batcher has no attestation, so registerBatcher returns before contacting the service. The rejection comes from MockEspressoNitroTEEVerifier (deployed when no NITRO_ENCLAVE_VERIFIER_ADDRESS is set), which treats signer 0xe16d5c4080C0faD6D2Ef4eb07C657674a217271C as unattested, so every authenticateBatchInfo call reverts with InvalidSignature() and safe L2 never advances while unsafe L2 keeps progressing. Drop the WithEspressoAttestationVerifierService option and add the usual env.Stop teardown. TestE2eDevnetWithInvalidAttestation stays a skipped stub since it genuinely depends on the verifier service. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…head WaitForBlockToBeSafe returns any RPC error immediately, so a sequencer crash or dropped connection would previously make the test pass. Require context.DeadlineExceeded and additionally assert the safe head is still at genesis after the wait. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The port of TestE2eDevnetWithInvalidAttestation is tracked separately, so neither the stub nor TestE2eDevnetWithUnattestedBatcherKey needs to explain the attestation verifier service. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
44eb063 to
f339f3c
Compare
When the wait's deadline expires during an RPC call, the client returns
its transport's timeout ("write pipe: i/o timeout") rather than
context.DeadlineExceeded, which failed TestE2eDevnetWithUnattestedBatcherKey
even though the safe head had stalled for the full wait. Accept any error
that reports Timeout() as well.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stacked on #475.
Restores
TestE2eDevnetWithUnattestedBatcherKey, dropped in acfa2e1 together with the SP1 attestation-verifier Docker helper. The test does not need that helper: outside a Nitro enclave the batcher has no attestation, soregisterBatcherreturns before contacting the service. The rejection comes fromMockEspressoNitroTEEVerifier, whichDeployEspressodeploys whenNITRO_ENCLAVE_VERIFIER_ADDRESSis unset and which rejects signer0xe16d5c4080C0faD6D2Ef4eb07C657674a217271C. With that key configured, everyauthenticateBatchInfocall reverts withInvalidSignature(), so safe L2 never advances.Changes
WithEspressoAttestationVerifierService(), with the usualenv.Stopteardown. Only a timeout counts as proof that the safe head stalled; any other error fails the test.TestE2eDevnetWithInvalidAttestationstays a skipped stub; its port is tracked separately.coregroup filter and now runs there unskipped.Testing
just go-tests-espresso-e2e TestE2eDevnetWithUnattestedBatcherKeypasses (~134s): unsafe L2 reaches block 15 and L2 block 1 does not become safe within 2 minutes.go vetand golangci-lint onespresso/environmentare clean.🤖 Generated with Claude Code