Repository navigation
test(node): Check docker-compose healthchecks in a static test - #26884
Merged
Merged
Conversation
…es out A slow Docker CLI made `docker compose config` hit its 10s timeout, and the check then threw with an empty message. Warn and skip the check instead, like the other slow Docker steps. A real non-zero exit still throws, now with the exit code and signal. Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Contributor
size-limit report 📦Compared: 38b85b9 (PR test merge using develop at 40fb1a8) Against: 40fb1a8 (develop) · base run #67947 ✅ Baseline matches: this diff contains only this PR's changes.
|
Running `docker compose config` before every Docker suite only to lint the compose file cost a docker spawn per suite and could time out on a slow runner. A single test now parses every docker-compose.yml with `yaml` and fails on a service whose healthcheck is missing or disabled. Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea
marked this pull request as ready for review
November 25, 2026 14:59
javascript-sdk-gitflow
Bot
requested review from
JPeer264,
andreiborza and
isaacs
November 25, 2026 14:59
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 2 not successful, 84 successful. See the run.
Successful checks
|
nicohrubec
approved these changes
Nov 25, 2026
51 tasks done
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
The check from #26854, that every docker-compose service has a healthcheck, now runs as one static test (
suites/docker-compose.test.ts). The test parses the compose files withyamlinstead of runningdocker compose configbefore every Docker suite.yamlis a new devDependency of node-integration-tests. It was already in the lockfile as a transitive dependency.Why
The per-suite
docker compose configspawn could hit its 10s timeout on a slow runner. When it did, it failed the suite with an empty error (job). Linting a YAML file doesn't need Docker. A static test also runs once instead of once per suite, and it names the file that's wrong.Part of #26852
via @mydea.
--
View Session [Sentry]