Skip to content

Without any change to Nx configuration, nx-cloud agents suddenly fail to start since last Friday #31712

Closed
@ryan-mcginty-alation

Description

@ryan-mcginty-alation

Current Behavior

Over the weekend our github action pipelines started failing for any runs not triggered from pull requests. We have not made any changes to our workflow files, nx configuration or nx package versions. For any actions that are triggered via push to main, workflow dispatch, or workflow call nx agents won't start. This even happens in the same workflow file that handles both workflow_dispatch and pull requests. When triggered from the pull request agents start up, when triggered from anything else they don't start up.

Expected Behavior

Nx agents should continue to function as they did before Friday evening.

GitHub Repo

No response

Steps to Reproduce

  1. For us any workflow that calls nx-start-ci-run and is not triggered from a PR run, like:

npx nx-cloud start-ci-run --distribute-on="12 linux-extra-large-js" --stop-agents-after=build,test

Relevant env variables:

  NX_BRANCH: ${{ github.event.number || github.ref }}
  NX_CLOUD_NO_TIMEOUTS: 'true'
  NX_CI_EXECUTION_ENV: 'pull-request-verify-build'
  NX_CI_EXECUTION_ID: ${{ github.event.pull_request.head.sha || github.ref }}-${{ github.run_attempt }}
  NX_VERBOSE_LOGGING: true

Nx Report

Node           : 22.13.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.2

nx (global)            : 21.2.1
nx                     : 20.8.2
@nx/js                 : 20.8.2
@nx/jest               : 20.8.2
@nx/eslint             : 20.8.2
@nx/workspace          : 20.8.2
@nx/cypress            : 20.8.2
@nx/devkit             : 20.8.2
@nx/eslint-plugin      : 20.8.2
@nx/module-federation  : 20.8.2
@nx/playwright         : 20.8.2
@nx/plugin             : 20.8.2
@nx/react              : 20.8.2
@nx/rollup             : 20.8.2
@nx/storybook          : 20.8.2
@nx/vite               : 20.8.2
@nx/web                : 20.8.2
typescript             : 5.3.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/eslint/plugin
@nx/vite/plugin
@nx/storybook/plugin
@nx/storybook/plugin
@nx/playwright/plugin
@nx/playwright/plugin
@nx/playwright/plugin
@nx/react/router-plugin
---------------------------------------
Local workspace plugins:
	 @alation/nx-storybook
	 @alation/nx-plugin
	 @alation/nx-react
	 @alation/nx-vite
	 @alation/nx-ci
	 @alation/nx-ts
---------------------------------------
Cache Usage: 1.39 MB / 46.04 GB

Failure Logs

[Nx Cloud] Detected Env: GitHub Actions
{
  "branch": "v10.379.0",
  "ref": "v10.379.0",
  "title": "chore: AL-196994: release version 10.379.0",
  "headSha": "e3a1aeef314f13cecbabd64a0d4e80f4ed93eff5",
  "baseSha": null,
  ...removed
  "platformName": "GITHUB_ACTIONS"
}
Request failed with status code 400

failed to start agents - please retry the main job
Error: Process completed with exit code 1.

Package Manager Version

npm 10.9.2

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions