@@ -41,8 +41,8 @@ Here is a quick overview of how you can contribute to CPython:
41
41
42
42
#. `Create Pull Request `_ on GitHub to merge a branch from your fork
43
43
44
- #. Make sure the continuous integration checks on your Pull Request
45
- are green (i.e. successful)
44
+ #. Make sure the :ref: ` continuous integration checks on your Pull Request
45
+ are green <keeping-ci-green>` (i.e. successful)
46
46
47
47
#. Review and address `comments on your Pull Request `_
48
48
@@ -472,7 +472,7 @@ code and leave comments in the pull request or issue tracker.
472
472
'merge-ready', you should always make sure the entire test suite passes.
473
473
474
474
Leaving a pull request review on GitHub
475
- =======================================
475
+ ---------------------------------------
476
476
477
477
When you review a pull request, you should provide additional details and context
478
478
of your review process.
@@ -487,14 +487,55 @@ Instead of simply "approving" the pull request, leave comments. For example:
487
487
#. Comment on what is "good" about the pull request, not just the "bad". Doing
488
488
so will make it easier for the PR author to find the good in your comments.
489
489
490
+ #. Look at any failures in CI on the current PR. See :ref: `"Keeping CI green"
491
+ <keeping-ci-green>` below for simple things you can do to help move the PR forward.
492
+
490
493
Dismissing review from another core developer
491
- =============================================
494
+ ---------------------------------------------
492
495
493
496
A core developer can dismiss another core developer's review if they confirmed
494
497
that the requested changes have been made. When a core developer has assigned
495
498
the PR to themselves, then it is a sign that they are actively looking after
496
499
the PR, and their review should not be dismissed.
497
500
501
+ .. _keeping-ci-green :
502
+
503
+ Keeping continuous integration green
504
+ ====================================
505
+
506
+ Our change management workflows generally won't allow merging PRs with
507
+ failures. Therefore, if you see a CI failure on a PR, have a look
508
+ what it is about.
509
+
510
+ Usually the failure will be directly related to the changes in the current
511
+ PR. If you happen to have any insight into the failure, let the author know
512
+ in a review comment. CI runs sometimes generate thousands of lines of output.
513
+ Even something as simple as finding the traceback and putting it in the
514
+ comment will be helpful to the PR author.
515
+
516
+ If the failure doesn't look related to the change you're looking at, check
517
+ if it's not present on the `Release Status `_ Buildbot dashboard as well.
518
+ If so, that means the failure was introduced in a prior change. Using Buildbot's
519
+ UI you can find which PR introduced the issue and comment that it
520
+ affects other PRs.
521
+
522
+ If you still don't see where the failure originates from, check for
523
+ a "This branch is out-of-date with the base branch" sign next to the
524
+ list of executed checks. Clicking "Update branch" next to this message
525
+ will merge in the latest changes from the base branch into the PR.
526
+
527
+ If this still doesn't help with the failure on the PR, you can try
528
+ to re-run that particular failed check. Go to the red GitHub Action job,
529
+ click on the "Re-run jobs" button on the top right, and select
530
+ "Re-run failed jobs". The button will only be present when all other jobs
531
+ finished running.
532
+
533
+ Re-running failed jobs shouldn't be your first instinct but it is occasionally
534
+ helpful because distributed systems can have intermittent failures, and
535
+ some of our unit tests are sensitive to overloaded virtual machines.
536
+ If you identify such flaky behavior, look for an issue in the `issue tracker `_
537
+ that describes this particular flakiness. Create a new issue if you can't
538
+ find one.
498
539
499
540
Committing/rejecting
500
541
====================
@@ -522,3 +563,4 @@ accepts your pull request.
522
563
523
564
.. _issue tracker : https://github.com/python/cpython/issues
524
565
.. _Core Development Discourse category : https://discuss.python.org/c/core-dev/23
566
+ .. _Release Status : https://buildbot.python.org/all/#/release_status
0 commit comments