Skip to content

Fix CI: Docker builds fail (no package-lock.json) + backend tests fail (--coverage as path pattern) - #5

Merged
mesayanroy merged 8 commits into
mainfrom
copilot/improve-frontend-design
Mar 14, 2026
Merged

Fix CI: Docker builds fail (no package-lock.json) + backend tests fail (--coverage as path pattern)#5
mesayanroy merged 8 commits into
mainfrom
copilot/improve-frontend-design

Conversation

Copilot AI commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Two independent CI failures on the same PR:

  1. Docker builds crashed immediately — both Dockerfiles referenced package-lock.json and used npm ci --workspace, but the repo is a pnpm workspace (pnpm-lock.yaml only).
  2. Backend tests failed with "No tests found" — pnpm test -- --coverage forwards -- to jest, making jest treat --coverage as a file path pattern that matches nothing.

Docker Dockerfiles (devops/Dockerfile.backend, devops/Dockerfile.frontend)

  • RUN corepack enable to activate pnpm from the "packageManager" field in package.json
  • COPY package.json package-lock.jsonCOPY package.json pnpm-lock.yaml pnpm-workspace.yaml
  • Copy all three workspace package.json files before install (pnpm needs all manifests to validate the lockfile)
  • npm ci --workspace=<pkg>pnpm install --frozen-lockfile --filter <pkg>
  • npm -w <pkg> run buildpnpm --filter <pkg> run build

Backend production stage retains npm install --omit=dev — no workspace:* cross-deps, so a standalone install from the copied package.json is sufficient. Frontend production stage was already correct (Next.js standalone output is self-contained).

Backend test configuration (backend/package.json, .github/workflows/ci.yml)

  • Added "collectCoverage": true to jest config so coverage is always emitted by pnpm test
  • CI step changed from pnpm test -- --coveragepnpm test

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI and others added 2 commits March 14, 2026 16:19
…l theme, add /about page

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
… titles in Navbar, BNB→BIN

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot AI changed the title [WIP] Update frontend for professional appearance and navigation Fix CI pnpm/npm mismatch + professional frontend redesign with dedicated nav pages Mar 14, 2026
Copilot AI requested a review from mesayanroy March 14, 2026 16:24
…PM_BAD_PM_VERSION CI failure

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot AI changed the title Fix CI pnpm/npm mismatch + professional frontend redesign with dedicated nav pages Fix CI: remove duplicate pnpm version causing ERR_PNPM_BAD_PM_VERSION on all jobs Mar 14, 2026
… update lockfile

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot AI changed the title Fix CI: remove duplicate pnpm version causing ERR_PNPM_BAD_PM_VERSION on all jobs Fix CI: missing uuid dep in backend, missing @types/jest + test tsconfig in CLI Mar 14, 2026
…S2742)

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot AI changed the title Fix CI: missing uuid dep in backend, missing @types/jest + test tsconfig in CLI Fix CI: backend typecheck TS2742 + missing uuid dep + CLI jest types Mar 14, 2026
Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot AI changed the title Fix CI: backend typecheck TS2742 + missing uuid dep + CLI jest types Fix CI: backend test suite fails due to jest treating --coverage as a path pattern Mar 14, 2026
Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot AI changed the title Fix CI: backend test suite fails due to jest treating --coverage as a path pattern Fix CI: Docker builds fail (no package-lock.json) + backend tests fail (--coverage as path pattern) Mar 14, 2026
@mesayanroy
mesayanroy marked this pull request as ready for review March 14, 2026 20:53
@mesayanroy
mesayanroy merged commit 3ebd0a4 into main Mar 14, 2026
4 checks passed
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