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

[chore] make contrib tests more efficient #12490

Merged
merged 4 commits into from
Feb 28, 2025

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Feb 25, 2025

Instead of having each test group edit modules, tidy and generate, do it once and share the output in each subtest to save 5 minutes per branch.

@atoulme atoulme requested a review from a team as a code owner February 25, 2025 22:24
@atoulme atoulme requested a review from evan-bradley February 25, 2025 22:24
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.99%. Comparing base (443e0bc) to head (f10967e).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12490      +/-   ##
==========================================
- Coverage   92.00%   91.99%   -0.01%     
==========================================
  Files         469      469              
  Lines       25355    25355              
==========================================
- Hits        23327    23325       -2     
- Misses       1619     1620       +1     
- Partials      409      410       +1     

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

@atoulme atoulme force-pushed the prepare_contrib branch 2 times, most recently from fc7ef2c to 7cae2eb Compare February 25, 2025 22:48
Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

👍

@codeboten codeboten added this pull request to the merge queue Feb 28, 2025
Merged via the queue into open-telemetry:main with commit 9861e0a Feb 28, 2025
52 of 55 checks passed
contrib_path=/tmp/opentelemetry-collector-contrib
git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector-contrib.git $contrib_path
make CONTRIB_PATH=$contrib_path prepare-contrib
- uses: actions/upload-artifact@v4
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't it mean that we will be testing against one contrib version for 90 days?

Copy link
Member

@dmitryax dmitryax Feb 28, 2025

Choose a reason for hiding this comment

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

I'm looking at https://github.com/actions/upload-artifact?tab=readme-ov-file#retention-period. Should we add git sha in the path ?

Copy link
Contributor Author

@atoulme atoulme Feb 28, 2025

Choose a reason for hiding this comment

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

ouch. I'll open a new PR to add that
Actually, no, it might not be a problem, since this happens every time and is used inside the same build. But we can certainly do it anyway.

Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to upload it then? Should we use https://github.com/actions/cache instead?

Copy link
Contributor Author

@atoulme atoulme Feb 28, 2025

Choose a reason for hiding this comment

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

I followed the recipe I have seen used most of the time. A cache is a step better I didn't look into because I was afraid of having cache issues. That would shave an additional 4 minutes off the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants