Skip to content

Commit 8d22802

Browse files
authored
Update contribution guidelines.
This clarifies some workflow changes such that the benchmark framework is effective. - fast-forward merging so we don't lose the mapping of commit ids to results - use feature branches on vmware so we get comments for benchmark regressions
1 parent c0da82a commit 8d22802

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is a rough outline of what a contributor's workflow looks like:
1212
- Create a topic branch from where you want to base your work
1313
- Make commits of logical units
1414
- Make sure your commit messages are in the proper format (see below)
15-
- Push your changes to a topic branch in your fork of the repository
15+
- Push your changes to a topic branch in the vmware repository or a fork if you don't have commit access to vmware (the reason that pushing directly to the vmware repo is preferred is because then CI will be able to add benchmark results to the PR in the comments).
1616
- Submit a pull request
1717

1818
Example:
@@ -61,6 +61,19 @@ git push --force-with-lease origin my-new-feature
6161
Be sure to add a comment to the PR indicating your new changes are ready to review, as GitHub does not generate a
6262
notification when you git push.
6363

64+
### Closing a pull request
65+
66+
Since we run benchmarks as part of CI it's good practice to preserve the commit IDs of the feature branch
67+
we've worked on (and benchmarked). Unfortunately, [the github UI does not have support for this](https://github.com/community/community/discussions/4618)
68+
(it only allows rebase, squash and merge commits to close PRs).
69+
Therefore, it's recommended to close and merge PRs using the following git CLI invocation:
70+
71+
```shell
72+
git checkout main
73+
git merge --ff-only feature-branch-name
74+
git push vmware main
75+
```
76+
6477
### Code Style
6578

6679
### Formatting Commit Messages

0 commit comments

Comments
 (0)