Skip to content

test: validate TEE batcher upgrades in Nitro CI - #545

Merged
philippecamacho merged 13 commits into
espresso/e2e-tests-2from
upgrade-test-ci
Nov 5, 2026
Merged

philippecamacho merged 13 commits into
espresso/e2e-tests-2from
upgrade-test-ci

Conversation

@Sneh1999

@Sneh1999 Sneh1999 commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Run a baseline batcher in an AWS Nitro enclave, verify that its batches reach L1, then stop it and submit an L2 transaction. Start the candidate batcher and verify that it recovers the pending transaction and continues publishing.

The manual workflow builds both batcher images and runs the test on an ephemeral EC2 enclave runner. It uses GitHub App authentication and a dedicated GitHub OIDC role scoped to upgrade-test-ci, configures the Nitro allocator, and removes the runner after the test. The test waits for a local Espresso header with an L1 finality reference before starting either batcher.

Validation: full Nitro upgrade CI passed on 3352db346c. The complete workflow must be rerun after the branch base is refreshed.

Asana: https://app.asana.com/0/0/1219024255605158

@philippecamacho
philippecamacho force-pushed the espresso/e2e-tests-2 branch 2 times, most recently from ab158af to 343623c Compare October 21, 2026 17:09
@jjeangal jjeangal changed the title feat: Support upgrade test for TEE batcher test: validate TEE batcher upgrades in Nitro CI Oct 22, 2026
@jjeangal
jjeangal force-pushed the upgrade-test-ci branch 2 times, most recently from b59d0dc to f1133aa Compare October 22, 2026 14:13
@jjeangal
jjeangal marked this pull request as ready for review October 22, 2026 17:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T13:16:17.046875Z 3df51fc 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: f1133aa696

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

jjeangal and others added 4 commits November 4, 2026 12:50
A connection accepted before the vsock bridge is up could block conn.Read
indefinitely, bypassing waitForEnclaveReady's two-minute timeout. Dial with
the context and cap each read at 5s (or the context deadline) so stalled
connections are retried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@philippecamacho philippecamacho 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.

LGTM!

@philippecamacho
philippecamacho merged commit 2b27b0f into espresso/e2e-tests-2 Nov 5, 2026
19 of 36 checks passed
@philippecamacho
philippecamacho deleted the upgrade-test-ci branch November 5, 2026 13:14

@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: 3df51fc8d8

ℹ️ 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".

}
_ = conn.SetReadDeadline(deadline)
buf := make([]byte, 16)
n, _ := conn.Read(buf)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Read the complete readiness marker before closing

If the vsock/TCP bridge returns the six-byte READY\n payload across multiple reads, this single Read can receive only a prefix and then immediately close the connection. Because the entrypoint's nc -l serves the readiness marker only once, subsequent polls cannot recover and the test times out despite the enclave being ready; keep reading until the marker, EOF, or the configured deadline.

Useful? React with 👍 / 👎.

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.

4 participants