- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.8k
          makefile: propagate apidiff-compare opts from callers
          #14004
        
          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
base: main
Are you sure you want to change the base?
Conversation
| Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@           Coverage Diff           @@
##             main   #14004   +/-   ##
=======================================
  Coverage   91.60%   91.60%           
=======================================
  Files         655      655           
  Lines       42782    42782           
=======================================
  Hits        39192    39192           
  Misses       2766     2766           
  Partials      824      824           ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
| I'm slightly surprised this worked and hasn't been changed since 2021 (#3464). | 
| 
 Yeah, that's a long time :) | 
| If we have been without this for so long, do we even need the opts? | 
| 
 Maybe, maybe not :) On one side things are working as expected today, however I think some changes might be needed. 
 Also, the  opentelemetry-collector/.github/workflows/api-compatibility.yml Lines 49 to 52 in 6cd9c4e 
 ... and the workflow steps are supposed to execute against the branch from the PR. Please hold this one for now, until things get more clarity :) WDYT? | 
| Hey @dmathieu , Had some time this morning to check things again and here's what I have so far. 
 After going again through the  Here's why. 
 opentelemetry-collector/.github/workflows/api-compatibility.yml Lines 49 to 52 in a96eab1 
 opentelemetry-collector/internal/buildscripts/gen-apidiff.sh Lines 17 to 21 in a96eab1 
 
 opentelemetry-collector/.github/workflows/api-compatibility.yml Lines 55 to 70 in a96eab1 
 opentelemetry-collector/internal/buildscripts/compare-apidiff.sh Lines 17 to 21 in a96eab1 
 
 
 Here's an example run of the workflow in my fork with debugging enabled, which shows that the step succeeds silently, without actually comparing anything. https://github.com/dnaeon/opentelemetry-collector/actions/runs/18489346746/job/52679115017 In my fork I've also created one example PR, which introduces a breaking change in one of the  And here's the workflow run for it. https://github.com/dnaeon/opentelemetry-collector/actions/runs/18490457959/job/52682606364?pr=6 I've also updated this PR with the changes to the workflow. A couple of follow questions, which are not related to this PR, but might be implemented in future ones: 
 Thanks! | 
| PR rebased. | 
Description
The
api-compatibilityworkflow sets custom options forapidiffas part of theCompare-StatesandCheck-Statessteps here.opentelemetry-collector/.github/workflows/api-compatibility.yml
Line 58 in 6cd9c4e
opentelemetry-collector/.github/workflows/api-compatibility.yml
Line 67 in 6cd9c4e
These opts are picked up by the Makefile and collected in the
APICOMPARE_OPTSvar here.opentelemetry-collector/Makefile
Lines 338 to 343 in 6cd9c4e
However, these options are not propagated to
apidiffwhen invoking theapidiff-comparetarget.opentelemetry-collector/Makefile
Lines 345 to 348 in 6cd9c4e
This PR propagates the
APICOMPARE_OPTSto theapidiff-comparetarget, so that any configured options (e.g. by workflows) are respected.Link to tracking issue
None
Testing
Documentation