You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump github.com/onflow/flow-go to a master pseudo-version that includes Cadence v1.10.7. This fixes the CCF decoder bug that caused the FF internal mainnet ingestion wedge on 2026-11-13 (#1000) immediately after upstream AN8 was upgraded to docker tag v0.51.2.
Cadence v1.10.7 adds decoder-side support for CBOR nil values in ReferenceType (cyclic references), covariant array/dictionary types encoded via CBORTagTypeAndValue, and nil values in composite fields — all surfaced by scheduled-transaction system events on mainnet (onflow/flow-go#8701). The v1.10.7 regression test (e982440 add regression test with mainnet event payload) exercises the actual mainnet payload that was tripping v1.10.6.
Also bumps tests/go.mod in lockstep.
Why master, not v0.51.2
v0.51.2 is on the v0.51 release branch and revertsonflow/flow-go#8679 (Handle both unwrapped & wrapped Geth VM errors in ExecutionErrorCode()) while tighteningValidateResult to compare exact ErrorCode instead of just success/failed status. The combination risks reintroducing the operator-crash scenario PR #993 fixed (wrapped Geth VM errors mapping to ExecutionErrCodeMisc on one side and to the specific code on the other, under strict code comparison).
Master keeps the errors.Is unwrap in fvm/evm/types/codeFinder.go AND pins onflow/cadence v1.10.7. See #1000 for the full writeup.
What does NOT change in this PR
No gateway code changes. Pure dep bump.
No change to --force-start-height semantics or RegisterStorage layout.
The existing stale state on FF internal mainnet is NOT auto-healed by this bump. Rewind is required on deploy (see test plan).
Test plan
Precondition: EN fleet alignment
Confirm what flow-go commit the mainnet EN fleet is running before merging. If ENs are on vanilla v0.51.2 (release-branch) we have an asymmetry on wrapped Geth errors even with this bump: ENs would emit ExecutionErrCodeMisc, gateway would unwrap to the specific code, stricter ValidateResult fails. Safest state: ENs and gateway both on a master pseudo-version past #8679.
Local
go mod tidy leaves a clean diff in root go.mod/go.sum and tests/go.mod/tests/go.sum.
go build ./... at repo root succeeds.
go build ./... in tests/ succeeds.
go test ./models/... ./storage/... ./services/ingestion/... passes (events decoding, register store, ingestion engine).
go test ./tests/... passes the integration/web3js suite.
Deploy to FF testnet with no --force-start-height (testnet should not need rewind — check first that its ingestion is healthy at the moment of deploy).
Tail ingestion logs for 10 min. Look for received new cadence evm events with non-zero event lengths; no failed to process EVM events; no failed to replay block on height.
Smoke the 5 tracers for a tx at a block with index > 0 (the v1.5.9-rc.1 trace receipt fix should still work — regression check).
Sequential received new cadence evm events at heights 171,027,500 → 171,027,520 and beyond.
At Cadence ~171,027,516: non-empty cadence-event-length and no "heartbeat" skip. This is the before/after signal.
No failed to replay block on height: 85022353 or 85022357.
Once past the previous crash height, verify replay with an RPC query:
eth_getTransactionCount(0xe87cA221C48c3Abf7Feba933c2c2E858721835D7, 0x5115695) returns 0x1436b (82,795) — matches public mainnet.
eth_getTransactionByHash(0xcfa1d40d4a23eebcd49866d94f9a33bce301b8064570ece680f28ccbe19dac55) returns the tx with blockNumber: 0x5115695.
Let it run 30 min and check for any new ingestion errors. Also scan for other EOAs that may have had state updates in the same skipped Cadence block — proactively query eth_getTransactionCount(addr, 0x5115694) for the senders in blocks 85,022,350-85,022,356 (via public mainnet as ground truth) and spot-check against internal mainnet.
FF public mainnet (mainnet.evm.nodes.onflow.org)
Only after FF internal mainnet is clean for a few hours. Public mainnet is currently on v1.5.7 — if it hasn't crashed yet, it may just not have hit the problematic Cadence block yet, OR the register state divergence may have happened on another EOA that hasn't resurfaced. Rewind window should cover the AN upgrade epoch.
Deploy the RC image with --force-start-height set to a safe margin before the AN8 upgrade timestamp.
Same log/replay verification as internal mainnet.
Monitor Grafana dashboards for a few hours before cutting the tag as a release.
Rollback
If the bump introduces a regression (error-code mismatch under strict ValidateResult, or anything else), revert to v1.5.9-rc.1 binary. The underlying CCF decoder bug returns — until EN alignment is confirmed and we re-attempt the bump.
Bumps github.com/onflow/flow-go to v0.51.1-0.20261113165525-fe155581e20d
(master tip), which transitively pulls in onflow/cadence v1.10.7. This
fixes the CCF decoder bug that caused FF internal mainnet ingestion to
wedge on 2026-11-13 after AN8 was upgraded to v0.51.2 (see #1000 and
onflow/flow-go#8701).
Cadence v1.10.7 adds decoder-side handling for CBOR nil values in
ReferenceType (cyclic references), covariant array/dictionary types
encoded via CBORTagTypeAndValue, and nil values in composite fields.
v1.10.7 ships a regression test with the real mainnet event payload
that v1.10.6 rejected.
Targets master rather than v0.51.2 so we keep the errors.Is unwrap in
ExecutionErrorCode() introduced by onflow/flow-go#8679 (the fix PR #993
pulled in). v0.51.2 reverts that and ships a stricter ValidateResult
error-code comparison in parallel, which risks reintroducing the
operator-crash scenario PR #993 fixed.
Applied to both the root module and tests/ in lockstep. Pure dep bump,
no gateway code changes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: d47fba7a-55df-4666-831d-14d54e74e43c
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
No actionable comments were generated in the recent review.
Walkthrough
The root and test Go module files update Cadence, Flow Go, and Flow Go SDK to newer versions. No other dependency changes are reported.
Changes: Go Module Dependency Updates
Layer / File(s)
Summary
Update dependency versions go.mod, tests/go.mod
Both module files update Cadence to v1.10.7, Flow Go to v0.51.1-0.20261113165525-fe155581e20d, and Flow Go SDK to v1.10.10.
This dependency-only update pulls in Cadence decoder fixes and changes no gateway code. No concrete defect was found in the changed lines. Before deploying, run the planned build and test checks and confirm the stale-state rewind and execution-node version alignment described in the PR.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: a dependency update of flow-go to master, which pulls in the Cadence v1.10.7 CCF decoder fix. The raw summary confirms the go.mod and tests/go.mod changes bump Cadence…
Linked Issues check
The only linked issue is #999, which is closed. Per the assessment rules, closed issues supply background only. No active directly linked targets remain, so no linked-issue coding requirements apply. …
Out of Scope Changes check
The reviewed diff, per the AI summary, changes only go.mod and tests/go.mod. Both files are dependency declarations. The Cadence bump (v1.10.6 to v1.10.7) and the flow-go pseudo-version bump match the…
Full details: Title check
Explanation
The title names the main change: a dependency update of flow-go to master, which pulls in the Cadence v1.10.7 CCF decoder fix. The raw summary confirms the go.mod and tests/go.mod changes bump Cadence, flow-go, and flow-go-sdk. The title also cites a fixed issue (#1000), but the objectives reference PR #1002 and linked issue #999, so that number does not match the stated objectives. The issue reference is a minor inconsistency and does not make the title unrelated to the changeset.
Full details: Linked Issues check
Explanation
The only linked issue is #999, which is closed. Per the assessment rules, closed issues supply background only. No active directly linked targets remain, so no linked-issue coding requirements apply. The #999 trace-receipt fix is not a requirement for this PR. The PR description states that it stacks on #999, but this does not add a requirement to the PR. The go.mod changes match the stated dependency-bump objective: flow-go moves to v0.51.1-0.20261113165525-fe155581e20d and Cadence to v1.10.7 in both go.mod and tests/go.mod. Test-plan items are operational checks, not coding requirements in this diff.
Full details: Out of Scope Changes check
Explanation
The reviewed diff, per the AI summary, changes only go.mod and tests/go.mod. Both files are dependency declarations. The Cadence bump (v1.10.6 to v1.10.7) and the flow-go pseudo-version bump match the PR description. The go.mod change also bumps github.com/onflow/flow-go-sdk from v1.10.9 to v1.10.10. The PR description does not mention this SDK bump. It is still a dependency-only change in the same lockstep update, so it is not a demonstrated unrelated change. go.sum files are excluded from review and were not inspected. No source code changes are shown. Reviewers should confirm that the SDK bump is required by the new flow-go pseudo-version, or note it in the PR description.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: b5f9422f-1b1b-478f-875c-c0fd4442f6ed
Commits
Reviewing files that changed from the base of the PR and between b366c21 and 779cd81.
Files ignored due to path filters: 2
go.sum is excluded by !**/*.sum
tests/go.sum is excluded by !**/*.sum
Files selected for processing: 2
go.mod
tests/go.mod
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
CI runs on go1.26.11 and `go mod tidy` there removes a handful of
indirect-dep entries that go1.26.0 keeps. The committed go.sum had
the go1.26.0 output, causing the `make check-tidy` CI step to fail.
Strip the entries CI wants to remove in both root and tests/go.sum.
Builds in both modules still succeed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Follow-up to c8259ab revert. CI go mod tidy (go1.26.10 in actions/setup-go)
consistently removes a set of indirect-dep entries that my earlier partial
strip didn't fully match, so after revert CI kept wanting to re-strip.
This commit removes the exact 25 lines CI tidy drops in both go.sum and
tests/go.sum. Build still passes in both modules.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Previous strip (7a58519) was blanket-applied to both go.sum and
tests/go.sum. CI tidy for root go.sum removes those indirect entries
(correct), but tidy for tests/go.sum keeps them because tests/ has a
different dep graph. Restoring tests/go.sum to pre-strip state.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirror of the two-step fix landed on vishal/bump-flow-go-cadence-v1107
(PR #1002) for the same flow-go bump:
- Strip 25 indirect-dep entries from root go.sum that go1.26.10 tidy
(CI runner) drops.
- Restore tests/go.sum to pre-strip state since tests/ module has a
different dep graph and tidy keeps those lines there.
Builds pass in both modules, unit tests green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
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.
Summary
Bump
github.com/onflow/flow-goto a master pseudo-version that includes Cadence v1.10.7. This fixes the CCF decoder bug that caused the FF internal mainnet ingestion wedge on 2026-11-13 (#1000) immediately after upstream AN8 was upgraded to docker tagv0.51.2.Cadence v1.10.7 adds decoder-side support for CBOR nil values in
ReferenceType(cyclic references), covariant array/dictionary types encoded viaCBORTagTypeAndValue, andnilvalues in composite fields — all surfaced by scheduled-transaction system events on mainnet (onflow/flow-go#8701). The v1.10.7 regression test (e982440 add regression test with mainnet event payload) exercises the actual mainnet payload that was tripping v1.10.6.Also bumps
tests/go.modin lockstep.Why master, not v0.51.2
v0.51.2 is on the
v0.51release branch and reverts onflow/flow-go#8679 (Handle both unwrapped & wrapped Geth VM errors in ExecutionErrorCode()) while tighteningValidateResultto compare exactErrorCodeinstead of just success/failed status. The combination risks reintroducing the operator-crash scenario PR #993 fixed (wrapped Geth VM errors mapping toExecutionErrCodeMiscon one side and to the specific code on the other, under strict code comparison).Master keeps the
errors.Isunwrap infvm/evm/types/codeFinder.goAND pinsonflow/cadence v1.10.7. See #1000 for the full writeup.What does NOT change in this PR
--force-start-heightsemantics orRegisterStoragelayout.Test plan
Precondition: EN fleet alignment
Confirm what flow-go commit the mainnet EN fleet is running before merging. If ENs are on vanilla v0.51.2 (release-branch) we have an asymmetry on wrapped Geth errors even with this bump: ENs would emit
ExecutionErrCodeMisc, gateway would unwrap to the specific code, stricterValidateResultfails. Safest state: ENs and gateway both on a master pseudo-version past #8679.Local
go mod tidyleaves a clean diff in rootgo.mod/go.sumandtests/go.mod/tests/go.sum.go build ./...at repo root succeeds.go build ./...intests/succeeds.go test ./models/... ./storage/... ./services/ingestion/...passes (events decoding, register store, ingestion engine).go test ./tests/...passes the integration/web3js suite.FF testnet smoke (
evm-001.devnet0.nodes.onflow.org:8000)v1.5.9-rc.2).--force-start-height(testnet should not need rewind — check first that its ingestion is healthy at the moment of deploy).received new cadence evm eventswith non-zero event lengths; nofailed to process EVM events; nofailed to replay block on height.eth_blockNumberadvances steadily;eth_chainIdreturns testnet.FF internal mainnet (
evm-001.mainnet0.nodes.onflow.org:8000) — the wedged nodeThe register store diverged at EVM block 85,022,353 (Cadence ~171,027,516). Rewind to a margin before that.
FLOW_FORCE_START_CADENCE_HEIGHT=171027500(or equivalent flag per deploy config).force setting starting Cadence height!!!thenbootstrap starting API server(per PR Update flow-go to master (onflow/flow-go#8679) and fix force-start-height stall #993 this should not stall).received new cadence evm eventsat heights 171,027,500 → 171,027,520 and beyond.cadence-event-lengthand no "heartbeat" skip. This is the before/after signal.failed to replay block on height: 85022353or85022357.eth_getTransactionCount(0xe87cA221C48c3Abf7Feba933c2c2E858721835D7, 0x5115695)returns0x1436b(82,795) — matches public mainnet.eth_getTransactionByHash(0xcfa1d40d4a23eebcd49866d94f9a33bce301b8064570ece680f28ccbe19dac55)returns the tx withblockNumber: 0x5115695.eth_getTransactionCount(addr, 0x5115694)for the senders in blocks 85,022,350-85,022,356 (via public mainnet as ground truth) and spot-check against internal mainnet.FF public mainnet (
mainnet.evm.nodes.onflow.org)Only after FF internal mainnet is clean for a few hours. Public mainnet is currently on v1.5.7 — if it hasn't crashed yet, it may just not have hit the problematic Cadence block yet, OR the register state divergence may have happened on another EOA that hasn't resurfaced. Rewind window should cover the AN upgrade epoch.
--force-start-heightset to a safe margin before the AN8 upgrade timestamp.Rollback
If the bump introduces a regression (error-code mismatch under strict
ValidateResult, or anything else), revert to v1.5.9-rc.1 binary. The underlying CCF decoder bug returns — until EN alignment is confirmed and we re-attempt the bump.References
event_encoding_versionis not configurable flow-go#8701 — CCF decoder bug + REST hotfix contextSummary by CodeRabbit