Skip to content

ci: skip Solidity jobs for deployment-manifest-only changes - #1101

Merged
alpergundogdu merged 1 commit into
mainfrom
chore/skip-solidity-ci-for-deployment-manifests
Jul 11, 2026
Merged

alpergundogdu merged 1 commit into
mainfrom
chore/skip-solidity-ci-for-deployment-manifests

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Summary

The detect changes job's dorny/paths-filter solidity filter matched all of contracts/**, so a commit touching only a deployment manifest (contracts/deployments/<chainId>.json, e.g. the Arbitrum Sepolia 421614.json recorded for #1083) triggered the full Solidity CI suite — build+test, gas snapshot, slither, aderyn, coverage, and fork test — even though a JSON manifest affects no compilation or tests.

This adds a !contracts/deployments/** negation so manifest-only changes skip the Solidity jobs.

Why it's safe

  • dorny/paths-filter@v4 negation is last-match-wins: the !contracts/deployments/** pattern placed after contracts/** correctly excludes manifest paths from the match.
  • No Solidity job reads the manifests: grep across .github/ finds no job referencing deployments/.
  • Only real-network manifests are ever committed: test-chain manifests (deployments/31337*.json) are already gitignored (contracts/.gitignore), so this negation only affects deliberately-committed real-network manifests.
  • A commit that touches a manifest alongside contract code still matches contracts/** via the other changed files and runs the full suite as before.

🤖 Generated with Claude Code

The `detect changes` job's `solidity` paths-filter matches all of
`contracts/**`, so a commit touching only a deployment manifest
(`contracts/deployments/<chainId>.json`, e.g. the Arbitrum Sepolia
`421614.json` recorded for #1083) triggered the full Solidity suite —
build+test, gas snapshot, slither, aderyn, coverage, and fork test —
even though a JSON manifest affects no compilation or tests.

Add a `!contracts/deployments/**` negation so manifest-only changes
skip the Solidity jobs. dorny/paths-filter@v4 evaluates patterns
last-match-wins, so the negation after `contracts/**` excludes them.
No Solidity job reads the manifests, and test-chain manifests
(`deployments/31337*.json`) are already gitignored, so only committed
real-network manifests are affected.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copilot AI review requested due to automatic review settings July 11, 2026 11:56
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@alpergundogdu, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 43 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Free

Run ID: 6ab11b08-b09c-438c-975f-2bf576c7403a

📥 Commits

Reviewing files that changed from the base of the PR and between 5df6318 and 096d03e.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@github-actions

Copy link
Copy Markdown

Gas snapshot

No gas changes vs base.

@github-actions

Copy link
Copy Markdown

Contracts coverage

Line coverage: 88.71% (2452/2764 lines)
▲ +0.00pp vs base (88.71% → 88.71%)
Run: 29151808515

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.

Pull request overview

Adjusts the CI change-detection gating so that updates to committed on-chain deployment manifests under contracts/deployments/** don’t unnecessarily trigger the full Solidity CI suite, while preserving existing behavior for real contract/source changes.

Changes:

  • Adds an exclusion pattern to the dorny/paths-filter solidity filter to ignore contracts/deployments/**.
  • Documents the rationale directly in the workflow to clarify why manifest-only commits should skip Solidity jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown

Coverage report

Total: 80.06% (was 80.06%, ● 0.00%) — 44421/55483 lines

No Rust files changed in this PR.

History
Commit Total Δ vs base
096d03e (HEAD) 80.06% ● 0.00%

@alpergundogdu
alpergundogdu merged commit 5cfbaea into main Jul 11, 2026
24 checks passed
@alpergundogdu
alpergundogdu deleted the chore/skip-solidity-ci-for-deployment-manifests branch July 11, 2026 12:08
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