Skip to content

Conversation

@mheon
Copy link
Member

@mheon mheon commented Mar 24, 2025

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.

Copy link
Member

@Honny1 Honny1 left a 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
Copy link
Member

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:

Suggested change
Fixes: https://github.com/containers/netavark/issues/00000
Fixes: https://github.com/containers/<repository-name>/issues/00000

Copy link
Member

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:
Copy link
Member

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:

Suggested change
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
Copy link
Member

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:

Suggested change
$ 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.

@mheon mheon force-pushed the update_contributing branch from 40cea8e to 3111c4d Compare March 25, 2025 13:32
@mheon
Copy link
Member Author

mheon commented Mar 25, 2025

While we're at it... @inknos anything you'd want added here for podman-py?

Comment on lines +24 to +26
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).
Copy link

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?

@mheon mheon force-pushed the update_contributing branch from 3111c4d to 30ea5c7 Compare March 27, 2025 19:24
@mheon
Copy link
Member Author

mheon commented Mar 27, 2025

Comments addressed, should be ready

@inknos
Copy link

inknos commented Mar 27, 2025

LGTM

Copy link
Member

@Luap99 Luap99 left a 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.
Copy link
Member

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>
@mheon mheon force-pushed the update_contributing branch from 30ea5c7 to 85568aa Compare March 28, 2025 13:56
@mheon
Copy link
Member Author

mheon commented Mar 28, 2025

Comment addressed, anyone want to merge?

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 28, 2025

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 1f09589 into containers:main Mar 28, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants