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

Nx does not run any tasks with neverConnectToCloud=true #28486

Closed
1 of 4 tasks
arthurgubaidullin opened this issue Oct 17, 2024 · 1 comment
Closed
1 of 4 tasks

Nx does not run any tasks with neverConnectToCloud=true #28486

arthurgubaidullin opened this issue Oct 17, 2024 · 1 comment

Comments

@arthurgubaidullin
Copy link

arthurgubaidullin commented Oct 17, 2024

Current Behavior

Nx does not run any tasks with neverConnectToCloud=true

This blocks the entire development process!

Expected Behavior

Nx must run any tasks with neverConnectToCloud=true

GitHub Repo

https://github.com/arthurgubaidullin/fcm-reg-token-management/tree/bug-repro/no-tasks-run-without-cloud

Steps to Reproduce

  1. Clone the repro branch
  2. Run command: npx nx run-many -t lint test build --verbose

Nx Report

Node           : 20.11.0
OS             : linux-arm64
Native Target  : aarch64-linux
npm            : 10.2.4

nx                 : 20.0.1
@nx/js             : 20.0.1
@nx/jest           : 20.0.1
@nx/eslint         : 20.0.1
@nx/workspace      : 20.0.1
@nx/devkit         : 20.0.1
@nx/eslint-plugin  : 20.0.1
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/eslint/plugin
@nx/jest/plugin

Failure Logs

$ npx nx run-many -t lint test build --verbose

 NX   Running targets lint, test, build for project sandbox:

- sandbox

———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[NX CLOUD] Verifying current cloud bundle

———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Successfully ran targets lint, test, build for project sandbox



 NX   Unable to authenticate. If you are connecting to Nx Cloud locally, set an Nx Cloud ID in your nx.json with "nx connect". If you are in a CI context, please set the NX_CLOUD_ACCESS_TOKEN environment variable or define an access token in your nx.json.

Error: Unable to authenticate. If you are connecting to Nx Cloud locally, set an Nx Cloud ID in your nx.json with "nx connect". If you are in a CI context, please set the NX_CLOUD_ACCESS_TOKEN environment variable or define an access token in your nx.json.
    at createApiAxiosInstance (/workspaces/fcm-reg-token-management/node_modules/nx/src/nx-cloud/utilities/axios.js:13:15)
    at verifyOrUpdateNxCloudClient (/workspaces/fcm-reg-token-management/node_modules/nx/src/nx-cloud/update-manager.js:29:58)
    at DbCache._getRemoteCache (/workspaces/fcm-reg-token-management/node_modules/nx/src/tasks-runner/cache.js:108:94)
    at DbCache.getRemoteCache (/workspaces/fcm-reg-token-management/node_modules/nx/src/tasks-runner/cache.js:101:40)
    at DbCache.init (/workspaces/fcm-reg-token-management/node_modules/nx/src/tasks-runner/cache.js:45:39)
    at TaskOrchestrator.run (/workspaces/fcm-reg-token-management/node_modules/nx/src/tasks-runner/task-orchestrator.js:49:47)
    at runAllTasks (/workspaces/fcm-reg-token-management/node_modules/nx/src/tasks-runner/default-tasks-runner.js:60:25)
    at defaultTasksRunner (/workspaces/fcm-reg-token-management/node_modules/nx/src/tasks-runner/default-tasks-runner.js:51:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async invokeTasksRunner (/workspaces/fcm-reg-token-management/node_modules/nx/src/tasks-runner/run-command.js:441:5)

Package Manager Version

10.2.4

Operating System

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

Additional Information

No response

jaysoo pushed a commit that referenced this issue Oct 17, 2024
…28501)

closed #28482, #28486

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
If, `neverConnectToCloud` is set to `true`, there are still attempts
made to connect to NxCloud.
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
if, `neverConnectToCloud` is set to `true`, we should not attempt to
connect to NxCloud.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
jaysoo pushed a commit that referenced this issue Oct 17, 2024
…28501)

closed #28482, #28486

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
If, `neverConnectToCloud` is set to `true`, there are still attempts
made to connect to NxCloud.
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
if, `neverConnectToCloud` is set to `true`, we should not attempt to
connect to NxCloud.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
jaysoo pushed a commit that referenced this issue Oct 17, 2024
…28501)

closed #28482, #28486

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
If, `neverConnectToCloud` is set to `true`, there are still attempts
made to connect to NxCloud.
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
if, `neverConnectToCloud` is set to `true`, we should not attempt to
connect to NxCloud.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants