Skip to content

Conversation

@jaysoo
Copy link
Member

@jaysoo jaysoo commented Oct 27, 2025

Update workflows to Node 22.21.0.

@jaysoo jaysoo requested a review from a team as a code owner October 27, 2025 13:52
@jaysoo jaysoo requested a review from Cammisuli October 27, 2025 13:52
@vercel
Copy link

vercel bot commented Oct 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 27, 2025 3:19pm

@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit ea57784
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68ff887b948fb700088a2fb1
😎 Deploy Preview https://deploy-preview-33267--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Oct 27, 2025

View your CI Pipeline Execution ↗ for commit ea57784

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ❌ Failed 38m 6s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 44s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 12s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-27 15:41:30 UTC

nx-cloud[bot]

This comment was marked as outdated.

- name: Install Node
uses: 'nrwl/nx-cloud-workflows/v5/workflow-steps/install-node/main.yaml'
inputs:
node_version: '22'
Copy link
Contributor

Choose a reason for hiding this comment

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

Inconsistent Node version specification. The PR title states "use Node 22.21.0" but this line uses '22' instead of '22.21.0'. This will install the latest 22.x version rather than the specific 22.21.0 version, potentially causing different CI environments to run different Node versions.

node_version: '22.21.0'
Suggested change
node_version: '22'
node_version: '22.21.0'

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

Nx Cloud has identified a possible root cause for your failed CI:

This is classified as an environment_state issue rather than a code_change issue because:

  1. Node.js version upgrade: The PR upgrades Node from version 20 to 22 in CI workflows (.github/workflows/ci.yml and .github/workflows/issue-notifier.yml). Node 22 has different module handling and may affect how Jest processes TypeScript files.

  2. Widespread, identical failures: Multiple unrelated projects (nx-dev-ui-sponsor-card, nx-dev-ui-markdoc, nx-dev-data-access-documents, dotnet, nx-dev, module-federation, nx-dev-feature-ai, rsbuild) all fail with the exact same error pattern: "Failed to parse the TypeScript config file" with "Unexpected token 'export'". This indicates a systemic environment issue rather than specific code problems.

  3. No jest.config.ts modifications: The PR diff shows no changes to any jest.config.ts files or Jest-related configuration. The code changes are focused on reverting daemon messaging serialization from V8 back to JSON.

  4. Nature of the error: The error "Unexpected token 'export'" indicates Jest cannot parse ES module syntax in TypeScript files. This is a transpilation/compilation environment issue, not a logic error in the code.

  5. Code changes are unrelated: The PR reverts daemon socket messaging changes - removing V8 serialization, simplifying message delimiters from 'NX_MSG_END\x04' back to '\x04', and cleaning up related code. None of these changes would affect Jest's ability to parse TypeScript configuration files.

  6. Node.js warning confirms the issue: The warning message "Failed to load the ES module: ... Make sure to set "type": "module" in the nearest package.json file or use the .mjs extension" indicates a Node.js module system configuration issue that is environment-dependent.

The failures stem from the Node 22 upgrade changing how modules are handled, which affects Jest's TypeScript transpilation process, not from any intentional code changes made in this PR.

A code change would likely not resolve this issue, so no action was taken.

Nx CloudView in Nx Cloud ↗


🎓 To learn more about Self Healing CI, please visit nx.dev

@jaysoo jaysoo closed this Nov 5, 2025
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