Skip to content

ci: test only the Node versions package.json supports - #139

Merged
ThinkOffApp merged 1 commit into
mainfrom
fix/ci-matrix-matches-engines-floor
Oct 4, 2026
Merged

ThinkOffApp merged 1 commit into
mainfrom
fix/ci-matrix-matches-engines-floor

Conversation

@ThinkOffApp

Copy link
Copy Markdown
Owner

The CI matrix ran [18.x, 20.x, 22.x] while package.json declares engines.node >= 20, so every run tested a runtime the project says it does not support, and failed there. That red has been on the board since at least 22 Sep, across five merges, and it is the only thing failing on #138 as well: 20.x and 22.x pass, 18.x does not.

This drops 18.x, so the matrix matches the floor the package declares.

🤖 Generated with Claude Code

The matrix ran [18.x, 20.x, 22.x] while package.json declares
engines.node >= 20, so CI tested a runtime the project says it does not
support, and had been red there since at least 22 Sep across five merges.

The single failure is packages/user-intent-kit/test/state-publisher.test.js:40:
t.mock.timers.enable({ apis: ['setInterval'] }). Node's MockTimers.enable took
a bare array in 18 and the options object from 20, so the object is
ERR_INVALID_ARG_TYPE on 18. 814 of 815 tests pass there; only that one fails.

Fixing the test for 18 would mean writing a compatibility shim for a runtime
the package already excludes. Narrowing the matrix is the honest fix.

Worth it beyond the red badge: a check that is permanently red is a check
nobody reads. We shipped a launch crash through ten days of green builds
earlier this year precisely because a signal had stopped meaning anything.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T09:49:53.672326Z dc8d52c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc8d52c9a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# .enable() took a bare array in Node 18 and an options object from 20,
# so {apis:[...]} is ERR_INVALID_ARG_TYPE there. A permanently red check
# on an unsupported runtime trains everyone to ignore CI.
node-version: [20.x, 22.x]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve Node 18 coverage for the nested package

Removing 18.x from this matrix also removes the only Node 18 run of packages/user-intent-kit/test/*.test.js, although packages/user-intent-kit/package.json still declares node >=18 and the root npm test explicitly includes that suite. Consequently, changes that break this separately documented package for supported Node 18 users can now merge unnoticed; either retain a Node 18 job for the nested package and make its timer test version-compatible, or raise that package's engine floor as well.

Useful? React with 👍 / 👎.

@ThinkOffApp
ThinkOffApp merged commit cdb3434 into main Oct 4, 2026
2 checks passed
@ThinkOffApp
ThinkOffApp deleted the fix/ci-matrix-matches-engines-floor branch October 4, 2026 10:52
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.

1 participant