Repository navigation
ci: work around actions/cache windows flakiness - #8584
Merged
Merged
Conversation
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 7122f03 | Docs | Datadog PR Page | Give us feedback! |
Contributor
Overall package sizeSelf size: 5.84 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.1 | 82.56 kB | 817.39 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
BenchmarksBenchmark execution time: 2026-05-21 22:48:46 Comparing candidate commit 7122f03 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1499 metrics, 94 unstable metrics. |
rochdev
marked this pull request as ready for review
May 21, 2026 04:17
rochdev
force-pushed
the
rochdev/ci-windows-cache-retry
branch
from
May 21, 2026 19:31
e22b34d to
351cc69
Compare
pabloerhard
approved these changes
May 21, 2026
Open upstream bug actions/cache#1754: @actions/cache silently exits non-zero on Windows during cache restore with no error output, failing the calling step. Symptoms: ~0.6s silent death in setup-bun, setup-node, or any direct actions/cache use. Affects every job that hits a cold Windows cache; retrying the job manually almost always succeeds. - node action: split implementation into node/setup and have node/action call it twice (continue-on-error + if failure), so the whole composite (setup-node, our version cache, setup-bun) retries once on Windows failure. All existing callers and version aliases are unchanged. - datadog-ci action: drop the actions/cache step. @datadog/datadog-ci is a bundled package with no transitive deps; the install is fast enough that the cache wasn't pulling its weight, and it directly exposed us to the same bug. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
rochdev
force-pushed
the
rochdev/ci-windows-cache-retry
branch
from
May 21, 2026 22:35
351cc69 to
7122f03
Compare
ngbrown
pushed a commit
to ngbrown-forks/dd-trace-js
that referenced
this pull request
Aug 4, 2026
Open upstream bug actions/cache#1754: @actions/cache silently exits non-zero on Windows during cache restore with no error output, failing the calling step. Symptoms: ~0.6s silent death in setup-bun, setup-node, or any direct actions/cache use. Affects every job that hits a cold Windows cache; retrying the job manually almost always succeeds. - node action: split implementation into node/setup and have node/action call it twice (continue-on-error + if failure), so the whole composite (setup-node, our version cache, setup-bun) retries once on Windows failure. All existing callers and version aliases are unchanged. - datadog-ci action: drop the actions/cache step. @datadog/datadog-ci is a bundled package with no transitive deps; the install is fast enough that the cache wasn't pulling its weight, and it directly exposed us to the same bug. Co-authored-by: Claude Sonnet 4.6 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Work around actions/cache#1754, an open upstream bug where
@actions/cachesilently exits non-zero on Windows during cache restore — failing whichever step triggered the restore with no error output, ~0.6s in.Two changes:
./.github/actions/node— split the implementation intonode/setup/and turnnode/action.ymlinto a thin wrapper that callssetupwithcontinue-on-error: true, then retries once if it failed. Covers all three places we hit the bug inside the composite:setup-node's tool cache, ournode-version-cachestep, andsetup-bun's internal cache restore. Public interface is unchanged, so every caller (includingnode/latest,node/active-lts, etc.) transparently gets the retry../.github/actions/datadog-ci— drop theactions/cachestep entirely.@datadog/datadog-ciis a bundled package with no transitive deps; the install is fast enough that the cache wasn't pulling much weight, and it directly exposed us to the same bug. The existingyarn install || (sleep 30 && yarn install)retry remains.Motivation
tracing-windows(in APM Capabilities) and other Windows jobs have been failing intermittently for a while. The failure is silent — the job goes red with no actionable error in the log. Comparing a failing first attempt vs. a successful retry on the same PR confirmed the bug is the upstreamactions/cacheWindows flakiness reported May 8, affecting multiple unrelated projects (RustPython, f3d-app, etc.). Until there's an upstream fix, retrying is the cleanest workaround.Additional Notes
actions/cache#1754describes the failure as "randomly dies" rather than state-correlated, so an immediate retry should succeed almost always. If it doesn't, thesetup-bunexistsSync(bunPath)short-circuit means a second attempt skips itsrestoreCacheentirely when bun was at least partially installed on the first pass.if: failure()/if: always()ran in the failing job, confirming the runner is unaffected.🤖 Generated with Claude Code