-
Notifications
You must be signed in to change notification settings - Fork 225
Update CONTRIBUTING.md and split by language #2386
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
Update CONTRIBUTING.md and split by language #2386
Conversation
Honny1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Changes LGTM. But I have some small nits that are not blocking.
CONTRIBUTING.md
Outdated
| ``` | ||
| Fixes: #00000 | ||
| Fixes: https://github.com/containers/common/issues/00000 | ||
| Fixes: https://github.com/containers/netavark/issues/00000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's an unnecessary change. Maybe it could be like this:
| Fixes: https://github.com/containers/netavark/issues/00000 | |
| Fixes: https://github.com/containers/<repository-name>/issues/00000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, although using the full link for github issues seems wrong as it really should only be the number IMO.
If you like to close an issue on another repo the actual syntax is org/repo#xxxx. I don't think the auto closing works with the full link.
CONTRIBUTING.md
Outdated
| In order to keep your branch up to date you should rebase. | ||
|
|
||
| In order to do so add the upstream repo as remote in git, i.e. for containers/common use: | ||
| In order to do so add the upstream repo as remote in git, i.e. for containers/netavark use: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's an unnecessary change. Maybe it could be like this:
| In order to do so add the upstream repo as remote in git, i.e. for containers/netavark use: | |
| In order to do so add the upstream repo as remote in git, i.e. for containers/<repository-name> use: |
CONTRIBUTING.md
Outdated
| In order to do so add the upstream repo as remote in git, i.e. for containers/netavark use: | ||
| ``` | ||
| $ git remote add upstream git@github.com:containers/common.git | ||
| $ git remote add upstream git@github.com:containers/netavark.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's an unnecessary change. Maybe it could be like this:
| $ git remote add upstream git@github.com:containers/netavark.git | |
| $ git remote add upstream git@github.com:containers/<repository-name>.git |
CONTRIBUTING.md
Outdated
| For example assume you did a Podman update and now something that used to work fine is no longer working, | ||
| this is called a regression. If the change was not intentional it may be hard to find out what caused it. | ||
| git bisect can help with that. | ||
| For example, assume you updated Netavark and now something that used to work fine is no longer working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| For example, assume you updated Netavark and now something that used to work fine is no longer working. | |
| For example, assume you updated Podman and now something that used to work fine is no longer working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is still open.
CONTRIBUTING.md
Outdated
| Please make sure to read the contributing docs in each repository as they may do things differently. | ||
|
|
||
| This documented is primarily aimed at the following repositories: | ||
| This is a generic document aimed at all repositories. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong, the reason I listed the repos is because we have plenty repos not maintained by us that have their own process. As such I strongly think it is important to list only our repos.
CONTRIBUTING.md
Outdated
| This is a generic document aimed at all repositories. | ||
| Rules specific to the Rust language can be found [here](./CONTRIBUTING_RUST.md). | ||
| Rules specific to the Go language can be found [here](./CONTRIBUTING_GO.md). | ||
| We recommend you read the Rust guidelines after finishing with this file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this is said here, if you only work on go there is no need to rust the rust file.
CONTRIBUTING.md
Outdated
| - [psgo](https://github.com/containers/psgo) | ||
|
|
||
| However most of the things here listed are very generic when contributing to public projects | ||
| This document is primarily aimed at repositories within the Containers Github organization. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again I think this is wrong as we have projects here that do not follow our process at all.
CONTRIBUTING.md
Outdated
| * Additional tests. Ideally, they should fail w/o your code change applied. A test can be a unit test | ||
| (`..._test.go` files next to the code you changed) or in a more complex suite often found in the | ||
| * Additional tests. Ideally, they should fail without your code change applied. A test can be a unit test | ||
| (which should be added in the same file as the code being tested) or in a more complex suite often found in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong! Go tests are never in the same file. You likely should not mention this here at all and then only the go/rust file defines how a unit test looks like.
CONTRIBUTING.md
Outdated
| ``` | ||
| Fixes: #00000 | ||
| Fixes: https://github.com/containers/common/issues/00000 | ||
| Fixes: https://github.com/containers/netavark/issues/00000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, although using the full link for github issues seems wrong as it really should only be the number IMO.
If you like to close an issue on another repo the actual syntax is org/repo#xxxx. I don't think the auto closing works with the full link.
40cea8e to
3111c4d
Compare
|
While we're at it... @inknos anything you'd want added here for podman-py? |
| Rules specific to the Rust language can be found [here](./CONTRIBUTING_RUST.md). | ||
| Rules specific to the Go language can be found [here](./CONTRIBUTING_GO.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since podman-py is the only python project we have, I believe including a cross ref to https://github.com/containers/podman-py/blob/main/CONTRIBUTING.md is enough. I wouldn't do CONTRIBUTING_PYTHON.md so maybe here?
3111c4d to
30ea5c7
Compare
|
Comments addressed, should be ready |
|
LGTM |
Luap99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall but the one comment from @Honny1 is still open an should be fixed
CONTRIBUTING.md
Outdated
| For example assume you did a Podman update and now something that used to work fine is no longer working, | ||
| this is called a regression. If the change was not intentional it may be hard to find out what caused it. | ||
| git bisect can help with that. | ||
| For example, assume you updated Netavark and now something that used to work fine is no longer working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is still open.
This now includes separate files for Go and Rust, plus a central file with generic information that applies to all contributions. This will let us get Netavark and Aardvark onboarded onto the standard containers/common Contributing docs. Signed-off-by: Matt Heon <mheon@redhat.com>
30ea5c7 to
85568aa
Compare
|
Comment addressed, anyone want to merge? |
Luap99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Honny1, Luap99, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This now includes separate files for Go and Rust, plus a central file with generic information that applies to all contributions. This will let us get Netavark and Aardvark onboarded onto the standard containers/common Contributing docs.