Skip to content

Implement a merge freeze when an "[chore] Update core dependencies" PR on opentelemetry-collector-contrib is present #12837

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sAchin-680
Copy link

Description

Extend the merge freeze logic in .github/workflows/scripts/check-merge-freeze.sh to include open PRs titled "[chore] Update core dependencies" in the opentelemetry-collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib repository, in addition to the existing check for "[chore] Prepare release" PRs in the core repo.

This ensures that no PRs can be merged into main while a core update PR is pending in contrib, helping us avoid version drift and keep dependencies aligned between core and contrib.

Link to tracking issue

Fixes #12830

Testing

Tested locally by:

  • Opening a dummy "[chore] Update core dependencies" PR on opentelemetry-collector-contrib
  • Running the updated check-merge-freeze.sh script to confirm it correctly blocks merges
  • Verified output message includes the contrib PR URL when such a PR is open

Documentation

No user-facing documentation changes needed. This change only affects internal CI logic.

@sAchin-680 sAchin-680 requested a review from a team as a code owner April 14, 2025 21:44
@sAchin-680 sAchin-680 requested a review from codeboten April 14, 2025 21:44
Copy link

linux-foundation-easycla bot commented Apr 14, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: sAchin-680 / name: SACHIN KUMAR (75c3aaa)

@sAchin-680 sAchin-680 force-pushed the chore/merge-freeze-update-core-deps-pr branch from bcc414e to b5f796b Compare April 15, 2025 12:23
Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.55%. Comparing base (a787582) to head (17d872a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12837   +/-   ##
=======================================
  Coverage   91.55%   91.55%           
=======================================
  Files         499      499           
  Lines       27089    27089           
=======================================
  Hits        24801    24801           
  Misses       1809     1809           
  Partials      479      479           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sAchin-680 sAchin-680 force-pushed the chore/merge-freeze-update-core-deps-pr branch 3 times, most recently from 31277db to a8c7fb7 Compare April 17, 2025 04:43
@sAchin-680
Copy link
Author

Hi @mx-psi !!

This PR #12837 extends the merge freeze logic to include [chore] Update core dependencies PRs from the opentelemetry-collector-contrib repository, helping maintain alignment between core and contrib during updates.

I've tested the changes locally and verified that the script correctly blocks merges when such PRs are open.

Would appreciate it if you could take a look whenever convenient. Thanks !

@sAchin-680 sAchin-680 force-pushed the chore/merge-freeze-update-core-deps-pr branch 3 times, most recently from e0e1e6f to 17d872a Compare April 19, 2025 18:51
@sAchin-680 sAchin-680 force-pushed the chore/merge-freeze-update-core-deps-pr branch from 17d872a to 75c3aaa Compare April 21, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant