Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

nx-distrbuted-task on ubuntu-4-cores Cannot find module project-graph-worker.js #85

@StefanLobbenmeierObjego

Description

@StefanLobbenmeierObjego

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

When starting on ubuntu-latest-4-cores, the nx-distributed-task step fails with this error:

Cannot find module '/home/runner/work/_actions/e-square-io/nx-distributed-task/v2/project-graph-worker.js'

Expected behavior

No error, just like on ubuntu-latest

Minimal reproduction of the problem with instructions

  1. Create a github action runner with 4 cores called ubuntu-4-cores
  2. Run e-square-io/nx-distributed-task@v2 on this runner

What is the motivation / use case for changing the behavior?

The nx project I use has one big project and many small ones. I would like to run the big project on a bigger runner to speed up CI. So I use 4 cores for that one, but unfortunately this seems to be incompatible with this project

Environment


- Nx version: the issue is in the bunled nx version, which is 13.10.6, the project uses 16.9.1
- Node version: 18.18.0
- Platform:  ubuntu

Others:

Logs

Run e-square-io/nx-distributed-task@v2
  with:
    target: test
    projects: objego-client
    uploadOutputs: true
    nxCloud: false
    maxParallel: 3
    debug: false
  env:
    PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
Run actions/github-script@v6
  with:
    script: const { default: setEnv } = require('/home/runner/work/_actions/e-square-io/nx-distributed-task/v[2](https://github.com/objego/objego-client/actions/runs/9854372667/job/27206990967?pr=1372#step:7:2)/set-env.js');
  const { default: main } = require('/home/runner/work/_actions/e-square-io/nx-distributed-task/v2/main.js');
  
  setEnv({
    "target": "test",
    "projects": "objego-client",
    "uploadOutputs": "true",
    "nxCloud": "false",
    "args": "",
    "distribution": "",
    "bucket": "",
    "maxParallel": "[3](https://github.com/objego/objego-client/actions/runs/9854372667/job/27206990967?pr=1372#step:7:3)",
    "workingDirectory": "",
    "debug": "false"
  }, process);
  await main(context, core, exec, glob, __original_require__);
  
    github-token: ***
    debug: false
    user-agent: actions/github-script
    result-encoding: json
    retries: 0
    retry-exempt-status-codes: [4](https://github.com/objego/objego-client/actions/runs/9854372667/job/27206990967?pr=1372#step:7:4)00,401,403,404,422
  env:
    PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin

 >  NX   Cannot find module '/home/runner/work/_actions/e-square-io/nx-distributed-task/v2/project-graph-worker.js'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions