chore: fix e2e ERR_STREAM_PREMATURE_CLOSE and flaky ARM Alpine setup#2378
Merged
ava-silver merged 1 commit intoJun 24, 2026
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
🎉 All green!🧪 All tests passed 🔗 Commit SHA: a2045be | Docs | Datadog PR Page | Give us feedback! |
ava-silver
force-pushed
the
ava.silver/chore/pin-alpine-ci-to-node-22-to-fix-e2e-premature-close
branch
from
June 24, 2026 18:29
0911173 to
8ec26ed
Compare
ava-silver
force-pushed
the
ava.silver/chore/pin-alpine-ci-to-node-22-to-fix-e2e-premature-close
branch
from
June 24, 2026 19:12
8ec26ed to
ab3e06c
Compare
ava-silver
marked this pull request as ready for review
June 24, 2026 19:40
ava-silver
force-pushed
the
ava.silver/chore/pin-alpine-ci-to-node-22-to-fix-e2e-premature-close
branch
from
June 24, 2026 20:06
ab3e06c to
a2045be
Compare
Drarig29
approved these changes
Jun 24, 2026
ava-silver
deleted the
ava.silver/chore/pin-alpine-ci-to-node-22-to-fix-e2e-premature-close
branch
June 24, 2026 20:55
Merged
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 and why?
Two CI failures on the Alpine and serverless e2e jobs, both pre-existing on
masterand unrelated to feature work:ERR_STREAM_PREMATURE_CLOSEon every Datadog API call from the e2e checkers. The@datadog/datadog-api-clientdefaults tocross-fetch(node-fetch v2), which intermittently aborts the response stream against the Datadog API on some platforms (notably Alpine/musl). It is not tied to a single Node major -- it reproduced on Node 22.23 and 24.17 in Alpine, while the glibc ubuntu jobs on Node 22.19 stayed green.Test standalone binary in ARM Alpinesetup.jirutka/setup-alpinedownloads the aarch64apk.staticwith a single 10s-timeoutcurlfrom the gitlab mirror, which is unreliable from arm64 runners (curl: (28) Failed to connect ... Timeout).How?
fetch(undici), which handles connection close gracefully. Added acreateE2EConfiguration()helper that passesfetch: globalThis.fetchas a top-level config param (the client overwriteshttpApi.fetchwithconf.fetchduringcreateConfiguration, so setting it on the instance is ignored). Wired intojunit-upload-checker.tsandtelemetry-checker.ts.apk.staticwith retries into the path setup-alpine caches ($RUNNER_TEMP/apk) before the Setup Alpine step. The action verifies the cached file's sha256 and skips its own flaky download.Verified in CI:
Test standalone binary in Alpineand theEnd-to-end test the packagematrix now pass with the fetch fix.Review checklist