-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ci(buildkite): bypass drafted dependency builds #7243
Conversation
ArtifactsThese changes are published for testing on Buildkite, DockerHub and GitHub Container Registry. Docker Container
|
WalkthroughThe changes focus on optimizing the CI/CD process by refining dependency management. Updates include minor HTML adjustments in build annotations, a new file for draft builds, and a significant enhancement in the pipeline script with a conditional block to control Changes
Possibly related issues
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 as PR comments)
Additionally, you can add CodeRabbit Configration 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: 2
Signed-off-by: Amir Zarrinkafsh <nightah@me.com>
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
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: 1
if [[ "${BUILDKITE_BRANCH}" == "master" ]]; then | ||
if [[ ${DIVERGED} == 0 ]]; then | ||
if [[ ${BUILDKITE_TAG} == "" ]]; then | ||
if [[ ${BUILDKITE_BRANCH} == "master" ]]; then |
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.
Consider using modern command substitution syntax for better readability.
- BUILD_DUO=$(git diff --name-only HEAD~1 | grep -q ^internal/suites/example/compose/duo-api/Dockerfile && echo true || echo false)
+ BUILD_DUO=$(git diff --name-only $(git rev-parse HEAD~1) | grep -q ^internal/suites/example/compose/duo-api/Dockerfile && echo true || echo false)
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
if [[ ${BUILDKITE_BRANCH} == "master" ]]; then | |
if [[ ${BUILDKITE_BRANCH} == "master" ]]; then |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7243 +/- ##
==========================================
+ Coverage 73.65% 73.73% +0.07%
==========================================
Files 346 346
Lines 29986 29986
Branches 839 839
==========================================
+ Hits 22086 22109 +23
+ Misses 7026 7010 -16
+ Partials 874 867 -7
Flags with carried forward coverage won't be shown. Click here to find out more. |
This updates Buildkite to ignore any dependabot or renovate builds which are marked as drafts.
Summary by CodeRabbit