diff options
| author | Oli Scherer <github35764891676564198441@oli-obk.de> | 2024-10-28 18:48:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-28 18:48:48 +0000 |
| commit | d581d802b1ad606ba277cd2a00348b814d51cdf7 (patch) | |
| tree | f55a740488689c450a322060d59345bd8be719e0 | |
| parent | f736269dd53baa0741b3272f118ea9919e880971 (diff) | |
| parent | 6365ea10f4176e8fd90b8e32a6b749a7878e2a38 (diff) | |
| download | rust-d581d802b1ad606ba277cd2a00348b814d51cdf7.tar.gz rust-d581d802b1ad606ba277cd2a00348b814d51cdf7.zip | |
Merge pull request #3998 from RalfJung/contrib
contributing guide: mention expectations around force pushes and squashing
| -rw-r--r-- | src/tools/miri/CONTRIBUTING.md | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/src/tools/miri/CONTRIBUTING.md b/src/tools/miri/CONTRIBUTING.md index d0bcf68eacb..e97f4bf86d8 100644 --- a/src/tools/miri/CONTRIBUTING.md +++ b/src/tools/miri/CONTRIBUTING.md @@ -13,6 +13,25 @@ for a list of Miri maintainers. [Rust Zulip]: https://rust-lang.zulipchat.com +### Pull review process + +When you get a review, please take care of the requested changes in new commits. Do not amend +existing commits. Generally avoid force-pushing. The only time you should force push is when there +is a conflict with the master branch (in that case you should rebase across master, not merge), and +all the way at the end of the review process when the reviewer tells you that the PR is done and you +should squash the commits. For the latter case, use `git rebase --keep-base ...` to squash without +changing the base commit your PR branches off of. Use your own judgment and the reviewer's guidance +to decide whether the PR should be squashed into a single commit or multiple logically separate +commits. (All this is to work around the fact that Github is quite bad at dealing with force pushes +and does not support `git range-diff`. Maybe one day Github will be good at git and then life can +become easier.) + +Most PRs bounce back and forth between the reviewer and the author several times, so it is good to +keep track of who is expected to take the next step. We are using the `S-waiting-for-review` and +`S-waiting-for-author` labels for that. If a reviewer asked you to do some changes and you think +they are all taken care of, post a comment saying `@rustbot ready` to mark a PR as ready for the +next round of review. + ### Larger-scale contributions If you are thinking about making a larger-scale contribution -- in particular anything that needs @@ -45,14 +64,6 @@ process for such contributions: This process is largely informal, and its primary goal is to more clearly communicate expectations. Please get in touch with us if you have any questions! -### Managing the review state - -Most PRs bounce back and forth between the reviewer and the author several times, so it is good to -keep track of who is expected to take the next step. We are using the `S-waiting-for-review` and -`S-waiting-for-author` labels for that. If a reviewer asked you to do some changes and you think -they are all taken care of, post a comment saying `@rustbot ready` to mark a PR as ready for the -next round of review. - ## Preparing the build environment Miri heavily relies on internal and unstable rustc interfaces to execute MIR, |
