Skip to content

Update flow-go to master (Cadence v1.10.7 CCF decoder fix) — fixes #1000 - #1002

Merged
vishalchangrani merged 6 commits into
mainfrom
vishal/bump-flow-go-cadence-v1107
Nov 14, 2026
Merged

vishalchangrani merged 6 commits into
mainfrom
vishal/bump-flow-go-cadence-v1107

Conversation

@vishalchangrani

@vishalchangrani vishalchangrani commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

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 reverts onflow/flow-go#8679 (Handle both unwrapped & wrapped Geth VM errors in ExecutionErrorCode()) while tightening ValidateResult 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.

FF testnet smoke (evm-001.devnet0.nodes.onflow.org:8000)

  • Build+push image tag (e.g. v1.5.9-rc.2).
  • 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).
  • eth_blockNumber advances steadily; eth_chainId returns testnet.

FF internal mainnet (evm-001.mainnet0.nodes.onflow.org:8000) — the wedged node

The register store diverged at EVM block 85,022,353 (Cadence ~171,027,516). Rewind to a margin before that.

  • Stop the service.
  • Set FLOW_FORCE_START_CADENCE_HEIGHT=171027500 (or equivalent flag per deploy config).
  • Deploy the new RC image.
  • Start the service and tail logs. Expected:
    • force setting starting Cadence height!!! then bootstrap 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).
    • 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.

References

Summary by CodeRabbit

  • Chores
    • Updated underlying platform components to newer versions.

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>
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • tests/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.

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.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: kay-zee, turbolent

Merge Risk: Minimal · up to 81167

Merge Risk: ⚪ Minimal · up to 81167

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed 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 Passed 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.

Share

Recent review info

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: 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.

@Kay-Zee
Kay-Zee marked this pull request as ready for review November 13, 2026 23:38
@Kay-Zee
Kay-Zee requested a review from a team as a code owner November 13, 2026 23:38
vishalchangrani and others added 4 commits November 13, 2026 18:56
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>
@vishalchangrani
vishalchangrani merged commit 9129e4f into main Nov 14, 2026
2 checks passed
@vishalchangrani
vishalchangrani deleted the vishal/bump-flow-go-cadence-v1107 branch November 14, 2026 00:34
@github-project-automation github-project-automation Bot moved this from 👀 In Review to ✅ Done in 🌊 Flow 4D Nov 14, 2026
vishalchangrani added a commit that referenced this pull request Nov 14, 2026
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>
@turbolent

Copy link
Copy Markdown
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants