Skip to content

ci(rsk-test): cover consumer package tests - #50

Open
fedejinich wants to merge 4 commits into
rsk/developfrom
rsk/ci/consumer-package-tests
Open

ci(rsk-test): cover consumer package tests#50
fedejinich wants to merge 4 commits into
rsk/developfrom
rsk/ci/consumer-package-tests

Conversation

@fedejinich

@fedejinich fedejinich commented Sep 3, 2026

Copy link
Copy Markdown

Why

The fork ships op-batcher, op-proposer, and op-challenger, but rsk-test.yml did not run their full test trees. These packages consume RSK-edited code in op-service/txmgr and op-service/sources, so a change there could break a shipped binary without failing the scoped test job.

This closes that gap without touching the RSK-specific test suites or adding op-e2e.

What changes

 go-tests
 ├── existing RSK-divergent package trees
-└── op-proposer/contracts/...
+├── op-batcher/...
+├── op-proposer/...
+└── op-challenger/...
+    └── skip TestLastStepCacheAccuracy only

./op-proposer/... replaces the narrower ./op-proposer/contracts/... entry, so the workflow does not run overlapping package roots.

TestLastStepCacheAccuracy is skipped for two reasons, both recorded in the workflow header:

  • The package op-challenger/game/fault/trace/cannon imports neither op-service/txmgr nor op-service/sources, so it is not a consumer of RSK-edited code and skipping it loses no signal (git grep over the package confirms it).
  • The inherited test needs two generated, gitignored files, cannon/bin/cannon and cannon/testdata/go-1-24/bin/hello.64.elf, produced by cd cannon && make cannon elf. Building them in the runner would add a build step for a test with no RSK signal.

The exact -skip '^TestLastStepCacheAccuracy$' filter keeps every other challenger test in the gate.

The header now says only that. Trimming the rest of the header is tracked separately in PAYROLLUP-206.

Test evidence

The requested unfiltered run produced these results:

Tree Result Detail
op-batcher Pass 6 tested packages, 2 without test files
op-proposer Pass 5 tested packages, 2 without test files
op-challenger One failure TestLastStepCacheAccuracy could not find the generated ELF
go test -timeout 15m ./op-batcher/... ./op-proposer/... ./op-challenger/...

The command used by the updated workflow passes:

go test -timeout 15m -skip '^TestLastStepCacheAccuracy$' \
  ./op-node/rollup/derive/... \
  ./op-node/node/... \
  ./op-service/sources/... \
  ./op-service/txmgr/... \
  ./op-deployer/pkg/deployer/broadcaster/... \
  ./op-batcher/... \
  ./op-proposer/... \
  ./op-challenger/...

Also checked:

  • git diff --check
  • YAML parsing
  • pull requests remain scoped to rsk/**
  • pushes remain scoped to rsk/develop

Scope

No Cannon build setup, op-e2e, CircleCI port, static-analysis change, or rootstack submodule bump is included.

Jira: PAYROLLUP-132 · header trim: PAYROLLUP-206

@github-actions github-actions Bot added the risk/high Touches a sensitive area; review carefully label Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

PR Triager kept risk/high. It was already set, so the model was not consulted again for this revision. It came either from a path listed in .github/rsk-pr-triager.yml or from an earlier revision's assessment.

@github-actions github-actions Bot added triaged This revision was risk-triaged and removed triaged This revision was risk-triaged labels Sep 3, 2026
@fedejinich
fedejinich force-pushed the rsk/ci/consumer-package-tests branch from 6a19f63 to f348e54 Compare September 3, 2026 12:41
@github-actions github-actions Bot added triaged This revision was risk-triaged and removed triaged This revision was risk-triaged labels Sep 3, 2026
Replace the six-line justification with two lines: the test needs
gitignored cannon artifacts and its package imports no RSK-edited code,
so skipping it loses no signal. Drop the claim that PAYROLLUP-132 forbids
build/vet/lint work; the ticket only excludes them as gates (PAYROLLUP-206).
@github-actions github-actions Bot added triaged This revision was risk-triaged and removed triaged This revision was risk-triaged labels Sep 4, 2026
@fedejinich
fedejinich marked this pull request as ready for review September 4, 2026 00:14
@fedejinich
fedejinich requested a review from a team as a code owner September 4, 2026 00:14
@fedejinich
fedejinich requested review from illuque and a balanced review from Copilot September 4, 2026 00:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T00:16:47.615539Z 3d32323 Draft marked ready
🔒 Security Review Completed 2026-09-04T00:17:59.636634Z 3d32323 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added triaged This revision was risk-triaged and removed triaged This revision was risk-triaged labels Sep 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The workflow change is focused, validated, and has no unresolved issues.

Pull request overview

Expands RSK CI coverage for shipped services consuming modified op-service code.

Changes:

  • Adds full op-batcher, op-proposer, and op-challenger test trees.
  • Skips only the Cannon test requiring generated artifacts.
  • Documents the targeted exclusion.
File summaries
File Description
.github/workflows/rsk-test.yml Expands scoped Go tests and documents the targeted exclusion.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…yer packages

oprsk-node ships all of op-node and oprsk-deployer ships op-deployer,
and both import RSK-patched packages, but go-tests only exercised
fragments of those trees: two op-node subtrees and a single op-deployer
package. A regression anywhere else in what we actually ship went
untested.

Replace ./op-node/rollup/derive/... and ./op-node/node/... with ./op-
node/..., and add the eight op-deployer packages that run without
Foundry: pkg/deployer itself (that package only, not its subtree),
artifacts, clean, standard, state, upgrade/embedded, upgrade/v2_0_0 and
validate. bootstrap, manage, opcm, pipeline, verify and integration_test
still need forge-artifacts or the synced superchain registry, so they
are left for the Foundry tier (rsk-contracts-test.yml) to pick up later;
a comment above the job records that split. The go-checks header no
longer names a count of scoped trees.

Local run of the exact job command with -count=1: all packages PASS, no
failures. op-node 29/29 ok, the nine op-deployer packages ok, 88
packages ok overall in about 50 s.

Refs: PAYROLLUP-132
@fedejinich

Copy link
Copy Markdown
Author

@copilot

@github-actions github-actions Bot added the triaged This revision was risk-triaged label Sep 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The workflow-only change is focused, validated, and has no unresolved issues.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

ci(rsk-test): cover the rest of op-node and the Foundry-free op-deployer packages
Copilot AI review requested due to automatic review settings September 4, 2026 18:45
@github-actions github-actions Bot added triaged This revision was risk-triaged and removed triaged This revision was risk-triaged labels Sep 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The description, test evidence, and Foundry-tier wording must accurately reflect the final workflow coverage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment on lines +125 to +127
# op-deployer bootstrap, manage, opcm, pipeline, verify and integration_test
# need forge-artifacts or the synced superchain registry, so they stay with
# the Foundry tier (PAYROLLUP-132).
./op-node/rollup/derive/... \
./op-node/node/... \
go test -timeout 15m -skip '^TestLastStepCacheAccuracy$' \
./op-node/... \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk/high Touches a sensitive area; review carefully triaged This revision was risk-triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants