-
Notifications
You must be signed in to change notification settings - Fork 595
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
feat(ci): support opt-in workflow for pull-requests #12870
Conversation
7c5c21b
to
95e9862
Compare
d0bac1d
to
827f0e7
Compare
827f0e7
to
6ac3cac
Compare
7001c15
to
54b9662
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.
Maybe sth like "skip-ci"? That might sound more straightforward than "opt-in-mode". 😄
The idea generally LGTM. (I also sometimes want to skip ci. lol) A little problem is the ci jobs form a DAG, so it might be problematic to turn on/off all steps via labels?
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 little problem is the ci jobs form a DAG, so it might be problematic to turn on/off all steps via labels?
Primary usecase is to enable a few tests.
So I think it's fine to let the user resolve the DAG themselves.
Usually the DAG is at most 1-2 length-wise.
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.
skip-ci
+1, I will change it to ci/skip-ci
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.
Btw I think this feature should only be allowed for draft PRs to avoid accidentally disabling some tests.
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.
Now, drft pr will automatically skip ci. What this PR wants to do is to only run the draft pr of the label. You are right, you need to figure out the dependencies of CI job in advance.
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.
Btw I think this feature should only be allowed for draft PRs to avoid accidentally disabling some tests.
and
+1, I will change it to ci/skip-ci
Done in ebe56d3
ebe56d3
to
4060a9a
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.
LGTM!
e877dd7
to
5c4c2be
Compare
5c4c2be
to
0cce272
Compare
54bd477
to
d7c4527
Compare
Codecov Report
@@ Coverage Diff @@
## main #12870 +/- ##
=======================================
Coverage 69.26% 69.26%
=======================================
Files 1489 1489
Lines 245772 245772
=======================================
+ Hits 170236 170238 +2
+ Misses 75536 75534 -2
Flags with carried forward coverage won't be shown. Click here to find out more. see 14 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Closes #12733
Allows us to run PR workflow steps selectively.
For instance with this:
(Add
ci/skip-ci
instead ofci/enable-opt-in-mode
, that option has been renamed.)We have the following steps run:
Even if PR is in
draft
:Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.