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 #2469

Closed
mx-psi opened this issue Nov 28, 2024 · 9 comments
Closed

REQUEST: Repository maintenance on opentelemetry-collector #2469

mx-psi opened this issue Nov 28, 2024 · 9 comments
Assignees
Labels
area/repo-maintenance Maintenance of repos in the open-telemetry org

Comments

@mx-psi
Copy link
Member

mx-psi commented Nov 28, 2024

Affected Repository

https://github.com/open-telemetry/opentelemetry-collector

Requested changes

Enable the Require merge queue setting on the branch protection rules for the main branch with "squash" merge method

Purpose

Same as #2457

Expected Duration

Permanently

Repository Maintainers

  • @open-telemetry/collector-maintainers
@mx-psi mx-psi added the area/repo-maintenance Maintenance of repos in the open-telemetry org label Nov 28, 2024
@trask trask self-assigned this Dec 2, 2024
@trask
Copy link
Member

trask commented Dec 2, 2024

done, will leave open until you're able to confirm it's working

@mx-psi
Copy link
Member Author

mx-psi commented Dec 2, 2024

Spoke offline with Trask, disabled it for now since we found a couple of issues: open-telemetry/opentelemetry-collector#11781 (comment)

@VihasMakwana
Copy link

Spoke offline with Trask, disabled it for now since we found a couple of issues: open-telemetry/opentelemetry-collector#11781 (comment)

Just to confirm, are the issues related to my PR in any way?

@mx-psi
Copy link
Member Author

mx-psi commented Dec 2, 2024

@VihasMakwana No, not at all, I just used your PR as a test :)

mx-psi pushed a commit to open-telemetry/opentelemetry-collector that referenced this issue Dec 5, 2024
#### Description

This PR removes the `merge_group` trigger from the two CI checks that
failed in merge queues (but not in PRs). See tracking issue for details.

The reasoning for simply disabling them instead of modifying them to
work in merge queues is three-fold:
- For `changelog` to be meaningful, it needs to only run for PRs with no
`[chore]` title tag or `Skip changelog` label, but it seems there is no
simple way to access this data in merge queue workflows unfortunately.
(A possible complicated way may be to parse the ref (PR branch) name and
query the title and labels in a script with the `gh` command.)
- `api-compatibility` is never meaningful because it seems to have been
broken for a long time (see #7443)
- Both `changelog` and `api-compatibility` are checks on the _set of
changes_ made by a PR, not on the resulting state of the codebase. As
such, their result should not meaningfully change when merged against an
old main vs. a newer main, making running them in the merge queue
pointless.

#### Link to tracking issue
Fixes #11790

This should let us try [enabling the merge
queue](open-telemetry/community#2469) again.

#### Testing
Testing merge queue checks is unfortunately quite difficult, but since
we're only disabling checks I don't foresee any issues.
@mx-psi
Copy link
Member Author

mx-psi commented Dec 5, 2024

@trask We believe we have fixed the issues and would like to try again. Could you enable the merge queue again?

cc @evan-bradley

@arminru arminru self-assigned this Dec 5, 2024
@arminru
Copy link
Member

arminru commented Dec 5, 2024

@mx-psi Enabled the merge queue again with the following settings:

image

@jade-guiton-dd
Copy link

For the record, there was yet another issue (the changelog check is required, but never started in merge queues, and eventually times out). It should hopefully be fixed once this PR lands. Recent PRs will probably need to be updated/rebased to use the updated check before they can pass merge queue however.

@arminru
Copy link
Member

arminru commented Dec 6, 2024

Thanks, @jade-guiton-dd!

@mx-psi Please confirm once everything is working as expected so we can close the issue.

@mx-psi
Copy link
Member Author

mx-psi commented Dec 10, 2024

Seems to be working as expected, closing :)

@mx-psi mx-psi closed this as completed Dec 10, 2024
HongChenTW pushed a commit to HongChenTW/opentelemetry-collector that referenced this issue Dec 19, 2024
#### Description

This PR removes the `merge_group` trigger from the two CI checks that
failed in merge queues (but not in PRs). See tracking issue for details.

The reasoning for simply disabling them instead of modifying them to
work in merge queues is three-fold:
- For `changelog` to be meaningful, it needs to only run for PRs with no
`[chore]` title tag or `Skip changelog` label, but it seems there is no
simple way to access this data in merge queue workflows unfortunately.
(A possible complicated way may be to parse the ref (PR branch) name and
query the title and labels in a script with the `gh` command.)
- `api-compatibility` is never meaningful because it seems to have been
broken for a long time (see open-telemetry#7443)
- Both `changelog` and `api-compatibility` are checks on the _set of
changes_ made by a PR, not on the resulting state of the codebase. As
such, their result should not meaningfully change when merged against an
old main vs. a newer main, making running them in the merge queue
pointless.

#### Link to tracking issue
Fixes open-telemetry#11790

This should let us try [enabling the merge
queue](open-telemetry/community#2469) again.

#### Testing
Testing merge queue checks is unfortunately quite difficult, but since
we're only disabling checks I don't foresee any issues.
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
Status: Done
Development

No branches or pull requests

5 participants