-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Consolidate the github setup action #6239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
WalkthroughThe changes consolidate tool setup across GitHub Actions workflows by introducing configurable inputs (withNpm, withFoundry, withJava, withPython, withSolc) to the setup action. The setup action now conditionally installs each tool based on input flags. Corresponding workflow files have been updated to remove standalone installation steps for Python, Java, Solidity, and npm dependencies, instead passing the appropriate flags to the consolidated setup action. Environment variable declarations for these tools have been moved or removed from workflow top-level environments. Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/actions/setup/action.yml.github/workflows/formal-verification.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: Redirect rules - solidity-contracts
- GitHub Check: Header rules - solidity-contracts
- GitHub Check: Pages changed - solidity-contracts
- GitHub Check: slither
- GitHub Check: tests
- GitHub Check: coverage
- GitHub Check: tests-upgradeable
- GitHub Check: halmos
🔇 Additional comments (8)
.github/workflows/formal-verification.yml (3)
24-24: LGTM! Label-based gating looks correct.The conditional logic properly checks for both the
formal-verificationandformal-verification-force-alllabels to control when the verify job runs.
29-32: LGTM! Consolidated setup configuration.The setup action is correctly invoked with the required tool flags for formal verification (Java, Python, and Solc).
57-57: LGTM! Minimal tooling for Halmos.Correctly requests only Python setup, which is appropriate for the Halmos verification task.
.github/actions/setup/action.yml (5)
3-23: LGTM! Well-structured input declarations.The input declarations are clear with appropriate defaults:
- npm and Foundry enabled by default (common requirements)
- Java, Python, and Solc disabled by default (specialized tools)
28-44: LGTM! Proper conditional npm setup.The Node.js and npm setup logic correctly:
- Guards all npm-related steps with the
withNpmflag- Leverages caching to avoid redundant installations
- Only runs
npm ciwhen cache misses
45-50: LGTM! Conditional Foundry installation.The Foundry setup is correctly guarded and uses the stable version from the official toolchain action.
51-57: Java 21 setup is compatible with Certora.The Java 21 configuration using the Temurin distribution aligns with Certora's documented requirements, which support Java 21 or newer.
58-69: Python 3.13 is compatible with both formal verification dependencies.Both
certora-cli==8.3.1(requires Python >=3.8) andhalmos==0.3.3(requires Python >=3.11) have confirmed Python 3.13 support with available wheels. No compatibility issues exist.
Refactor setup action to include java, python and solc as optional setup steps to clean up places where these are used.
Move all the versions of the different tools used to a single file, without env var, so that it can be more easily maintained (by AI?)