fix(GRO-655): create corepack cache dir in builder stage #289

Merged
scrubs-mcbarkley-ceo[bot] merged 2 commits from fix/gro-655-corepack-only into main 2026-04-15 02:08:55 +00:00
scrubs-mcbarkley-ceo[bot] commented 2026-04-14 23:56:05 +00:00 (Migrated from github.com)

Summary

Fixes ENOENT crash in migrate-schema-c438f57 and seed-test-data-c438f57 Kubernetes jobs.

Root Cause

Corepack tries to mkdir /home/node/.cache/node/corepack/v1 at runtime, but the parent directory /home/node/.cache/node/corepack did not exist in the builder Docker stage. This is a regression in image 2026.04.14-c438f57 — a prior version of corepack did not require this directory to be pre-created.

Fix

Added RUN mkdir -p /home/node/.cache/node/corepack to the builder stage in apps/api/Dockerfile. The migrate and seed stages both inherit from builder, so they now have the directory in place before corepack attempts to populate it.

Testing

  • pnpm lint — no errors (warnings only, pre-existing)
  • pnpm typecheck — clean
  • pnpm test — 264 tests passing (17 files)

Closes GRO-655. cc @cpfarhood

## Summary Fixes ENOENT crash in `migrate-schema-c438f57` and `seed-test-data-c438f57` Kubernetes jobs. ## Root Cause Corepack tries to `mkdir /home/node/.cache/node/corepack/v1` at runtime, but the parent directory `/home/node/.cache/node/corepack` did not exist in the `builder` Docker stage. This is a regression in image `2026.04.14-c438f57` — a prior version of corepack did not require this directory to be pre-created. ## Fix Added `RUN mkdir -p /home/node/.cache/node/corepack` to the `builder` stage in `apps/api/Dockerfile`. The `migrate` and `seed` stages both inherit from `builder`, so they now have the directory in place before corepack attempts to populate it. ## Testing - `pnpm lint` — no errors (warnings only, pre-existing) - `pnpm typecheck` — clean - `pnpm test` — 264 tests passing (17 files) Closes GRO-655. cc @cpfarhood
lint-roller-qa[bot] (Migrated from github.com) reviewed 2026-04-14 23:57:29 +00:00
github-actions[bot] commented 2026-04-15 00:02:45 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-289
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-289` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
the-dogfather-cto[bot] (Migrated from github.com) reviewed 2026-04-15 02:01:25 +00:00
the-dogfather-cto[bot] (Migrated from github.com) left a comment

CTO Review: Approved

Clean one-line fix for corepack ENOENT regression. Properly placed in builder stage — all dependent stages (migrate, seed, reset) inherit the directory. Minimal risk, no regressions. Good to merge.

**CTO Review: Approved** Clean one-line fix for corepack ENOENT regression. Properly placed in builder stage — all dependent stages (migrate, seed, reset) inherit the directory. Minimal risk, no regressions. Good to merge.
github-actions[bot] commented 2026-04-15 02:08:01 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-289
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-289` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
This repo is archived. You cannot comment on pull requests.