Skip to content

WIP Shadow test ai#1803

Draft
lispc wants to merge 57 commits into
developfrom
shadow-test-ai
Draft

WIP Shadow test ai#1803
lispc wants to merge 57 commits into
developfrom
shadow-test-ai

Conversation

@lispc
Copy link
Copy Markdown
Contributor

@lispc lispc commented May 29, 2026

Purpose or design rationale of this PR

Describe your change. Make sure to answer these three questions: What does this PR do? Why does it do it? How does it do it?

PR title

Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

  • build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
  • ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
  • docs: Documentation-only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that doesn't fix a bug, or add a feature, or improves performance
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • test: Adding missing tests or correcting existing tests

Deployment tag versioning

Has tag in common/version.go been updated or have you added bump-version label to this PR?

  • No, this PR doesn't involve a new deployment, git tag, docker image tag
  • Yes

Breaking change label

Does this PR have the breaking-change label?

  • No, this PR is not a breaking change
  • Yes

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7edbc22d-af99-4b38-a90f-4083218df2e6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch shadow-test-ai

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

lispc added 3 commits May 29, 2026 15:28
Add complete documentation and automation for shadow coordinator + local
prover setup to replay production mainnet tasks without interfering with
live system.

Includes:
- docs/shadow-testing/README.md: full architecture, setup steps, troubleshooting
- scripts/shadow-testing/setup.sh: one-command postgres/coordinator/prover setup
- scripts/shadow-testing/import-production-data.sh: export from prod RDS to shadow DB
- scripts/shadow-testing/fetch-l2-blocks.py: populate l2_block table from RPC
- scripts/shadow-testing/configs/*.json: coordinator and prover config templates
- scripts/shadow-testing/.env.example: environment variable template
- scripts/shadow-testing/QUICKSTART.md: one-page quick reference
- AGENTS.md: add shadow testing section with links

All sensitive credentials (DB passwords, auth secrets) use environment
variables or .env file. No hardcoded secrets in committed files.
Add a DryRun config option to the sender module. When enabled:
- Transactions are simulated via eth_call instead of broadcast
- pending_transaction table is not populated (avoids DB pollution)
- Nonce is still incremented to simulate real behavior
- Contract revert errors are propagated

This allows testing rollup-relayer transaction construction
(finalizeBundle, commitBatch, etc.) without spending gas.

Includes:
- SenderConfig.DryRun bool field
- sendTransactionToMultipleClients dry-run logic
- Skip pending tx insert/delete in SendTransaction when dry-run
- rollup-relayer-dryrun.json config template
- README update documenting the feature
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.

3 participants