Skip to content

espresso/environment: restore TestE2eDevnetWithUnattestedBatcherKey - #574

Open
philippecamacho wants to merge 15 commits into
espresso/e2e-tests-2from
espresso/e2e-unattested-batcher-key
Open

philippecamacho wants to merge 15 commits into
espresso/e2e-tests-2from
espresso/e2e-unattested-batcher-key

Conversation

@philippecamacho

@philippecamacho philippecamacho commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

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, so registerBatcher returns before contacting the service. The rejection comes from MockEspressoNitroTEEVerifier, which DeployEspresso deploys when NITRO_ENCLAVE_VERIFIER_ADDRESS is unset and which rejects signer 0xe16d5c4080C0faD6D2Ef4eb07C657674a217271C. With that key configured, every authenticateBatchInfo call reverts with InvalidSignature(), so safe L2 never advances.

Changes

  • Restore the test body without WithEspressoAttestationVerifierService(), with the usual env.Stop teardown. Only a timeout counts as proof that the safe head stalled; any other error fails the test.
  • TestE2eDevnetWithInvalidAttestation stays a skipped stub; its port is tracked separately.
  • Update the CI shard comment. The test was already in the core group filter and now runs there unskipped.

Testing

just go-tests-espresso-e2e TestE2eDevnetWithUnattestedBatcherKey passes (~134s): unsafe L2 reaches block 15 and L2 block 1 does not become safe within 2 minutes. go vet and golangci-lint on espresso/environment are clean.

🤖 Generated with Claude Code


@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T11:24:17.822230Z 4efbefc New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@philippecamacho
philippecamacho force-pushed the espresso/e2e-unattested-batcher-key branch from f3a674e to 7f5006f Compare November 13, 2026 14:49
@philippecamacho
philippecamacho force-pushed the espresso/e2e-unattested-batcher-key branch from 7f5006f to 44eb063 Compare November 19, 2026 12:54
@jjeangal

Copy link
Copy Markdown
Collaborator

The devnet smoke check is still failing after TestSmoke passes: Test I/O incomplete 4m0s after exiting. This appears to be the log-stream cleanup issue addressed in #578. Could we bring in that fix and rerun the check?

philippecamacho and others added 14 commits November 22, 2026 07:54
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>
@philippecamacho
philippecamacho force-pushed the espresso/e2e-unattested-batcher-key branch from 44eb063 to f339f3c Compare November 22, 2026 11:02
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>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants