fix(f3): prepare for f3 network name change on calibnet#6362
Conversation
WalkthroughRefactors network name derivation and manifest mapping lookup across multiple files. Replaces local Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.5.0)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain modules listed in go.work or their selected dependencies" Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
f3-sidecar/import.go(2 hunks)f3-sidecar/manifest.go(1 hunks)f3-sidecar/run.go(1 hunks)f3-sidecar/utils.go(0 hunks)
💤 Files with no reviewable changes (1)
- f3-sidecar/utils.go
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: hanabi1224
Repo: ChainSafe/forest PR: 5930
File: build.rs:64-77
Timestamp: 2025-08-13T09:43:20.301Z
Learning: hanabi1224 prefers hard compile-time errors in build scripts rather than runtime safeguards or collision detection, believing it's better to fail fast and fix root causes of issues like malformed snapshot names.
Learnt from: hanabi1224
Repo: ChainSafe/forest PR: 6057
File: src/cli/subcommands/f3_cmd.rs:0-0
Timestamp: 2025-09-09T10:37:17.947Z
Learning: hanabi1224 prefers having default timeouts (like 10m for --no-progress-timeout) to prevent commands from hanging indefinitely, even when the timeout flag isn't explicitly provided by users. This fail-fast approach is preferred over requiring explicit flag usage.
🧬 Code graph analysis (2)
f3-sidecar/import.go (1)
f3-sidecar/manifest.go (1)
RawNetwork2PredefinedManifestMappings(11-11)
f3-sidecar/run.go (1)
f3-sidecar/manifest.go (1)
RawNetwork2PredefinedManifestMappings(11-11)
⏰ 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). (3)
- GitHub Check: Coverage
- GitHub Check: tests-release
- GitHub Check: Build forest binaries on Linux AMD64
🔇 Additional comments (3)
f3-sidecar/import.go (2)
10-10: LGTM: Import added for network name conversion.The
gpbftimport is necessary for thegpbft.NetworkName()call on line 26.
26-32: LGTM: Network name derivation and manifest lookup correctly refactored.The change from
getNetworkName()togpbft.NetworkName()and the use ofRawNetwork2PredefinedManifestMappingsaligns with the new static mapping approach. The LocalDevnet fallback correctly assigns the derivednetworkNameto preserve network identity.f3-sidecar/run.go (1)
61-79: LGTM: Network name derivation and manifest lookup correctly refactored.The change from
getNetworkName()togpbft.NetworkName()and the use ofRawNetwork2PredefinedManifestMappingsaligns with the new static mapping approach. The LocalDevnet fallback with EC timing configuration andnetworkNameassignment is correctly preserved.
LesnyRumcajs
left a comment
There was a problem hiding this comment.
A changelog entry would be useful.
|
@LesnyRumcajs This is an internal change. The actual network name update will come later once the name is decided. |
Summary of changes
(Manually verified the change on both calibnet and mainnet)
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist
Summary by CodeRabbit
Refactor
Chores
✏️ Tip: You can customize this high-level summary in your review settings.