nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.5k stars 2.34k forks source link

Nx format fails without error #22901

Closed de-don closed 2 months ago

de-don commented 6 months ago

Current Behavior

On CI step, when too many changed files (approx 3k files), command nx format:check --base=xxx fails without any errors:

> cross-var nx format:check --base=$npm_config_base_branch
ERROR: Job failed: exit code 1

but locally all works fine (without any errors).

I have checked getconf ARG_MAX and also tries to apply patch-package with next patch, but it doen't help

-function chunkify(target, maxChunkLength = TERMINAL_SIZE - 500) {
+function chunkify(target, maxChunkLength = TERMINAL_SIZE / 2 - 500) {

Expected Behavior

format succeeded without errors

GitHub Repo

No response

Steps to Reproduce

  1. Do many changes in repo (approx 3k files)
  2. Run nx format:check --base=XXX on CI

Nx Report

(local machine)

 NX   Report complete - copy this into the issue template

Node   : 18.18.2
OS     : darwin-arm64
npm    : 9.8.1

nx                 : 18.1.2
@nx/js             : 18.1.2
@nx/jest           : 18.1.2
@nx/linter         : 18.1.2
@nx/eslint         : 18.1.2
@nx/workspace      : 18.1.2
@nx/angular        : 18.1.2
@nx/cypress        : 18.1.2
@nx/devkit         : 18.1.2
@nx/eslint-plugin  : 18.1.2
@nx/plugin         : 18.1.2
@nx/storybook      : 18.1.2
@nrwl/tao          : 18.1.2
@nx/web            : 18.1.2
@nx/webpack        : 18.1.2
nx-cloud           : 18.0.0
typescript         : 4.9.5
---------------------------------------
Community plugins:
@compodoc/compodoc     : 1.1.19
@front/angular-builder : 16.1.0
@storybook/angular     : 7.6.14
nx-stylelint           : 17.1.4
---------------------------------------
Local workspace plugins:
         @mono/generators
         @mono/executors
         @mono/utils

Failure Logs

No response

Package Manager Version

No response

Operating System

Additional Information

No response

MaxKless commented 2 months ago

Thanks for the report! It looks like an exact duplicate of https://github.com/nrwl/nx/issues/17612 so I'll close it in favor of that issue. There has been some good investigation into it so I should be able to fix the issue soon.

github-actions[bot] commented 1 month ago

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.