Skip to content

fix(ci): bump setup-node to v22 to match middleware engines - #33

Closed
iret77 wants to merge 1 commit into
mainfrom
fix/ci-node-22
Closed

fix(ci): bump setup-node to v22 to match middleware engines#33
iret77 wants to merge 1 commit into
mainfrom
fix/ci-node-22

Conversation

@iret77

@iret77 iret77 commented May 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • middleware/package.json declares engines.node ">=22 <23", but .github/workflows/ci.yml pinned all three actions/setup-node@v4 steps to node-version: '20'.
  • After reactivating GitHub Actions, this surfaced as EBADENGINE during npm ci in the middleware (lint + typecheck + test) and audit (high+critical block) (middleware) jobs.
  • Bumps all three setup-node invocations (middleware job line 44, web-ui job line 78, audit matrix job line 185) from '20' to '22'. No other files touched.

Root-level .nvmrc already pins 22.12.0 and was left untouched.

The schema-smoke failures (stale migration paths) are out-of-scope here and being handled in a parallel PR.

Test plan

  • Required checks middleware (lint + typecheck + test) and audit (high+critical block) (middleware) turn green (were red with EBADENGINE).
  • web-ui (lint + typecheck + vitest) and audit (high+critical block) (web-ui) stay green.
  • schema (migrations on pgvector) remains red until the parallel migration-path PR lands — expected and out-of-scope.

middleware/package.json declares engines.node ">=22 <23" but
.github/workflows/ci.yml pinned setup-node@v4 to node-version "20",
which produced EBADENGINE during `npm ci` in the middleware and
audit (middleware) jobs once Actions were reactivated.
@iret77

iret77 commented May 17, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #35 (consolidated CI resurrection). Under the strict branch protection with strict: true required checks, the three PRs (#32/#33/#34) were mutually blocking — each had at least one red required check depending on one of the others. All changes from this PR are preserved in #35 (cherry-picked under the same author identity), plus a fourth commit that fixes the prefer-const lint bug that had been hidden behind EBADENGINE, and an extended CHANGELOG ### Fixed block.

@iret77 iret77 closed this May 17, 2026
Weegy added a commit that referenced this pull request May 17, 2026
Three CI failures on the consolidation PR:

1. middleware lint+typecheck+test + audit jobs failed with EBADENGINE:
   workflow ci.yml hardcoded `node-version: '20'` but middleware
   `package.json` requires `>=22 <23`. Same fix as omadia's unmerged
   PR #33; applied to all three `setup-node@v4` invocations.

2. Docker build failed with "/docs/harness-platform/boilerplate":
   not found. The consolidation rsync overwrote omadia's root-level
   Dockerfile with workshop's version, which references workshop-only
   paths (`docs/harness-platform/{boilerplate,entity-registry,examples}`,
   `skills/`, plus a workshop-legacy `services/graph/migrations` COPY).
   omadia uses `middleware/{assets,plugin-manifests}` instead. Restored
   the Dockerfile from `main` — has the correct paths, already shipping.

3. web-ui/Dockerfile got similarly overwritten with workshop-specific
   defaults (hostname `odoo-bot-middleware.internal`, "Harness Admin"
   comment). Restored from `main` (generic `middleware:8080` default,
   "Omadia Admin UI" branding).
@iret77
iret77 deleted the fix/ci-node-22 branch May 17, 2026 18:03
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