core-workflow icon indicating copy to clipboard operation
core-workflow copied to clipboard

`skip-news` and `type-tests` badges

Open sobolevn opened this issue 3 years ago • 6 comments

The short story

It would be nice if skip-news label is automatically added when both conditions are true:

  • PR has type-tests badge
  • It does not have new NEWS entry

Example: https://github.com/python/cpython/pull/30472

Long version

I love working on unit-tests in CPython, but I have a small problem. When I submit a PR the CI is usually red, because NEWS check fails: there's no NEWS entry.

Most of the reviewers say that test-only changes should not go to NEWS (and I agree). But, right now the only way for non-members is to wait for someone who will put skip-news badge manually to turn the CI to be green. I don't think that precious time should be spent on that! 🙂

Otherwise, it is less-likely to get a review (because PR has this red cross as its status, some people might think that something is broken). For new contributors this might be even more problematic.

sobolevn avatar Jan 08 '22 07:01 sobolevn

@sobolevn off-topic, Are you interested in becoming a Triage member? If so, please mail me :) (see my Github profile) I have the bandwidth to mentor you as a triage member :)

corona10 avatar Jan 08 '22 10:01 corona10

In my experience, skip-news label should also be added to type-documentation PRs as generally docs PRs don't require a news fragment.

kumaraditya303 avatar Jan 09 '22 10:01 kumaraditya303

Please see https://github.com/python/core-workflow/issues/363 for the previous discussion in this matter.

isidentical avatar Jan 09 '22 11:01 isidentical

IMHO the opt-out model we currently have works well enough and makes the check more predictable. We could add custom rules for docs or tests, but they would have to be documented and there are cases where a NEWS entry is still required.

ezio-melotti avatar Jun 05 '22 12:06 ezio-melotti

skip news is now automatically applied to all PRs that only have a docs label and don't already have a news item attached.

We could also implement this for the tests label. Is this something we want to do? If so you can assign me and I'll prepare a PR.

DanielNoord avatar Jul 14 '22 08:07 DanielNoord

This might come in handy for https://github.com/python/cpython/issues/94808

ezio-melotti avatar Jul 15 '22 03:07 ezio-melotti