Skip to content

tests(op-node): Add coverage for future/unknown SystemConfig events#18566

Merged
geoknee merged 3 commits intodevelopfrom
gk/sys-cfg-test
Dec 10, 2025
Merged

tests(op-node): Add coverage for future/unknown SystemConfig events#18566
geoknee merged 3 commits intodevelopfrom
gk/sys-cfg-test

Conversation

@geoknee
Copy link
Copy Markdown
Contributor

@geoknee geoknee commented Dec 10, 2025

@geoknee geoknee requested review from a team and sebastianst December 10, 2025 13:35
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.46%. Comparing base (b6f4ad7) to head (0f049a1).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #18566      +/-   ##
===========================================
+ Coverage    75.78%   80.46%   +4.68%     
===========================================
  Files          189      134      -55     
  Lines        11239     7208    -4031     
===========================================
- Hits          8517     5800    -2717     
+ Misses        2576     1408    -1168     
+ Partials       146        0     -146     
Flag Coverage Δ
cannon-go-tests-64 ?
contracts-bedrock-tests 80.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 55 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.

Add ErrUnknownEventVersion and ErrUnknownEventType and return wrapped
typed errors (%w) when encountering unknown event versions or types.
Replace NewCriticalError for ErrParsingSystemConfig with a plain error.
Update tests to assert errors with require.ErrorIs and adjust event
topics/data accordingly.
Comment thread op-node/rollup/derive/system_config.go
@geoknee geoknee requested a review from axelKingsley December 10, 2025 14:55
@geoknee geoknee changed the title Add tests for future/unknown SystemConfig events tests(op-node): Add coverage for future/unknown SystemConfig events Dec 10, 2025
Comment thread op-node/rollup/derive/system_config.go Outdated
Comment thread op-node/rollup/derive/system_config_test.go
Copy link
Copy Markdown
Contributor

@axelKingsley axelKingsley left a comment

Choose a reason for hiding this comment

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

Nice!

@geoknee geoknee enabled auto-merge December 10, 2025 16:37
@geoknee geoknee added this pull request to the merge queue Dec 10, 2025
Merged via the queue into develop with commit a5fb596 Dec 10, 2025
88 checks passed
@geoknee geoknee deleted the gk/sys-cfg-test branch December 10, 2025 17:07
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.

2 participants