feat: add L2↔L3 messaging E2E tests and self-managed compose lifecycle#49
Merged
chudkowsky merged 4 commits intomainfrom Mar 18, 2026
Merged
feat: add L2↔L3 messaging E2E tests and self-managed compose lifecycle#49chudkowsky merged 4 commits intomainfrom
chudkowsky merged 4 commits intomainfrom
Conversation
Collaborator
chudkowsky
commented
Mar 18, 2026
- Add compose.l2.yml, compose.l3.yml, compose.e2e.yml for the full local L2/L3/Saya stack; compose.yml wires cross-service dependencies
- Add compiled Cairo contracts (sn_msg, appc_msg_sn) and Dockerfile.sozo
- Add saya healthcheck to compose.e2e.yml so --wait works reliably
- Fix nonce race in sn_msg_deploy: sleep 2 between declare and deploy, restart: on-failure as safety net
- Add tests/e2e/tests/messaging.rs: test_l2_to_l3_message and test_l3_to_l2_message covering full round-trip message delivery
- Add compose_up, compose_down, ComposeGuard, wait_for_l1_handler, wait_for_tx_block helpers to saya-e2e lib
- Add L3/messaging constants to env.rs
- Update settlement tests to manage compose lifecycle themselves (same pattern as messaging, no external infra setup needed)
- Update e2e-tests.yml: both jobs now self-contained, add e2e-messaging job
- Add compose.l2.yml, compose.l3.yml, compose.e2e.yml for the full local L2/L3/Saya stack; compose.yml wires cross-service dependencies - Add compiled Cairo contracts (sn_msg, appc_msg_sn) and Dockerfile.sozo - Add saya healthcheck to compose.e2e.yml so --wait works reliably - Fix nonce race in sn_msg_deploy: sleep 2 between declare and deploy, restart: on-failure as safety net - Add tests/e2e/tests/messaging.rs: test_l2_to_l3_message and test_l3_to_l2_message covering full round-trip message delivery - Add compose_up, compose_down, ComposeGuard, wait_for_l1_handler, wait_for_tx_block helpers to saya-e2e lib - Add L3/messaging constants to env.rs - Update settlement tests to manage compose lifecycle themselves (same pattern as messaging, no external infra setup needed) - Update e2e-tests.yml: both jobs now self-contained, add e2e-messaging job Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…verride error Docker Compose's `include` directive does not allow parent files to override services from included files. The previous structure tried to add `depends_on` entries to `katana_init` and `saya` in the parent, causing: services.katana_init conflicts with imported resource Flatten the three sub-files into a single compose.yml with all cross-service dependencies wired directly. The sub-files (compose.l2.yml, compose.l3.yml, compose.e2e.yml) are kept for standalone layer-by-layer use. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.