-
Notifications
You must be signed in to change notification settings - Fork 149
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
chore(verifier): extract build into a separate step #1234
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe changes introduce a new Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 0
🧹 Nitpick comments (1)
.github/workflows/t_build_tests.yml (1)
10-21
: Job Naming Inconsistency:
The job is currently namedlint
even though its steps (checkout, setup, build) are focused on building the project. For clarity—especially since this workflow is invoked as a build job in another workflow—it may be beneficial to rename this job (e.g., tobuild
).
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/smart-contract-verifier.yml
(1 hunks).github/workflows/t_build_tests.yml
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Checkout and build / lint
🔇 Additional comments (5)
.github/workflows/t_build_tests.yml (2)
1-9
: Workflow Input Configuration:
The workflow correctly uses theworkflow_call
trigger and defines a requiredworking-directory
input as a string. This configuration is well-structured and supports reusability.
22-24
: Build Step Verification:
The build step uses a robust Cargo command with appropriate flags and leverages theworking-directory
input effectively. The use ofRUST_BACKTRACE=1
enhances error reporting. This implementation looks solid..github/workflows/smart-contract-verifier.yml (3)
26-31
: New Build Job Integration:
The newbuild
job correctly calls the reusable workflow (t_build_tests.yml
) and passes theworking-directory
input (smart-contract-verifier
). This integration clearly separates the build process from later test execution and enhances modularity.
32-49
: Test Job Dependency and Structure:
By addingneeds: - build
to thetest
job, the workflow now enforces that tests only run after a successful build. The removal of redundant checkout and setup steps in the test job simplifies maintenance and reduces duplicate processing.
50-80
: Other Jobs Verification:
The remaining jobs (lint
,docker
, andpush-swagger
) continue to operate as expected. Thedocker
job’s dependency on bothtest
andlint
ensures that container build and push only proceed if earlier steps succeed. No additional changes are necessary.
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.
LGTM
Summary by CodeRabbit
Chores
Tests