Skip to content

cannon: Drop support for version 6 of the Cannon VM#15616

Merged
mbaxter merged 16 commits intodevelopfrom
mbax/go-1.23/drop-v6-vm
Apr 30, 2025
Merged

cannon: Drop support for version 6 of the Cannon VM#15616
mbaxter merged 16 commits intodevelopfrom
mbax/go-1.23/drop-v6-vm

Conversation

@mbaxter
Copy link
Contributor

@mbaxter mbaxter commented Apr 29, 2025

Description

Drop support for StateVersion 6 of the Cannon VM which targets Go 1.22. Default to StateVersion 7, which targets Go 1.23.

Tests
Update references to the Cannon version in tests.

Metadata
Fixes #13447
Fixes #15591

@codecov
Copy link

codecov bot commented Apr 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.76%. Comparing base (a087ed9) to head (709ca24).
Report is 12 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #15616       +/-   ##
============================================
+ Coverage    46.00%   76.76%   +30.75%     
============================================
  Files         1279      164     -1115     
  Lines       105490     9128    -96362     
============================================
- Hits         48535     7007    -41528     
+ Misses       53454     1989    -51465     
+ Partials      3501      132     -3369     
Flag Coverage Δ
cannon-go-tests-64 64.91% <100.00%> (-2.07%) ⬇️
contracts-bedrock-tests 86.74% <ø> (ø)

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

Files with missing lines Coverage Δ
cannon/mipsevm/versions/version.go 81.13% <100.00%> (+1.13%) ⬆️

... and 1125 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mbaxter mbaxter marked this pull request as ready for review April 29, 2025 22:25
@mbaxter mbaxter requested review from a team as code owners April 29, 2025 22:25
@agusduha agusduha removed their request for review April 29, 2025 22:40
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM, just want to get input on how this interacts with op-deployer around how best to specify the right version of cannon for it to deploy. I like the CANNON vs CANNON_NEXT approach I think because op-deployer should generally just deploy the latest gov approved stuff, so it's ok that CANNON might change meaning from release to release and sometimes we need to be be able to deploy a feature toggled version which CANNON_NEXT can be used for. We only have to do extra plumbing if we ever have to support multiple future versions of cannon and let's just not do that again.

@ajsutton ajsutton self-requested a review April 30, 2025 01:01
@mbaxter mbaxter enabled auto-merge April 30, 2025 20:41
@mbaxter mbaxter added this pull request to the merge queue Apr 30, 2025
Merged via the queue into develop with commit c0dfee3 Apr 30, 2025
55 checks passed
@mbaxter mbaxter deleted the mbax/go-1.23/drop-v6-vm branch April 30, 2025 20:57
iquidus pushed a commit to Layr-Labs/optimism that referenced this pull request Jul 24, 2025
…m#15616)

* Pull Cannon version 6 from tagged docker image

* Drop v6 from supported version helper

* Update reproducible-prestate task - drop v6, move to v7

* Rework VMType handling

* Update e2e tests - only run 'next' cannon if it is in development

* Add some comments to Dockerfile.repro

* Update dockerdiff file to check latest vm

* Update cannon-prestate tasks

* Update op-deployer/opcm MipsVersion to 7

* Drop requirement to test dclz/o backwards compatibility

* Update alpha cannon tag to match convention

* Continue building the next Cannon prestate

* Update Dockerfile.diff go version to 1.23

* Drop go 1.22 test programs

* Move MIPS_VERSION constant so it can be used in scripts and tests

* Lint contracts
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.

Address TODOs from #14692 Support Go 1.23 in Cannon

3 participants