Skip to content

Conversation

yiweichi
Copy link
Member

@yiweichi yiweichi commented Aug 22, 2025

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?
This PR aims to fix the zstd deadlock issue of bridge-history and rollup-relayer by updating the da-codec version.
da-codec pr: scroll-tech/da-codec#61

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

Summary by CodeRabbit

  • Chores
    • Updated multiple internal dependencies (DA codec, go-ethereum, etc.) to newer patch revisions across modules for improved compatibility and stability.
    • Bumped product version to v4.5.42; this will appear in UI/CLI version displays.

Copy link

coderabbitai bot commented Aug 22, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (2)
  • rollup/go.sum is excluded by !**/*.sum
  • tests/integration-test/go.sum is excluded by !**/*.sum

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

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

Walkthrough

Bumps da-codec and go-ethereum pseudo-versions across multiple module files and updates the release tag in common/version/version.go from v4.5.41 to v4.5.42. No functional code or public API changes.

Changes

Cohort / File(s) Summary
Module dependency updates
bridge-history-api/go.mod, rollup/go.mod, coordinator/go.mod, common/go.mod, tests/integration-test/go.mod
Updated github.com/scroll-tech/da-codec pseudo-versions (varies by module: ...-cddc263e5ef6 in bridge-history-api/rollup/coordinator/common; ...-0f1ad362e5b9 in tests). Updated github.com/scroll-tech/go-ethereum pseudo-version in common/go.mod and tests/integration-test/go.mod to v1.10.14-0.20250625112225-a67863c65587. No other edits.
Version bump
common/version/version.go
Bumped tag from "v4.5.41" to "v4.5.42" (changes computed Version string accordingly).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • colinlyguo
  • georgehao
  • Thegaram
  • jonastheis

Poem

A rabbit nudges versions through the night,
Tiny hops make module pins align just right.
Tag to forty-two, dependencies refreshed,
No runtime fuss—just tidy and mesh.
(\_/) 🥕

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-update-da-codec

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@yiweichi yiweichi added the bump-version Bump the version tag for deployment label Aug 22, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 1f2b397 and 3b4522f.

⛔ Files ignored due to path filters (2)
  • bridge-history-api/go.sum is excluded by !**/*.sum
  • rollup/go.sum is excluded by !**/*.sum
📒 Files selected for processing (3)
  • bridge-history-api/go.mod (1 hunks)
  • common/version/version.go (1 hunks)
  • rollup/go.mod (1 hunks)
🔇 Additional comments (1)
common/version/version.go (1)

8-8: ✓ Version tag bump to v4.5.42 verified – no stale v4.5.41 references found

  • Ran a global search across all source files (excluding vendor/) and confirmed there are no remaining occurrences of v4.5.41.
  • CI/release pipeline definitions and docs/Helm charts now consistently reference v4.5.42.
  • No logic changes; safe to publish images and binaries under v4.5.42.

colinlyguo
colinlyguo previously approved these changes Aug 22, 2025
@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.53%. Comparing base (a65b306) to head (488ea93).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1724      +/-   ##
===========================================
+ Coverage    37.48%   37.53%   +0.04%     
===========================================
  Files          243      243              
  Lines        20500    20500              
===========================================
+ Hits          7685     7694       +9     
+ Misses       12006    11990      -16     
- Partials       809      816       +7     
Flag Coverage Δ
bridge-history-api 8.08% <ø> (ø)
common 29.75% <ø> (ø)
coordinator 33.54% <ø> (+0.24%) ⬆️
database 42.05% <ø> (ø)
rollup 37.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
common/go.mod (1)

187-187: da-codec upgraded (indirect): consider a workspace-level replace to hard-pin

This ensures every module resolves the same commit and prevents accidental downgrades via transitive deps. Keep it until an official, tagged release with the fix is cut.

If you maintain a top-level go.work or root go.mod that all modules use, add a workspace-level replace like:

replace github.com/scroll-tech/da-codec => github.com/scroll-tech/da-codec v0.1.3-0.20250822100821-0f1ad362e5b9

Then run go mod tidy in each module.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 3b4522f and d2914e6.

⛔ Files ignored due to path filters (5)
  • common/go.sum is excluded by !**/*.sum
  • coordinator/go.sum is excluded by !**/*.sum
  • go.work.sum is excluded by !**/*.sum
  • rollup/go.sum is excluded by !**/*.sum
  • tests/integration-test/go.sum is excluded by !**/*.sum
📒 Files selected for processing (3)
  • common/go.mod (2 hunks)
  • coordinator/go.mod (1 hunks)
  • tests/integration-test/go.mod (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • coordinator/go.mod
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: tests
  • GitHub Check: check
  • GitHub Check: check
  • GitHub Check: check
  • GitHub Check: tests
  • GitHub Check: tests
  • GitHub Check: tests
  • GitHub Check: tests
  • GitHub Check: check
  • GitHub Check: test
  • GitHub Check: check
🔇 Additional comments (2)
tests/integration-test/go.mod (1)

8-8: Uniform da-codec pseudo-version across all modules confirmed

All go.mod files reference github.com/scroll-tech/da-codec v0.1.3-0.20250822100821-0f1ad362e5b9. No stragglers detected—ready to merge.

common/go.mod (1)

18-18: go-ethereum bump looks good; please smoke-test key modules

All tests are passing and we’ve enumerated every Go file importing our fork of go-ethereum. To guard against subtle API or behavior changes, please perform a quick smoke test on the following areas:

  • Bridge-history-api
    • L1/L2 RPC fetchers (internal/controller/fetcher/l1_fetcher.go, l2_fetcher.go)
    • Event parsers (internal/logic/l1_event_parser.go, l2_event_parser.go)
    • ABI bindings (abi/backend_abi.go)

  • Common utilities
    • RPC helpers (common/utils/rpc.go and rpc_test.go)
    • Trie operations (common/utils/withdraw_trie.go and withdraw_trie_test.go)
    • Crypto/keystore (common/utils/keystore.go)
    • Gas tracing (common/utils/trace_gas.go and trace_gas_test.go)

  • Rollup components
    • Transaction construction & signing (internal/controller/sender/estimategas.go, sender.go, transaction_signer.go)
    • Chain watchers (internal/controller/watcher/l1_watcher.go, l2_watcher.go)
    • ABI interactions (rollup/abi/bridge_abi.go, validium_abi.go)

  • Coordinator & other RPC clients
    • Any modules under coordinator/ and database/cmd that call into go-ethereum

With these quick manual checks completed, we can consider the upgrade safe to merge.

@yiweichi yiweichi requested a review from colinlyguo August 22, 2025 10:44
Thegaram
Thegaram previously approved these changes Aug 22, 2025
jonastheis
jonastheis previously approved these changes Aug 24, 2025
Copy link
Contributor

@jonastheis jonastheis left a comment

Choose a reason for hiding this comment

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

We just need to be careful to not override the bridge history hash function somehow with the l2geth change

@yiweichi yiweichi dismissed stale reviews from jonastheis and Thegaram via 43ec885 August 25, 2025 07:33
@yiweichi yiweichi merged commit 1552e98 into develop Aug 25, 2025
18 checks passed
@yiweichi yiweichi deleted the fix-update-da-codec branch August 25, 2025 08:23
@coderabbitai coderabbitai bot mentioned this pull request Aug 26, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump-version Bump the version tag for deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants