-
Notifications
You must be signed in to change notification settings - Fork 51
Dependabot Enhancements #715
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
Dependabot Enhancements #715
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #715 +/- ##
=======================================
Coverage 94.11% 94.11%
=======================================
Files 36 36
Lines 2412 2412
=======================================
Hits 2270 2270
Misses 142 142 ☔ View full report in Codecov by Sentry. |
8e76188
to
4a31f90
Compare
761d1d4
to
5aefe31
Compare
PR ready for merge. - One thing to test here, if an approver adds the lgtm and approved labels, will this PR be sent to the merge queue or merged directly. There 'may' be conflicting processes between openshift prow and github merge queues. However, the default process is to |
a0a0bae
to
9589eb3
Compare
9589eb3
to
ff005b0
Compare
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.
Looks good! This should keeps PR tab much cleaner
5273ced
to
6e61a47
Compare
- Ignore updating patch versions to focus on major and minor updates. - Limit number of PRs opened. - Add dependabot labeler workflow to add required labels to automatically add PRs to merge queues. - Add merge_group condition on test workflows to be ran on merge queues.
6e61a47
to
cd46161
Compare
cd46161
to
831584a
Compare
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.
A quick question about the e2e
tests being run on all PRs in the merge queue. If this does fail, how does GitHub decide which PRs to back out of the merge queue? Can we run e2e
specifically once a test has been backed out of the queue?
@ChristianZaccaria you can use your own PAT as the CodeFlare Machine Account Token for testing on your fork. |
@KPostOffice The flow of GitHub Merge queues goes like this:
A few scenarios can happen at this point:
|
02813fb
to
5e81252
Compare
@Bobbins228 merge queues is a feature that can only be enabled in an org, so I couldn't test this in my own fork. I tried to test the dependabot labeler workflow in a dummy branch in the codeflare-sdk, but it seems unless it is merged in main, the workflow won't have access to the required secrets in the org. - Not sure how to proceed |
You can merge the branch into your own fork to access the labeller workflow 👍 |
5e81252
to
1c05902
Compare
Here is a dummy PR used to test the dependabot labeler in my fork: ChristianZaccaria#182 - works as expected. |
Should the guided demo nbs label have been added to that PR? @ChristianZaccaria |
/lgtm |
There are 2 items that can be tested during merge:
Item to test after merge:
|
@ChristianZaccaria Thanks! Appreciate the explanation. I think I'm good to approve this then and we can keep an eye on the merge queue and dependabot PRs it should be easy enough to revert anyhow |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: KPostOffice The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1f9e9bf
into
project-codeflare:main
Issue link
Jira: https://issues.redhat.com/browse/RHOAIENG-11457
What changes have been made
Note: in this repository I have enabled merge queues in the
main
branch + in a dummy branch for testing purposes.Verification steps
Merge queues:
Dependabot:
pyproject.toml
andpoetry.lock
files.requirements.txt
files.package.json
andyarn.lock
files.Once this PR is merged, we can make use of the CodeFlare Machine token to verify the Dependabot-Labeler workflow adds the required labels to add the Dependabot PRs to the merge queue.
Points for discussion:
Before we merge, I would like to discuss with the team if we should perhaps change the way we merge PRs. To significantly reduce costs of using expensive GitHub Runners such as the ones with GPUs ran in e2e tests, perhaps the new flow could be:
This would mean, e2e tests will not run on each opened PR, or on each push, significantly reducing the running costs.
Note: we could still allow to run e2e tests in a PR triggered by a
non-merge-queue
label perhaps.Checks