nrwl / nx

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

Failing build randomly without any cause output #20784

Open nemonemi opened 11 months ago

nemonemi commented 11 months ago

Current Behavior

Randomly, a build fails, and after re-running it passes after a random number of tries. A build failing wouldn't be a problem, but it not showing the reason is! image

Here is the full output with both --verbose and --output-style=stream applied.

yarn nx affected --base=$NX_BASE --head=$NX_HEAD --target=build --configuration=$CONFIG --deployUrl=./ --verbose --output-style=stream

Expected Behavior

A failing build, as all other actions like e2e, unit tests, or linting should report the reason for failing.

GitHub Repo

No response

Steps to Reproduce

Unable to produce a repo because it is not clear as to why it is happening.

Nx Report

Node   : 18.18.2
   OS     : linux-x64
   yarn   : 3.7.0

   nx                 : 16.10.0
   @nx/js             : 16.10.0
   @nx/jest           : 16.10.0
   @nx/linter         : 16.10.0
   @nx/workspace      : 16.10.0
   @nx/cypress        : 16.10.0
   @nx/devkit         : 16.10.0
   @nx/eslint-plugin  : 16.10.0
   @nx/react          : 16.10.0
   @nrwl/tao          : 16.10.0
   @nx/vite           : 16.10.0
   @nx/web            : 16.10.0
   @nx/webpack        : 16.10.0
   typescript         : 5.1.6

Failure Logs

Running with gitlab-runner 16.4.1 (d89a789a)
  on AKS CI Runner F9sZGjjs, system ID: r_POolzmZvMcBV
    Resolving secrets
    00:00
    Preparing the "kubernetes" executor
    00:00
    "CPURequest" overwritten with "1500m"
    "MemoryRequest" overwritten with "6000Mi"
    "MemoryLimit" overwritten with "6000Mi"
    "HelperCPURequest" overwritten with "100m"
  Using Kubernetes namespace: gitlab-ci-runners
    Using Kubernetes executor with image path/.../ci-image:master ...
    Using attach strategy to execute scripts...
    Preparing environment
    00:36
    Waiting for pod gitlab-ci-runners/runner-f9szgjjs-project-[2](path/.../-/jobs/528841#L2)79-concurrent-0-4mwl2i1v to be running, status is Pending
    Waiting for pod gitlab-ci-runners/runner-f9szgjjs-project-279-concurrent-0-4mwl2i1v to be running, status is Pending
  ContainersNotReady: "containers with unready status: [build helper]"
  ContainersNotReady: "containers with unready status: [build helper]"
    Waiting for pod gitlab-ci-runners/runner-f9szgjjs-project-279-concurrent-0-4mwl2i1v to be running, status is Pending
  ContainersNotReady: "containers with unready status: [build helper]"
  ContainersNotReady: "containers with unready status: [build helper]"
    Waiting for pod gitlab-ci-runners/runner-f9szgjjs-project-279-concurrent-0-4mwl2i1v to be running, status is Pending
  ContainersNotReady: "containers with unready status: [build helper]"
  ContainersNotReady: "containers with unready status: [build helper]"
    Waiting for pod gitlab-ci-runners/runner-f9szgjjs-project-279-concurrent-0-4mwl2i1v to be running, status is Pending
  ContainersNotReady: "containers with unready status: [build helper]"
  ContainersNotReady: "containers with unready status: [build helper]"
    Waiting for pod gitlab-ci-runners/runner-f9szgjjs-project-279-concurrent-0-4mwl2i1v to be running, status is Pending
  ContainersNotReady: "containers with unready status: [build helper]"
  ContainersNotReady: "containers with unready status: [build helper]"
    Waiting for pod gitlab-ci-runners/runner-f9szgjjs-project-279-concurrent-0-4mwl2i1v to be running, status is Pending
  ContainersNotReady: "containers with unready status: [build helper]"
  ContainersNotReady: "containers with unready status: [build helper]"
    ...

  utilities: node_modules/@mui/material/NativeSelect/NativeSelectInput.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/material/NativeSelect/NativeSelectInput.js" was ignored.
  utilities: node_modules/@mui/base/useList/index.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/base/useList/index.js" was ignored.
  utilities: node_modules/@mui/base/utils/useControllableReducer.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/base/utils/useControllableReducer.js" was ignored.
  utilities: node_modules/@mui/base/useCompound/index.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/base/useCompound/index.js" was ignored.
  utilities: node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js" was ignored.
  utilities: node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useId/useId.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useId/useId.js" was ignored.
  utilities: node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useControlled/useControlled.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useControlled/useControlled.js" was ignored.
  utilities: node_modules/@mui/material/Grid/Grid.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/material/Grid/Grid.js" was ignored.
  snackbar: ../../dist/libs/snackbar/index.js  1,759.94 kB │ gzip: 510.97 kB
  snackbar:
  snackbar: [vite:dts] Start generate declaration files...
  utilities: node_modules/@mui/material/TabScrollButton/index.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/material/TabScrollButton/index.js" was ignored.
  utilities: node_modules/@mui/material/Tabs/ScrollbarSize.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/material/Tabs/ScrollbarSize.js" was ignored.
  utilities: node_modules/@mui/base/useList/useList.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/base/useList/useList.js" was ignored.
  utilities: node_modules/@mui/base/useList/useListItem.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/base/useList/useListItem.js" was ignored.
  utilities: node_modules/@mui/base/useCompound/useCompoundParent.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/base/useCompound/useCompoundParent.js" was ignored.
  utilities: node_modules/@mui/base/useCompound/useCompoundItem.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/base/useCompound/useCompoundItem.js" was ignored.
  utilities: node_modules/@mui/material/Grid/GridContext.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/material/Grid/GridContext.js" was ignored.
  utilities: node_modules/@mui/material/TabScrollButton/TabScrollButton.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/material/TabScrollButton/TabScrollButton.js" was ignored.
  utilities: node_modules/@mui/base/utils/useTextNavigation.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/base/utils/useTextNavigation.js" was ignored.
  utilities: node_modules/@mui/material/internal/svg-icons/KeyboardArrowLeft.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/material/internal/svg-icons/KeyboardArrowLeft.js" was ignored.
  utilities: node_modules/@mui/material/internal/svg-icons/KeyboardArrowRight.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@mui/material/internal/svg-icons/KeyboardArrowRight.js" was ignored.
  main-structure: ✓ built in 14.65s
  main-structure: [vite:dts] Declaration files built in 4922ms.
  main-structure:
    > nx run orchestrator-mocks:build:production
  orchestrator-mocks: [Nx Vite TsPaths] Found tsconfig at /builds/.../tsconfig.base.json
  orchestrator-mocks: [Nx Vite TsPaths] first parsed tsconfig:  {
    orchestrator-mocks:   resultType: 'success',
    orchestrator-mocks:   configFileAbsolutePath: '/builds/.../tsconfig.base.json',
    orchestrator-mocks:   baseUrl: '.',
    orchestrator-mocks:   absoluteBaseUrl: '/builds/...',
    orchestrator-mocks:   paths: {
      orchestrator-mocks:     '@error-screen': [ 'libs/error-screen/src/index.ts' ],
      orchestrator-mocks:     '@main-navigation-bar': [ 'libs/main-navigation-bar/src/index.ts' ],
      orchestrator-mocks:     '@main-structure': [ 'libs/main-structure/src/index.ts' ],
      orchestrator-mocks:     '@orchestrator-mocks': [ 'libs/orchestrator-mocks/src/index.ts' ],
      orchestrator-mocks:     '@orchestrator-mocks-control': [ 'libs/orchestrator-mocks-control/src/index.ts' ],
      orchestrator-mocks:     '@orchestrator-schema': [ 'libs/orchestrator-schema/index.ts' ],
      orchestrator-mocks:     '@orchestrator-utilities': [ 'libs/orchestrator-utilities/src/index.ts' ],
      orchestrator-mocks:     '@qualification-project': [ 'libs/qualification-project/src/index.ts' ],
      orchestrator-mocks:     '@qualifications': [ 'libs/qualifications/src/index.ts' ],
      orchestrator-mocks:     '@snackbar': [ 'libs/snackbar/src/index.ts' ],
      orchestrator-mocks:     '@step-mock': [ 'libs/step-mock/src/StepMock.tsx' ],
      orchestrator-mocks:     '@unit-test-utilities': [
        orchestrator-mocks:       'libs/utilities/src/unit-test-utilities/unit-test-utilities.tsx'
        orchestrator-mocks:     ],
      orchestrator-mocks:     '@utilities': [ 'libs/utilities/src/index.ts' ]
      orchestrator-mocks:   },
    orchestrator-mocks:   addMatchAll: true
    orchestrator-mocks: }
  orchestrator-mocks: [Nx Vite TsPaths] Found tsconfig at /builds/.../tsconfig.base.json
  orchestrator-mocks: [Nx Vite TsPaths] fallback parsed tsconfig:  {
    orchestrator-mocks:   resultType: 'success',
    orchestrator-mocks:   configFileAbsolutePath: '/builds/.../tsconfig.base.json',
    orchestrator-mocks:   baseUrl: '.',
    orchestrator-mocks:   absoluteBaseUrl: '/builds/...',
    orchestrator-mocks:   paths: {
      orchestrator-mocks:     '@error-screen': [ 'libs/error-screen/src/index.ts' ],
      orchestrator-mocks:     '@main-navigation-bar': [ 'libs/main-navigation-bar/src/index.ts' ],
      orchestrator-mocks:     '@main-structure': [ 'libs/main-structure/src/index.ts' ],
      orchestrator-mocks:     '@orchestrator-mocks': [ 'libs/orchestrator-mocks/src/index.ts' ],
      orchestrator-mocks:     '@orchestrator-mocks-control': [ 'libs/orchestrator-mocks-control/src/index.ts' ],
      orchestrator-mocks:     '@orchestrator-schema': [ 'libs/orchestrator-schema/index.ts' ],
      orchestrator-mocks:     '@orchestrator-utilities': [ 'libs/orchestrator-utilities/src/index.ts' ],
      orchestrator-mocks:     '@qualification-project': [ 'libs/qualification-project/src/index.ts' ],
      orchestrator-mocks:     '@qualifications': [ 'libs/qualifications/src/index.ts' ],
      orchestrator-mocks:     '@snackbar': [ 'libs/snackbar/src/index.ts' ],
      orchestrator-mocks:     '@step-mock': [ 'libs/step-mock/src/StepMock.tsx' ],
      orchestrator-mocks:     '@unit-test-utilities': [
        orchestrator-mocks:       'libs/utilities/src/unit-test-utilities/unit-test-utilities.tsx'
        orchestrator-mocks:     ],
      orchestrator-mocks:     '@utilities': [ 'libs/utilities/src/index.ts' ]
      orchestrator-mocks:   },
    orchestrator-mocks:   addMatchAll: true
    orchestrator-mocks: }
  orchestrator-mocks: vite v4.3.9 building for production...
  orchestrator-mocks: transforming...
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  orchestrator-mocks: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  utilities: ✓ 1998 modules transformed.
  utilities: rendering chunks...
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/useQueries.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/useQueries.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/useQuery.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/useQuery.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/QueryClientProvider.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/QueryClientProvider.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/Hydrate.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/Hydrate.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/useIsFetching.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/useIsFetching.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/useIsMutating.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/useIsMutating.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/useMutation.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/useMutation.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/isRestoring.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/isRestoring.mjs" was ignored.
  utilities: computing gzip size...
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.mjs" was ignored.
  utilities: ../../dist/libs/utilities/index.mjs  2,454.22 kB │ gzip: 551.82 kB │ map: 6,694.49 kB
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.mjs" was ignored.
  orchestrator-mocks: node_modules/@tanstack/react-query/build/lib/useBaseQuery.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@tanstack/react-query/build/lib/useBaseQuery.mjs" was ignored.
  snackbar: ✓ built in 15.69s
  snackbar: [vite:dts] Declaration files built in 4805ms.
  snackbar:
    > nx run step-mock:build:production
  utilities: ../../dist/libs/utilities/index.js  1,512.24 kB │ gzip: 424.52 kB │ map: 6,406.29 kB
  utilities: ✓ built in 9.78s
    > nx run error-screen:build:production
  step-mock: >  NX  Unable to load tsconfig-paths, workspace libraries may be inaccessible.
  step-mock:   - To fix this, install tsconfig-paths with npm/yarn/pnpm
  orchestrator-mocks: ✓ 418 modules transformed.
  orchestrator-mocks: rendering chunks...
  orchestrator-mocks: computing gzip size...
  orchestrator-mocks: ../../dist/libs/orchestrator-mocks/index.mjs  3,431.44 kB │ gzip: 1,145.54 kB │ map: 7,753.98 kB
  orchestrator-mocks: ../../dist/libs/orchestrator-mocks/index.js  2,979.53 kB │ gzip: 1,108.37 kB │ map: 7,678.60 kB
  orchestrator-mocks:
  orchestrator-mocks: [vite:dts] Start generate declaration files...
  error-screen: vite v4.3.9 building for production...
  error-screen: transforming...
  orchestrator-mocks: ✓ built in 9.47s
  orchestrator-mocks: [vite:dts] Declaration files built in 34[13](path/.../-/jobs/528841#L13)ms.
  orchestrator-mocks:
    > nx run main-navigation-bar:build:production
  main-navigation-bar: [Nx Vite TsPaths] Found tsconfig at /builds/.../tsconfig.base.json
  main-navigation-bar: [Nx Vite TsPaths] first parsed tsconfig:  {
    main-navigation-bar:   resultType: 'success',
    main-navigation-bar:   configFileAbsolutePath: '/builds/.../tsconfig.base.json',
    main-navigation-bar:   baseUrl: '.',
    main-navigation-bar:   absoluteBaseUrl: '/builds/...',
    main-navigation-bar:   paths: {
      main-navigation-bar:     '@error-screen': [ 'libs/error-screen/src/index.ts' ],
      main-navigation-bar:     '@main-navigation-bar': [ 'libs/main-navigation-bar/src/index.ts' ],
      main-navigation-bar:     '@main-structure': [ 'libs/main-structure/src/index.ts' ],
      main-navigation-bar:     '@orchestrator-mocks': [ 'libs/orchestrator-mocks/src/index.ts' ],
      main-navigation-bar:     '@orchestrator-mocks-control': [ 'libs/orchestrator-mocks-control/src/index.ts' ],
      main-navigation-bar:     '@orchestrator-schema': [ 'libs/orchestrator-schema/index.ts' ],
      main-navigation-bar:     '@orchestrator-utilities': [ 'libs/orchestrator-utilities/src/index.ts' ],
      main-navigation-bar:     '@qualification-project': [ 'libs/qualification-project/src/index.ts' ],
      main-navigation-bar:     '@qualifications': [ 'libs/qualifications/src/index.ts' ],
      main-navigation-bar:     '@snackbar': [ 'libs/snackbar/src/index.ts' ],
      main-navigation-bar:     '@step-mock': [ 'libs/step-mock/src/StepMock.tsx' ],
      main-navigation-bar:     '@unit-test-utilities': [
        main-navigation-bar:       'libs/utilities/src/unit-test-utilities/unit-test-utilities.tsx'
        main-navigation-bar:     ],
      main-navigation-bar:     '@utilities': [ 'libs/utilities/src/index.ts' ]
      main-navigation-bar:   },
    main-navigation-bar:   addMatchAll: true
    main-navigation-bar: }
  main-navigation-bar: [Nx Vite TsPaths] Found tsconfig at /builds/.../tsconfig.base.json
  main-navigation-bar: [Nx Vite TsPaths] fallback parsed tsconfig:  {
    main-navigation-bar:   resultType: 'success',
    main-navigation-bar:   configFileAbsolutePath: '/builds/.../tsconfig.base.json',
    main-navigation-bar:   baseUrl: '.',
    main-navigation-bar:   absoluteBaseUrl: '/builds/...',
    main-navigation-bar:   paths: {
      main-navigation-bar:     '@error-screen': [ 'libs/error-screen/src/index.ts' ],
      main-navigation-bar:     '@main-navigation-bar': [ 'libs/main-navigation-bar/src/index.ts' ],
      main-navigation-bar:     '@main-structure': [ 'libs/main-structure/src/index.ts' ],
      main-navigation-bar:     '@orchestrator-mocks': [ 'libs/orchestrator-mocks/src/index.ts' ],
      main-navigation-bar:     '@orchestrator-mocks-control': [ 'libs/orchestrator-mocks-control/src/index.ts' ],
      main-navigation-bar:     '@orchestrator-schema': [ 'libs/orchestrator-schema/index.ts' ],
      main-navigation-bar:     '@orchestrator-utilities': [ 'libs/orchestrator-utilities/src/index.ts' ],
      main-navigation-bar:     '@qualification-project': [ 'libs/qualification-project/src/index.ts' ],
      main-navigation-bar:     '@qualifications': [ 'libs/qualifications/src/index.ts' ],
      main-navigation-bar:     '@snackbar': [ 'libs/snackbar/src/index.ts' ],
      main-navigation-bar:     '@step-mock': [ 'libs/step-mock/src/StepMock.tsx' ],
      main-navigation-bar:     '@unit-test-utilities': [
        main-navigation-bar:       'libs/utilities/src/unit-test-utilities/unit-test-utilities.tsx'
        main-navigation-bar:     ],
      main-navigation-bar:     '@utilities': [ 'libs/utilities/src/index.ts' ]
      main-navigation-bar:   },
    main-navigation-bar:   addMatchAll: true
    main-navigation-bar: }
  main-navigation-bar: vite v4.3.9 building for production...
  main-navigation-bar: transforming...
  main-navigation-bar: ✓ 233 modules transformed.
  main-navigation-bar: rendering chunks...
  main-navigation-bar: computing gzip size...
  main-navigation-bar: ../../dist/libs/main-navigation-bar/index.mjs  130.86 kB │ gzip: 37.37 kB │ map: 387.79 kB
  main-navigation-bar: ../../dist/libs/main-navigation-bar/index.js  91.69 kB │ gzip: 31.12 kB │ map: 376.22 kB
  main-navigation-bar:
  main-navigation-bar: [vite:dts] Start generate declaration files...
  error-screen: ✓ 2023 modules transformed.
  error-screen: rendering chunks...
  error-screen: computing gzip size...
  error-screen: ../../dist/libs/error-screen/index.mjs  2,643.95 kB │ gzip: 702.69 kB │ map: 6,659.20 kB
  main-navigation-bar: ✓ built in 5.00s
  main-navigation-bar: [vite:dts] Declaration files built in 3570ms.
  main-navigation-bar:
  error-screen: ../../dist/libs/error-screen/index.js  1,708.65 kB │ gzip: 576.53 kB │ map: 6,373.82 kB
  error-screen: ✓ built in 11.84s
    > nx run qualifications:build:production --deployUrl=./
  qualifications: [Nx Vite TsPaths] Found tsconfig at /builds/.../tsconfig.base.json
  qualifications: [Nx Vite TsPaths] first parsed tsconfig:  {
    qualifications:   resultType: 'success',
    qualifications:   configFileAbsolutePath: '/builds/.../tsconfig.base.json',
    qualifications:   baseUrl: '.',
    qualifications:   absoluteBaseUrl: '/builds/...',
    qualifications:   paths: {
      qualifications:     '@error-screen': [ 'libs/error-screen/src/index.ts' ],
      qualifications:     '@main-navigation-bar': [ 'libs/main-navigation-bar/src/index.ts' ],
      qualifications:     '@main-structure': [ 'libs/main-structure/src/index.ts' ],
      qualifications:     '@orchestrator-mocks': [ 'libs/orchestrator-mocks/src/index.ts' ],
      qualifications:     '@orchestrator-mocks-control': [ 'libs/orchestrator-mocks-control/src/index.ts' ],
      qualifications:     '@orchestrator-schema': [ 'libs/orchestrator-schema/index.ts' ],
      qualifications:     '@orchestrator-utilities': [ 'libs/orchestrator-utilities/src/index.ts' ],
      qualifications:     '@qualification-project': [ 'libs/qualification-project/src/index.ts' ],
      qualifications:     '@qualifications': [ 'libs/qualifications/src/index.ts' ],
      qualifications:     '@snackbar': [ 'libs/snackbar/src/index.ts' ],
      qualifications:     '@step-mock': [ 'libs/step-mock/src/StepMock.tsx' ],
      qualifications:     '@unit-test-utilities': [
        qualifications:       'libs/utilities/src/unit-test-utilities/unit-test-utilities.tsx'
        qualifications:     ],
      qualifications:     '@utilities': [ 'libs/utilities/src/index.ts' ]
      qualifications:   },
    qualifications:   addMatchAll: true
    qualifications: }
  qualifications: [Nx Vite TsPaths] Found tsconfig at /builds/.../tsconfig.base.json
  qualifications: [Nx Vite TsPaths] fallback parsed tsconfig:  {
    qualifications:   resultType: 'success',
    qualifications:   configFileAbsolutePath: '/builds/.../tsconfig.base.json',
    qualifications:   baseUrl: '.',
    qualifications:   absoluteBaseUrl: '/builds/...',
    qualifications:   paths: {
      qualifications:     '@error-screen': [ 'libs/error-screen/src/index.ts' ],
      qualifications:     '@main-navigation-bar': [ 'libs/main-navigation-bar/src/index.ts' ],
      qualifications:     '@main-structure': [ 'libs/main-structure/src/index.ts' ],
      qualifications:     '@orchestrator-mocks': [ 'libs/orchestrator-mocks/src/index.ts' ],
      qualifications:     '@orchestrator-mocks-control': [ 'libs/orchestrator-mocks-control/src/index.ts' ],
      qualifications:     '@orchestrator-schema': [ 'libs/orchestrator-schema/index.ts' ],
      qualifications:     '@orchestrator-utilities': [ 'libs/orchestrator-utilities/src/index.ts' ],
      qualifications:     '@qualification-project': [ 'libs/qualification-project/src/index.ts' ],
      qualifications:     '@qualifications': [ 'libs/qualifications/src/index.ts' ],
      qualifications:     '@snackbar': [ 'libs/snackbar/src/index.ts' ],
      qualifications:     '@step-mock': [ 'libs/step-mock/src/StepMock.tsx' ],
      qualifications:     '@unit-test-utilities': [
        qualifications:       'libs/utilities/src/unit-test-utilities/unit-test-utilities.tsx'
        qualifications:     ],
      qualifications:     '@utilities': [ 'libs/utilities/src/index.ts' ]
      qualifications:   },
    qualifications:   addMatchAll: true
    qualifications: }
  qualifications: vite v4.3.9 building for production...
  qualifications: transforming...
  qualifications: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  step-mock: assets by info 1.21 MiB [immutable]
  step-mock:   assets by chunk 1.17 MiB (id hint: vendors)
  step-mock:     asset 670.d4efbdf69c6fbe87.js 1.03 MiB [emitted] [immutable] [minimized] [big] (id hint: vendors) 1 related asset
  step-mock:     asset 316.9251768cad9c58ee.js 130 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
  step-mock:     asset 321.d88eeb59724e80ff.js [14](path/.../-/jobs/528841#L14).6 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
  step-mock:   + 8 assets
  step-mock: asset 3rdpartylicenses.txt 80.5 KiB [emitted]
  step-mock: asset remoteEntry.js 6.84 KiB [emitted] [minimized] (name: SLCM_STEPS)
  step-mock: asset index.html 383 bytes [emitted]
  step-mock:
  step-mock: webpack 5.88.2 compiled successfully (5e11cd88644c86e4)
    > nx run qualification-project:build:production --deployUrl=./
  qualifications: [Nx Vite TsPaths] Resolved @main-structure to /builds/.../libs/main-structure/src/index.ts
  qualifications: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualifications: [Nx Vite TsPaths] Resolved @error-screen to /builds/.../libs/error-screen/src/index.ts
  qualifications: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualifications: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualifications: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Found tsconfig at /builds/.../tsconfig.base.json
  qualification-project: [Nx Vite TsPaths] first parsed tsconfig:  {
    qualification-project:   resultType: 'success',
    qualification-project:   configFileAbsolutePath: '/builds/.../tsconfig.base.json',
    qualification-project:   baseUrl: '.',
    qualification-project:   absoluteBaseUrl: '/builds/...',
    qualification-project:   paths: {
      qualification-project:     '@error-screen': [ 'libs/error-screen/src/index.ts' ],
      qualification-project:     '@main-navigation-bar': [ 'libs/main-navigation-bar/src/index.ts' ],
      qualification-project:     '@main-structure': [ 'libs/main-structure/src/index.ts' ],
      qualification-project:     '@orchestrator-mocks': [ 'libs/orchestrator-mocks/src/index.ts' ],
      qualification-project:     '@orchestrator-mocks-control': [ 'libs/orchestrator-mocks-control/src/index.ts' ],
      qualification-project:     '@orchestrator-schema': [ 'libs/orchestrator-schema/index.ts' ],
      qualification-project:     '@orchestrator-utilities': [ 'libs/orchestrator-utilities/src/index.ts' ],
      qualification-project:     '@qualification-project': [ 'libs/qualification-project/src/index.ts' ],
      qualification-project:     '@qualifications': [ 'libs/qualifications/src/index.ts' ],
      qualification-project:     '@snackbar': [ 'libs/snackbar/src/index.ts' ],
      qualification-project:     '@step-mock': [ 'libs/step-mock/src/StepMock.tsx' ],
      qualification-project:     '@unit-test-utilities': [
        qualification-project:       'libs/utilities/src/unit-test-utilities/unit-test-utilities.tsx'
        qualification-project:     ],
      qualification-project:     '@utilities': [ 'libs/utilities/src/index.ts' ]
      qualification-project:   },
    qualification-project:   addMatchAll: true
    qualification-project: }
  qualification-project: [Nx Vite TsPaths] Found tsconfig at /builds/.../tsconfig.base.json
  qualification-project: [Nx Vite TsPaths] fallback parsed tsconfig:  {
    qualification-project:   resultType: 'success',
    qualification-project:   configFileAbsolutePath: '/builds/.../tsconfig.base.json',
    qualification-project:   baseUrl: '.',
    qualification-project:   absoluteBaseUrl: '/builds/...',
    qualification-project:   paths: {
      qualification-project:     '@error-screen': [ 'libs/error-screen/src/index.ts' ],
      qualification-project:     '@main-navigation-bar': [ 'libs/main-navigation-bar/src/index.ts' ],
      qualification-project:     '@main-structure': [ 'libs/main-structure/src/index.ts' ],
      qualification-project:     '@orchestrator-mocks': [ 'libs/orchestrator-mocks/src/index.ts' ],
      qualification-project:     '@orchestrator-mocks-control': [ 'libs/orchestrator-mocks-control/src/index.ts' ],
      qualification-project:     '@orchestrator-schema': [ 'libs/orchestrator-schema/index.ts' ],
      qualification-project:     '@orchestrator-utilities': [ 'libs/orchestrator-utilities/src/index.ts' ],
      qualification-project:     '@qualification-project': [ 'libs/qualification-project/src/index.ts' ],
      qualification-project:     '@qualifications': [ 'libs/qualifications/src/index.ts' ],
      qualification-project:     '@snackbar': [ 'libs/snackbar/src/index.ts' ],
      qualification-project:     '@step-mock': [ 'libs/step-mock/src/StepMock.tsx' ],
      qualification-project:     '@unit-test-utilities': [
        qualification-project:       'libs/utilities/src/unit-test-utilities/unit-test-utilities.tsx'
        qualification-project:     ],
      qualification-project:     '@utilities': [ 'libs/utilities/src/index.ts' ]
      qualification-project:   },
    qualification-project:   addMatchAll: true
    qualification-project: }
  qualification-project: vite v4.3.9 building for production...
  qualification-project: transforming...
  qualification-project: [Nx Vite TsPaths] Resolved @main-structure to /builds/.../libs/main-structure/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @snackbar to /builds/.../libs/snackbar/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @snackbar to /builds/.../libs/snackbar/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @main-structure to /builds/.../libs/main-structure/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @main-structure to /builds/.../libs/main-structure/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @snackbar to /builds/.../libs/snackbar/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @snackbar to /builds/.../libs/snackbar/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-mocks to /builds/.../libs/orchestrator-mocks/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @step-mock to /builds/.../libs/step-mock/src/StepMock.tsx
  qualification-project: [Nx Vite TsPaths] Resolved @utilities to /builds/.../libs/utilities/src/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualification-project: [Nx Vite TsPaths] Resolved @orchestrator-schema to /builds/.../libs/orchestrator-schema/index.ts
  qualifications: ✓ 13268 modules transformed.
  qualifications: rendering chunks...
  qualifications: computing gzip size...
  qualification-project: ✓ 13169 modules transformed.
  qualifications: ../../dist/libs/qualifications/index.mjs  7,564.02 kB │ gzip: 1,544.86 kB │ map: 16,348.61 kB
  qualification-project: rendering chunks...
  qualifications: ../../dist/libs/qualifications/index.js  6,055.07 kB │ gzip: 1,382.70 kB │ map: [15](path/.../-/jobs/528841#L15),877.88 kB
  qualifications:
  qualifications: [vite:dts] Start generate declaration files...
  qualification-project: computing gzip size...
  qualification-project: ../../dist/libs/qualification-project/index.mjs  10,037.71 kB │ gzip: 2,364.02 kB │ map: [21](path/.../-/jobs/528841#L21),762.73 kB
  qualifications: ✓ built in [34](path/.../-/jobs/528841#L34).74s
  qualifications: [vite:dts] Declaration files built in 8961ms.
  qualifications:

    >  NX   Running target build for 3 projects and 8 tasks they depend on failed
    Tasks not run because their dependencies failed or --nx-bail=true:

    - orchestrator:build:production

    Failed tasks:

    - qualification-project:build:production
    Cleaning up project directory and file based variables
    00:01
  ERROR: Job failed: command terminated with exit code 1


### Package Manager Version

yarn: 3.6.4

### Operating System

- [ ] macOS
- [ ] Linux
- [ ] Windows
- [ ] Other (Please specify)

### Additional Information

_No response_
mandarini commented 11 months ago

Hi there @nemonemi ! Thanks for filing an issue! Can you please provide a minimum reproduction repository? This will help us understand the issue better and solve it quicker! Thanks!

nemonemi commented 11 months ago

Hey, @mandarini, thanks for the quick response. Unfortunately, I have no idea regarding the cause, and because it's not constant, although it happens often, I wouldn't know where to start to simulate it, and I cannot share the project where it is happening.

bradleyayers commented 9 months ago

This can happen if the process is killed (e.g. by OOM killer) and unfortunately Nx doesn't show the exit code of tasks, it just swallows them all and then itself exits with 1. I'd love a way to have Nx log the exit code of failed tasks.

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it hasn't had any activity for 6 months. Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore. If at this point, this is still an issue, please respond with updated information. It will be closed in 21 days if no further activity occurs. Thanks for being a part of the Nx community! 🙏