Skip to content

feat(CI): reuse Go build cache across workflows#1347

Merged
mmat11 merged 3 commits into
open-telemetry:mainfrom
skl:skl/reuse-go-build-cache
Feb 23, 2026
Merged

feat(CI): reuse Go build cache across workflows#1347
mmat11 merged 3 commits into
open-telemetry:mainfrom
skl:skl/reuse-go-build-cache

Conversation

@skl
Copy link
Copy Markdown
Member

@skl skl commented Feb 23, 2026

Summary

Add Go build caching to four additional PR workflows using the same secure pattern established in pull_request_integration_tests.yml. This extends build cache reuse from the integration test workflow to unit tests, ARM integration tests, K8s integration tests, OATS tests, and VM integration tests.

Each workflow gets workflow-specific cache keys to avoid invalidation between different test configurations (e.g., race vs non-race builds). Cache hits will save 1-4 minutes of build time per job, with aggregate savings across sharded matrix jobs.

Checklist

Add Go build caching to four additional PR workflows (pull_request, pull_request_integration_tests_arm, pull_request_k8s_integration_tests, pull_request_oats_test, workflow_integration_tests_vm) using the same secure pattern established in pull_request_integration_tests. Cache keys are workflow-specific to avoid invalidation between different test configurations (race vs non-race builds).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@skl skl requested a review from a team as a code owner February 23, 2026 11:48
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.28%. Comparing base (2576b20) to head (f3ce065).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1347       +/-   ##
===========================================
+ Coverage   19.62%   38.28%   +18.66%     
===========================================
  Files         242      308       +66     
  Lines       28332    33497     +5165     
===========================================
+ Hits         5559    12824     +7265     
+ Misses      22116    19905     -2211     
- Partials      657      768      +111     
Flag Coverage Δ
integration-test ?
integration-test-arm 0.00% <ø> (ø)
integration-test-vm-x86_64-5.15.152 0.00% <ø> (ø)
integration-test-vm-x86_64-6.10.6 0.00% <ø> (ø)
k8s-integration-test 2.34% <ø> (+<0.01%) ⬆️
oats-test 0.00% <ø> (ø)
unittests 44.60% <ø> (?)

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

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mmat11 mmat11 merged commit b16912d into open-telemetry:main Feb 23, 2026
59 of 61 checks passed
@skl skl deleted the skl/reuse-go-build-cache branch February 23, 2026 15:25
@MrAlias MrAlias added this to the v0.6.0 milestone Feb 23, 2026
@MrAlias MrAlias mentioned this pull request Mar 5, 2026
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.

3 participants