-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
fix: Cut release only when all tests passed #721
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThe changes introduce a new Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🪛 yamllint.github/workflows/test.yml[error] 332-332: too many blank lines (1 > 0) (empty-lines) 🔇 Additional comments (2).github/workflows/test.yml (2)
The job configuration effectively ensures that releases only happen after all tests pass by:
Remove extra blank lines at the end of the file. To maintain clean YAML formatting, remove the extra blank lines at the end of the file, leaving only one blank line. Apply this diff: release:
needs: [test, lint, mock, k3s, localstack, docker]
if: github.event_name == 'push'
uses: cloudposse/.github/.github/workflows/shared-go-auto-release.yml@main
with:
publish: false
format: binary
secrets: inherit
-
🧰 Tools🪛 yamllint[error] 332-332: too many blank lines (1 > 0) (empty-lines) 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.
seems like a good idea
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: CodeRabbit UI
Review profile: ASSERTIVE
📒 Files selected for processing (1)
- .github/workflows/test.yml (1 hunks)
🧰 Additional context used
🪛 yamllint
.github/workflows/test.yml
[error] 332-332: too many blank lines
(1 > 0) (empty-lines)
🔇 Additional comments (1)
.github/workflows/test.yml (1)
324-332
: Summary: The PR successfully implements the release job with minor suggestions for improvement.The addition of the
release
job successfully addresses the PR objective of cutting a release only when all tests have passed. The job is well-structured and integrated with the existing workflow. A few minor suggestions have been made to improve clarity and adhere to best practices:
- Verify the
publish: false
setting.- Add a comment explaining the purpose of the release job.
- Remove extra blank lines at the end of the file.
These suggestions are minor and do not prevent the PR from being merged. Overall, the implementation looks good and achieves the desired outcome.
🧰 Tools
🪛 yamllint
[error] 332-332: too many blank lines
(1 > 0) (empty-lines)
I also feel that there isn't a huge need to require tests to pass before releases happen - instead, tests should be required for any PR merge. If tests are deterministic, which I expect them to be, then all code in |
what
why
references
Summary by CodeRabbit
New Features
Bug Fixes