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

cache php extensions #1213

Merged
merged 1 commit into from
Jan 16, 2024
Merged

cache php extensions #1213

merged 1 commit into from
Jan 16, 2024

Conversation

brettmc
Copy link
Collaborator

@brettmc brettmc commented Jan 13, 2024

optimize build times by caching php extensions, particularly for 8.4/nightly which otherwise builds extensions from source each time.
Cache key is year+week#, so the first action each week will be particularly slow (~18m for 8.4); the other versions will be slower but tolerable at ~30s

NB that 8.4 now incorrectly reports as passing, but there are some errors visible in the overview.

Copy link

codecov bot commented Jan 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3928b13) 83.19% compared to head (064ca49) 83.19%.
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1213      +/-   ##
============================================
- Coverage     83.19%   83.19%   -0.01%     
- Complexity     2257     2262       +5     
============================================
  Files           285      285              
  Lines          6422     6432      +10     
============================================
+ Hits           5343     5351       +8     
- Misses         1079     1081       +2     
Flag Coverage Δ
7.4 81.82% <ø> (-0.01%) ⬇️
8.0 83.09% <ø> (-0.01%) ⬇️
8.1 83.25% <ø> (-0.01%) ⬇️
8.2 83.25% <ø> (-0.01%) ⬇️
8.3 83.25% <ø> (-0.01%) ⬇️
8.4 83.25% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3928b13...064ca49. Read the comment docs.

optimize build times by caching php extensions for one week, particularly for 8.4/nightly which otherwise builds extensions from source each time
this ended up being a little convoluted, since caching extensions does not run on failure. So, make all steps continue-on-failure for experimental
builds, and add a final post job which checks the status of the steps and does a final fail.
@brettmc brettmc marked this pull request as ready for review January 16, 2024 06:07
@brettmc brettmc requested a review from a team January 16, 2024 06:07
@brettmc brettmc merged commit 2390dc0 into open-telemetry:main Jan 16, 2024
12 of 13 checks passed
@brettmc brettmc deleted the cache-php branch January 29, 2025 21:52
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.

2 participants