Skip to content

Fix CI test workflow (MinIO, env, pino-pretty)#48

Closed
PabloSzx wants to merge 5 commits into
yjs:masterfrom
PabloSzx:fix/ci-minio-healthcheck
Closed

Fix CI test workflow (MinIO, env, pino-pretty)#48
PabloSzx wants to merge 5 commits into
yjs:masterfrom
PabloSzx:fix/ci-minio-healthcheck

Conversation

@PabloSzx
Copy link
Copy Markdown
Contributor

@PabloSzx PabloSzx commented Apr 1, 2026

Summary

Fixes the CI test workflow which was broken by three independent issues:

  • MinIO container fails to start: Newer minio/minio images no longer default to server /data, so the container just prints help and exits. GitHub Actions service containers don't support custom commands, so MinIO is now started as a workflow step with the explicit server /data command and a curl-based health check.
  • Missing .env.testing: node --env-file .env.testing fails when the file doesn't exist. Added touch .env.testing to create an empty one in CI.
  • pino-pretty not on PATH: The binary is installed as a devDependency in node_modules/.bin but not on the CI shell's PATH. Switched to npx pino-pretty.

Test plan

  • CI test workflow passes

PabloSzx added 4 commits April 1, 2026 10:42
Newer minio/minio images no longer bundle the mc client, so the
`mc ready local` health check fails. Switch to the HTTP health
endpoint which works across all MinIO versions.
The minio/minio image no longer defaults to `server /data`, so
it just prints help and exits when used as a GitHub Actions service
container (which doesn't support custom commands). Run it as a
docker step instead, passing `server /data` explicitly.
Node errors out when --env-file points to a missing file. The init
and test steps reference .env.testing which doesn't exist in CI.
pino-pretty is installed as a devDependency but not on the shell PATH
in GitHub Actions. Use npx to resolve it from node_modules/.bin.
@PabloSzx PabloSzx marked this pull request as ready for review April 1, 2026 14:49
@PabloSzx PabloSzx changed the title Fix CI: use curl for MinIO health check Fix CI test workflow (MinIO, env, pino-pretty) Apr 1, 2026
@dmonad
Copy link
Copy Markdown
Member

dmonad commented Apr 6, 2026

Thanks! That was helpful. I reworked the workflows

@dmonad dmonad closed this Apr 6, 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.

2 participants