Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find Nx Cloud Agent binary with Yarn v3.6.4 #26916

Open
1 of 4 tasks
david-gettins opened this issue Jul 12, 2024 · 2 comments
Open
1 of 4 tasks

Could not find Nx Cloud Agent binary with Yarn v3.6.4 #26916

david-gettins opened this issue Jul 12, 2024 · 2 comments

Comments

@david-gettins
Copy link

Current Behavior

I've recently moved to using the latest CI template recommendations for Nx Cloud. I am using yarn v3.6.4 with React Native v0.74.3. I have modified my GitHub CI template from the one provided in the Nx Cloud docs to get yarn working at the correct version.

Whenever I attempt to run an nx-cloud distributed build I get the error, "Could not find Nx Cloud Agent binary" on every agent.

I have another repo where I just use npm and not yarn. Things seem to work completely fine there.

Expected Behavior

Agents start and run.

GitHub Repo

No response

Steps to Reproduce

  1. Ensure you are using yarn@3.6.4.
  2. Set up CI as described here.
  3. Modify CI template to use yarn.
  4. Enable cloud distribution.

Nx Report

Node   : 20.11.1
OS     : darwin-arm64
yarn   : 3.6.4

nx                 : 19.4.2
@nx/js             : 19.4.2
@nx/jest           : 19.4.2
@nx/linter         : 19.4.2
@nx/eslint         : 19.4.2
@nx/workspace      : 19.4.2
@nx/cypress        : 19.4.2
@nx/detox          : 19.4.2
@nx/devkit         : 19.4.2
@nx/esbuild        : 19.4.2
@nx/eslint-plugin  : 19.4.2
@nx/node           : 19.4.2
@nx/react          : 19.4.2
@nx/react-native   : 19.4.2
@nx/storybook      : 19.4.2
@nrwl/tao          : 19.4.2
@nx/web            : 19.4.2
@nx/webpack        : 19.4.2
typescript         : 5.4.5

Failure Logs

Could not find Nx Cloud Agent binary

Package Manager Version

yarn@3.6.4

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

Here are my CI template steps:

steps:
  - name: Checkout
    uses: actions/checkout@v4
    with:
      fetch-depth: 0

  - name: Setup NodeJS
    uses: actions/setup-node@v4
    with:
      node-version: 20

  - name: Enable corepack
    run: corepack enable

  - name: Start NX Cloud
    run: yarn dlx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml" --stop-agents-after="test"

  - name: Setup NodeJS for Yarn
    uses: actions/setup-node@v4
    with:
      node-version: 20
      cache: 'yarn'

  - name: Install packages
    run: yarn install --immutable

  - name: Set SHAs
    uses: nrwl/nx-set-shas@v4

  - name: Check formatting
    run: yarn nx-cloud record -- nx format:check

  - name: Lint and test
    run: yarn nx affected -t lint test
@david-gettins
Copy link
Author

Downgraded to yarn v1.22.22 and the agents work again.

@rarmatei
Copy link
Collaborator

thanks for reporting this! It's not something we've seen before and afaik agents should work with Yarn V3

Can you send me an email at rares@nrwl.io with a link to your failing run please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants