Skip to content
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

REQUEST: Repository maintenance on opentelemetry-collector-contrib #1637

Closed
dmitryax opened this issue Aug 9, 2023 · 9 comments
Closed

REQUEST: Repository maintenance on opentelemetry-collector-contrib #1637

dmitryax opened this issue Aug 9, 2023 · 9 comments
Assignees
Labels
area/repo-maintenance Maintenance of repos in the open-telemetry org

Comments

@dmitryax
Copy link
Member

dmitryax commented Aug 9, 2023

Affected Repository

Requested changes

Give 'Admin' permissions to @dmitryax

Or, if possible, grant @open-telemetry/collector-contrib-maintainer permissions to change Branch protection rules permanently

Purpose

Similar to #1636.

We are migrating the Go version support from 1.19-1.20 to 1.20-1.21. Therefore, we need to update the required CI tests for the protected main branch to use the new versions.

Expected Duration

1 week. We'll comment again on this issue once we are done so the permissions can be reverted.

Repository Maintainers

  • @open-telemetry/collector-contrib-maintainer
@dmitryax dmitryax added the area/repo-maintenance Maintenance of repos in the open-telemetry org label Aug 9, 2023
@trask
Copy link
Member

trask commented Aug 9, 2023

if possible, grant https://github.com/orgs/open-telemetry/teams/collector-contrib-maintainer permissions to change Branch protection rules permanently

you can request permanent Admin permission if you want, check out

If requested, `foo-maintainers` will be granted `Admin` permissions, and in return
they must document any changes they make to the repository settings in a file named
`.github/repository-settings.md` in their repository (other than temporarily
disabling "Do not allow bypassing the above settings", see branch protection rules
below).

@dmitryax
Copy link
Member Author

dmitryax commented Aug 9, 2023

you can request permanent Admin permission if you want, check out

I'm good with any approach. We can submit requests here every time or maintain .github/repository-settings.md. @open-telemetry/collector-contrib-maintainer what would you prefer?

@trask
Copy link
Member

trask commented Aug 9, 2023

another option that works well if you are only needing this for updating the required status checks is to have a single "required status check" job, and make it a dependency of your other jobs, e.g. https://github.com/open-telemetry/opentelemetry-java-examples/blob/9a42295cd56ed1706673822d63288fbc5e35064a/.github/workflows/build.yml#L53

@dmitryax
Copy link
Member Author

another option that works well if you are only needing this for updating the required status checks is to have a single "required status check" job, and make it a dependency of your other jobs, e.g. https://github.com/open-telemetry/opentelemetry-java-examples/blob/9a42295cd56ed1706673822d63288fbc5e35064a/.github/workflows/build.yml#L53

I would like to avoid going this route. It's nice to see which required jobs failed explicitly instead of jumping through an additional job.

@dmitryax
Copy link
Member Author

dmitryax commented Aug 10, 2023

@trask, I think we can apply your suggestion just for unittest job and have one required check for all the go versions to avoid going through this exercise every 6 months. cc @open-telemetry/collector-contrib-maintainer

I submitted open-telemetry/opentelemetry-collector-contrib#25151 for this issue and open-telemetry/opentelemetry-collector#8218 for #1636

@dmitryax
Copy link
Member Author

dmitryax commented Aug 10, 2023

@open-telemetry/governance-committee, the PRs ^ are approved. Instead of providing the Admin permissions, you can help us with switching the required jobs from unittest (1.19) and unittest (1.20) to unittest in:

Thank you!

@trask
Copy link
Member

trask commented Aug 10, 2023

@trask, the PRs ^ are approved. Can you please help us with switching the required jobs from unittest (1.19) and unittest (1.20) to unittest

paging someone from @open-telemetry/technical-committee who have the permissions to do this ☎️

@arminru
Copy link
Member

arminru commented Aug 11, 2023

@dmitryax I changed the settings in https://github.com/open-telemetry/opentelemetry-collector as requested. For -contrib there is no such job name but rather some dozens of jobs based on a matrix. Do you intend to keep it there like that or will open-telemetry/opentelemetry-collector#8218 also be ported to -contrib?

@arminru
Copy link
Member

arminru commented Aug 11, 2023

Found your PR open-telemetry/opentelemetry-collector-contrib#25151 in the meantime.

Unfortunately the 30-ish recommendations the Github UI gives when filtering for unittest did not include the plain unittest but all of the individual matrix branch results instead...
I was able to get it to set it to just unittest by replacing the branch protection rule via the Github API now and it looks like it worked:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/repo-maintenance Maintenance of repos in the open-telemetry org
Projects
None yet
Development

No branches or pull requests

3 participants