Skip to content

Skip CI when drafts are opened #76272

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

Closed
wants to merge 1 commit into from

Conversation

workingjubilee
Copy link
Member

There is no particular reason to run CI against an unfinished PR,
since it is likely the author already knows it will fail. When
the PR is no longer a draft later commits will cause CI to rerun,
and bors exists, so this should be no problem for workflows.

Resolves #67357

There is no particular reason to run CI against an unfinished PR,
since it is likely the author already knows it will fail. When
the PR is no longer a draft later commits will cause CI to rerun,
and bors exists, so this should be no problem for workflows.
@rust-highfive
Copy link
Contributor

r? @pietroalbini

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 3, 2020
@pietroalbini pietroalbini added I-nominated T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Sep 3, 2020
@pietroalbini
Copy link
Member

Nominated for discussion at the next infrastructure team meeting.

@Mark-Simulacrum
Copy link
Member

I am personally against this change, I feel like it hurts rather than helps. I personally do not see skipping CI as useful -- if you didn't want feedback (both from humans and CI) then don't open the PR :)

That said, I could see an argument for disabling rust-log-analyzer from posting comments on draft PRs, because it does seem reasonable to presume that they will have more iteration.

But overall it feels like this is highly individualized: some people want CI feedback as soon as possible, others would prefer to wait. I'm not sure there's a one size fits all solution.

@jyn514
Copy link
Member

jyn514 commented Sep 3, 2020

Personally the reason I open draft PRs is because I've run out of time for the moment and I don't want to forget about them. So I'd be fine if CI didn't run: I know why it's a draft.

That said I agree this should be opt-in - is there a way to tell CI 'don't run this' in the PR itself?

@Dylan-DPC-zz
Copy link

I prefer the CI to run on draft PRs because it can pick up errors early in the lifecycle rather than show up when you are requesting a review which can delay a review further

@pietroalbini
Copy link
Member

We discussed this in the infrastructure team meeting and decided not to go forward with this approach. You can see the context on the decision by reading the contents of the meeting.

Thanks @workingjubilee for proposing this!

@workingjubilee workingjubilee deleted the defer-ci branch October 4, 2021 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't run CI for draft PRs
6 participants