Extreme memory usage Bitbucket Cloud CI

Hi everyone,

We’ve got a project written with Nuxt V3 (6.3k lines currently) scanned by Sonar Cloud, using the Bitbucket CI integration. Over the last while we’ve been upgrading the specs on our pipeline due to out of memory issues. Currently we’re using the following bitbucket-pipelines.yml specified down below.

Is there anything we could do about the memory usage? It’s starting to get out of hand. With the cloud runners we’re unable to allocate more memory. As this is a JS/TS project i’d love to for example disable swift and some other languages as they’re not used in the project but still being loaded. Other optimisations which reduce runtime are also welcome.

Thanks in advance!

image: atlassian/default-image:latest
options:
  docker: true
  size: 2x
  max-time: 10
pipelines:
  default:
    - step:
        caches:
          - docker
        script:
          - pipe: sonarsource/sonarcloud-scan:1.4.0
          - pipe: sonarsource/sonarcloud-quality-gate:0.1.6
        services:
          - docker
  branches:
    main:
      - step:
          caches:
            - docker
          script:
            - pipe: sonarsource/sonarcloud-scan:1.4.0
            - pipe: sonarsource/sonarcloud-quality-gate:0.1.6
          services:
            - docker
      - step:
          caches:
            - docker
          script:
            - docker login $CONTAINER_REGISTRY_URL -u $CONTAINER_REGISTRY_USERNAME -p $CONTAINER_REGISTRY_PASSWORD
            - docker build -t $CONTAINER_REGISTRY_TAG_PREFIX/$BITBUCKET_REPO_SLUG:$BITBUCKET_COMMIT --build-arg FONT_AWESOME_TOKEN=${FONT_AWESOME_TOKEN} .
            - docker tag $CONTAINER_REGISTRY_TAG_PREFIX/$BITBUCKET_REPO_SLUG:$BITBUCKET_COMMIT $CONTAINER_REGISTRY_TAG_PREFIX/$BITBUCKET_REPO_SLUG:latest
            - docker push --all-tags $CONTAINER_REGISTRY_TAG_PREFIX/$BITBUCKET_REPO_SLUG
          services:
            - docker
definitions:
  services:
    docker:
      memory: 7168

Hey there.

Thanks for the report.

  • Was there any moment in the last few weeks that you had to? We’re aware of a performance issue at the moment (I can’t recall immediately if there’s a memory consumption aspect of it) that we should deploy a fix for soon
  • How large is the project (Lines of Code, number of files)

Hi Colin,

Below i’ve attached the log of an occurrence at June 20th. This was happening with size: 2x and memory: 4096. After increasing the memory limit it successfully passed the step. It also hit the maximum timeout of 120 minutes so the cost was 240 build minutes. Normal runtime currently is about 1.5/2 minutes

The main issue looks like it’s about the JS/TS project. We’ve got a python project with about 3k lines of code which runs fine with size: 1x and memory: 2048.

According to the statistics in SonarCloud we have the following project size around that date:
5,709 Lines of Code
17,573 Lines
97 Files

Our repo size is about: 2.14 MB

I’ve removed some of the repeating lines with the … to stay within post body size

+ docker container run \
   --volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
   --volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
   --volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan \
   --workdir=$(pwd) \
   --label=org.bitbucket.pipelines.system=true \
   --env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \
   --env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \
   --env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \
   --env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \
   --env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \
   --env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \
   --env=BITBUCKET_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
   --env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \
   --env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \
   --env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \
   --env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \
   --env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \
   --env=CI="$CI" \
   --env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \
   --env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \
   --env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \
   --env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \
   --env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \
   --env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \
   --env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \
   --env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \
   --env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \
   --env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \
   --env=DOCKER_HOST="tcp://host.docker.internal:2375" \
   --env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \
   --env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan" \
   --env=SONAR_TOKEN="${SONAR_TOKEN}" \
   --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
   sonarsource/sonarcloud-scan:1.4.0
Unable to find image 'sonarsource/sonarcloud-scan:1.4.0' locally
1.4.0: Pulling from sonarsource/sonarcloud-scan
743f2d6c1f65: Pulling fs layer
5c14188d0980: Pulling fs layer
84a54a21b0f2: Pulling fs layer
d9d1bc98b287: Pulling fs layer
c99e982badff: Pulling fs layer
50c6b4dfde57: Pulling fs layer
a561eaec2f8f: Pulling fs layer
ea88b09234a3: Pulling fs layer
83613aeae58d: Pulling fs layer
5d476eee175a: Pulling fs layer
3d3951d29cc9: Pulling fs layer
d9d1bc98b287: Waiting
c99e982badff: Waiting
50c6b4dfde57: Waiting
a561eaec2f8f: Waiting
ea88b09234a3: Waiting
83613aeae58d: Waiting
5d476eee175a: Waiting
3d3951d29cc9: Waiting
84a54a21b0f2: Verifying Checksum
84a54a21b0f2: Download complete
5c14188d0980: Download complete
743f2d6c1f65: Verifying Checksum
743f2d6c1f65: Download complete
c99e982badff: Verifying Checksum
c99e982badff: Download complete
d9d1bc98b287: Download complete
ea88b09234a3: Verifying Checksum
ea88b09234a3: Download complete
a561eaec2f8f: Verifying Checksum
a561eaec2f8f: Download complete
5d476eee175a: Verifying Checksum
5d476eee175a: Download complete
743f2d6c1f65: Pull complete
3d3951d29cc9: Verifying Checksum
3d3951d29cc9: Download complete
50c6b4dfde57: Verifying Checksum
50c6b4dfde57: Download complete
83613aeae58d: Verifying Checksum
83613aeae58d: Download complete
5c14188d0980: Pull complete
84a54a21b0f2: Pull complete
d9d1bc98b287: Pull complete
c99e982badff: Pull complete
50c6b4dfde57: Pull complete
a561eaec2f8f: Pull complete
ea88b09234a3: Pull complete
83613aeae58d: Pull complete
5d476eee175a: Pull complete
3d3951d29cc9: Pull complete
Digest: sha256:8b3690666e34b17bbab84370e569151742f06f21575fbe05e5c066c160b7c968
Status: Downloaded newer image for sonarsource/sonarcloud-scan:1.4.0
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.3 Oracle Corporation (64-bit)
INFO: Linux 5.15.0-1036-aws amd64
INFO: Bitbucket Cloud Pipelines detected, no host variable set. Defaulting to sonarcloud.io.
INFO: User cache: /root/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 8.0.0.42817
INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=596ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: User cache: /root/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=535ms
INFO: Load/download plugins (done) | time=28855ms
INFO: Loaded core extensions: developer-scanner
INFO: Found an active CI vendor: 'Bitbucket Pipelines'
INFO: Detected project key 'nuxnova_fieldops-alpha-fe' from 'Bitbucket Cloud Pipelines'
INFO: Detected organization key 'nuxnova' from 'Bitbucket Cloud Pipelines'
INFO: Load project settings for component key: 'nuxnova_fieldops-alpha-fe'
INFO: Load project settings for component key: 'nuxnova_fieldops-alpha-fe' (done) | time=517ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=2ms
INFO: Project key: nuxnova_fieldops-alpha-fe
INFO: Base dir: /opt/atlassian/pipelines/agent/build
INFO: Working dir: /opt/atlassian/pipelines/agent/build/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=512ms
INFO: Check ALM binding of project 'nuxnova_fieldops-alpha-fe'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'nuxnova_fieldops-alpha-fe' (done) | time=483ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=485ms
INFO: Load branch configuration
INFO: Detected analysis for branch 'main'
INFO: Auto-configuring branch main
INFO: Load branch configuration (done) | time=3ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=584ms
INFO: Load active rules
INFO: Load active rules (done) | time=6770ms
INFO: Organization key: nuxnova
INFO: Branch name: main, type: long-lived
INFO: Load project repositories
INFO: Load project repositories (done) | time=557ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json
INFO: 100 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for json: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: Quality profile for yaml: Sonar way
INFO: ------------- Run sensors on module nuxnova_fieldops-alpha-fe
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=490ms
INFO: Sensor cache enabled
INFO: Load sensor cache
INFO: Load sensor cache (133 KB) | time=1358ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=67ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=10ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=16ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=235ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 96 source files to be analyzed
INFO: 96/96 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=298ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=21ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
INFO: Sensor JavaScript/TypeScript analysis [javascript]
INFO: 84 source files to be analyzed
INFO: 13/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/composables/useAuthorizationHeader.js
INFO: 29/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/items/create.vue
INFO: 43/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/items/[id]/index.vue
INFO: 61/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customernotes/CustomerNoteList.vue
INFO: 70/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/crud/CrudPageHeader.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 81/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/combobox.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
ERROR: eslint-bridge Node.js process is unresponsive. This is most likely caused by process running out of memory. Consider setting sonar.javascript.node.maxspace to higher value (e.g. 4096).
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
...
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
ERROR: Failed to get response while analyzing file:///opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
java.lang.IllegalStateException: eslint-bridge is unresponsive
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:386)
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.analyzeJavaScript(EslintBridgeServerImpl.java:340)
	at org.sonar.plugins.javascript.eslint.JsTsSensor.analyze(JsTsSensor.java:152)
	at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.analyzeFiles(AbstractEslintSensor.java:126)
	at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:75)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:470)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:466)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:422)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:130)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.net.http.HttpTimeoutException: request timed out
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:559)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:377)
	... 34 common frames omitted

INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
INFO: 82/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
ERROR: Failure during analysis, Node.js command to start eslint-bridge was: node /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/eslint-bridge-bundle/package/bin/server 41869 127.0.0.1 /opt/atlassian/pipelines/agent/build/.scannerwork true false /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/eslint-bridge-bundle/package/custom-rules11735689182099935791/package
java.lang.IllegalStateException: Failure during analysis of file:///opt/atlassian/pipelines/agent/build/pages/field-ops/resources/create.vue
	at org.sonar.plugins.javascript.eslint.JsTsSensor.analyze(JsTsSensor.java:160)
	at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.analyzeFiles(AbstractEslintSensor.java:126)
	at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:75)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:470)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:466)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:422)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:130)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalStateException: eslint-bridge is unresponsive
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:386)
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.analyzeJavaScript(EslintBridgeServerImpl.java:340)
	at org.sonar.plugins.javascript.eslint.JsTsSensor.analyze(JsTsSensor.java:152)
	... 32 common frames omitted
Caused by: java.net.http.HttpTimeoutException: request timed out
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:559)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
	at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.request(EslintBridgeServerImpl.java:377)
	... 34 common frames omitted```

Thanks.

We’re aware of a performance issue with our Javascript/Typescript analysis that happened a little bit before June 20th.

We’re aware of an issue affecting our Javascript/Typescript analyzer that you can learn about here (as well as a workaround).

In principle, using the property sonar.typescript.tsconfigPath to point to the tsconfig.json in the project root should solve the issue.

And, a better fix should be deployed to SonarCloud soon.

Can you give this a try to see if the performance improves and the impact on memory is lighter?

I’ve added the tsConfigPath (see below). I’ve also reduced the memory to 4096. Which was barely exceeded for the last builds but it doesn’t appear to make a difference. It did find the tsconfig.

- pipe: sonarsource/sonarcloud-scan:1.4.0
  variables:
    EXTRA_ARGS: '-Dsonar.typescript.tsconfigPaths="tsconfig.json"'
INFO: Resolving TSConfig files using 'tsconfig.json' from property sonar.typescript.tsconfigPaths
INFO: Found 1 TSConfig file(s): [/opt/atlassian/pipelines/agent/build/tsconfig.json]

Meaning you still ended up with:

java.lang.IllegalStateException: eslint-bridge is unresponsive ?

We’ve set a limit of 10 minutes so it won’t give it anymore as that usually took > 20 minutes to appear. It will hang after processing x files. I can up the timeout to see if it appears again.

+ docker container run \
   --volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
   --volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
   --volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan \
   --workdir=$(pwd) \
   --label=org.bitbucket.pipelines.system=true \
   --env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \
   --env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \
   --env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \
   --env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \
   --env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \
   --env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \
   --env=BITBUCKET_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
   --env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \
   --env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \
   --env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \
   --env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \
   --env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \
   --env=CI="$CI" \
   --env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \
   --env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \
   --env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \
   --env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \
   --env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \
   --env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \
   --env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \
   --env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \
   --env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \
   --env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \
   --env=DOCKER_HOST="tcp://host.docker.internal:2375" \
   --env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \
   --env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan" \
   --env=EXTRA_ARGS="-Dsonar.typescript.tsconfigPaths=\"tsconfig.json\"" \
   --env=SONAR_TOKEN="${SONAR_TOKEN}" \
   --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
   sonarsource/sonarcloud-scan:1.4.0
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.3 Oracle Corporation (64-bit)
INFO: Linux 5.15.0-1037-aws amd64
INFO: Bitbucket Cloud Pipelines detected, no host variable set. Defaulting to sonarcloud.io.
INFO: User cache: /root/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 8.0.0.43481
INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=356ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: User cache: /root/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=375ms
INFO: Load/download plugins (done) | time=23615ms
INFO: Loaded core extensions: developer-scanner
INFO: Found an active CI vendor: 'Bitbucket Pipelines'
INFO: Detected project key 'nuxnova_fieldops-alpha-fe' from 'Bitbucket Cloud Pipelines'
INFO: Detected organization key 'nuxnova' from 'Bitbucket Cloud Pipelines'
INFO: Load project settings for component key: 'nuxnova_fieldops-alpha-fe'
INFO: Load project settings for component key: 'nuxnova_fieldops-alpha-fe' (done) | time=298ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=1ms
INFO: Project key: nuxnova_fieldops-alpha-fe
INFO: Base dir: /opt/atlassian/pipelines/agent/build
INFO: Working dir: /opt/atlassian/pipelines/agent/build/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=344ms
INFO: Check ALM binding of project 'nuxnova_fieldops-alpha-fe'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'nuxnova_fieldops-alpha-fe' (done) | time=332ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=300ms
INFO: Load branch configuration
INFO: Detected analysis for branch 'main'
INFO: Auto-configuring branch main
INFO: Load branch configuration (done) | time=2ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=445ms
INFO: Load active rules
INFO: Load active rules (done) | time=10839ms
INFO: Organization key: nuxnova
INFO: Branch name: main, type: long-lived
INFO: Load project repositories
INFO: Load project repositories (done) | time=482ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json
INFO: 100 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for json: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: Quality profile for yaml: Sonar way
INFO: ------------- Run sensors on module nuxnova_fieldops-alpha-fe
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=427ms
INFO: Sensor cache enabled
INFO: Load sensor cache
INFO: Load sensor cache (148 KB) | time=1220ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=70ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=9ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=18ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=240ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 96 source files to be analyzed
INFO: 96/96 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=426ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=15ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
INFO: Sensor JavaScript/TypeScript analysis [javascript]
INFO: 84 source files to be analyzed
INFO: Resolving TSConfig files using 'tsconfig.json' from property sonar.typescript.tsconfigPaths
INFO: Found 1 TSConfig file(s): [/opt/atlassian/pipelines/agent/build/tsconfig.json]
INFO: 20/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/infranalasys/network_devices/index.vue
INFO: 41/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/sales/invoices/[id]/edit.vue
INFO: 60/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customertimers/CustomerTimerEdit.vue
INFO: 74/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/cards.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue

The container now just plain crashed with out of memory.

Container 'docker' exceeded memory limit.

Hi @KevinvOosterhout,

can you share the tsconfig.json contents?

Cheers,
Victor

I’m using the default for Nuxt, This is an auto generated file.

tsconfig.json

{
  // https://nuxt.com/docs/guide/concepts/typescript
  "extends": "./.nuxt/tsconfig.json"
}

.nuxt/tsconfig.json

// Generated by nuxi
{
  "compilerOptions": {
    "forceConsistentCasingInFileNames": true,
    "jsx": "preserve",
    "target": "ESNext",
    "module": "ESNext",
    "moduleResolution": "Node",
    "skipLibCheck": true,
    "strict": true,
    "allowJs": true,
    "baseUrl": "projectdir",
    "noEmit": true,
    "resolveJsonModule": true,
    "allowSyntheticDefaultImports": true,
    "types": [
      "node"
    ],
    "paths": {
      "~": [
        "projectdir"
      ],
      "~/*": [
        "projectdir/*"
      ],
      "@": [
        "projectdir"
      ],
      "@/*": [
        "projectdir/*"
      ],
      "~~": [
        "projectdir"
      ],
      "~~/*": [
        "projectdir/*"
      ],
      "@@": [
        "projectdir"
      ],
      "@@/*": [
        "projectdir/*"
      ],
      "assets": [
        "projectdir/assets"
      ],
      "assets/*": [
        "projectdir/assets/*"
      ],
      "public": [
        "projectdir/public"
      ],
      "public/*": [
        "projectdir/public/*"
      ],
      "#app": [
        "projectdir/node_modules/nuxt/dist/app"
      ],
      "#app/*": [
        "projectdir/node_modules/nuxt/dist/app/*"
      ],
      "vue-demi": [
        "projectdir/node_modules/nuxt/dist/app/compat/vue-demi"
      ],
      "#vue-router": [
        "projectdir/.nuxt/vue-router"
      ],
      "#imports": [
        "projectdir/.nuxt/imports"
      ],
      "#build": [
        "projectdir/.nuxt"
      ],
      "#build/*": [
        "projectdir/.nuxt/*"
      ],
      "#components": [
        "projectdir/.nuxt/components"
      ]
    }
  },
  "include": [
    "./nuxt.d.ts",
    "../**/*"
  ],
  "exclude": [
    "../dist",
    "../.output"
  ]
}

Hi @KevinvOosterhout,

can you try explicitly setting the extensions in the includes?

  "include": [
    "./nuxt.d.ts",
    "../**/*.ts",
    "../**/*.js",
    "../**/*.vue"
  ],

And any other extensions you may be using in your project (ie. jsx, .tsx…)?

Cheers,
Victor

Hi Victor,

Ive tried this but unfortunately it didn’t help.

+ docker container run \
   --volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
   --volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
   --volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
   --volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan \
   --workdir=$(pwd) \
   --label=org.bitbucket.pipelines.system=true \
   --env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \
   --env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \
   --env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \
   --env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \
   --env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \
   --env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \
   --env=BITBUCKET_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
   --env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \
   --env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \
   --env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \
   --env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \
   --env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \
   --env=CI="$CI" \
   --env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \
   --env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \
   --env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \
   --env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \
   --env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \
   --env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \
   --env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \
   --env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \
   --env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \
   --env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \
   --env=DOCKER_HOST="tcp://host.docker.internal:2375" \
   --env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \
   --env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan" \
   --env=EXTRA_ARGS="-Dsonar.typescript.tsconfigPaths=\"tsconfig.json\"" \
   --env=SONAR_TOKEN="${SONAR_TOKEN}" \
   --add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
   sonarsource/sonarcloud-scan:1.4.0
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.3 Oracle Corporation (64-bit)
INFO: Linux 5.15.0-1037-aws amd64
INFO: Bitbucket Cloud Pipelines detected, no host variable set. Defaulting to sonarcloud.io.
INFO: User cache: /root/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 8.0.0.43481
INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=506ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: User cache: /root/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=449ms
INFO: Load/download plugins (done) | time=24559ms
INFO: Loaded core extensions: developer-scanner
INFO: Found an active CI vendor: 'Bitbucket Pipelines'
INFO: Detected project key 'nuxnova_fieldops-alpha-fe' from 'Bitbucket Cloud Pipelines'
INFO: Detected organization key 'nuxnova' from 'Bitbucket Cloud Pipelines'
INFO: Load project settings for component key: 'nuxnova_fieldops-alpha-fe'
INFO: Load project settings for component key: 'nuxnova_fieldops-alpha-fe' (done) | time=435ms
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=2ms
INFO: Project key: nuxnova_fieldops-alpha-fe
INFO: Base dir: /opt/atlassian/pipelines/agent/build
INFO: Working dir: /opt/atlassian/pipelines/agent/build/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=452ms
INFO: Check ALM binding of project 'nuxnova_fieldops-alpha-fe'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'nuxnova_fieldops-alpha-fe' (done) | time=425ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=480ms
INFO: Load branch configuration
INFO: Detected analysis for branch 'main'
INFO: Auto-configuring branch main
INFO: Load branch configuration (done) | time=2ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=495ms
INFO: Load active rules
INFO: Load active rules (done) | time=7679ms
INFO: Organization key: nuxnova
INFO: Branch name: main, type: long-lived
INFO: Load project repositories
INFO: Load project repositories (done) | time=526ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/build-wrapper-dump.json
INFO: 100 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: 0 files ignored because of scm ignore settings
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for json: Sonar way
INFO: Quality profile for ts: Sonar way
INFO: Quality profile for yaml: Sonar way
INFO: ------------- Run sensors on module nuxnova_fieldops-alpha-fe
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=424ms
INFO: Sensor cache enabled
INFO: Load sensor cache
INFO: Load sensor cache (148 KB) | time=1166ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=86ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=10ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=19ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=1ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=235ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: 96 source files to be analyzed
INFO: 96/96 source files have been analyzed
INFO: Sensor TextAndSecretsSensor [text] (done) | time=320ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=13ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
INFO: Sensor JavaScript/TypeScript analysis [javascript]
INFO: 84 source files to be analyzed
INFO: Resolving TSConfig files using 'tsconfig.json' from property sonar.typescript.tsconfigPaths
INFO: Found 1 TSConfig file(s): [/opt/atlassian/pipelines/agent/build/tsconfig.json]
INFO: 17/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/auth/logout.vue
INFO: 36/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/toggles.vue
INFO: 60/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customertimers/CustomerTimerEdit.vue
INFO: 73/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/uicomponents/UICombobox.vue
INFO: 79/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/layout.vue
INFO: 79/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/layout.vue
INFO: 79/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/layout.vue
INFO: 79/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/pages/_ui/layout.vue
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue
ERROR: eslint-bridge Node.js process is unresponsive. This is most likely caused by process running out of memory. Consider setting sonar.javascript.node.maxspace to higher value (e.g. 4096).
INFO: 80/84 files analyzed, current file: /opt/atlassian/pipelines/agent/build/components/partials/customers/customerlines/CustomerLineEdit.vue

Hi @KevinvOosterhout,

can you please create a tsconfig.sonar.json in the root of your project with the following contents?

{
  "compilerOptions": {
    "forceConsistentCasingInFileNames": true,
    "jsx": "preserve",
    "target": "ESNext",
    "module": "ESNext",
    "moduleResolution": "Node",
    "skipLibCheck": true,
    "strict": true,
    "allowJs": true,
    "baseUrl": "projectdir",
    "noEmit": true,
    "resolveJsonModule": true,
    "allowSyntheticDefaultImports": true,
    "types": [
      "node"
    ],
    "paths": {
      "~": [
        "./"
      ],
      "~/*": [
        "./*"
      ],
      "@": [
        "./"
      ],
      "@/*": [
        "./*"
      ],
      "~~": [
        "./"
      ],
      "~~/*": [
        "./*"
      ],
      "@@": [
        "./"
      ],
      "@@/*": [
        "./*"
      ],
      "assets": [
        "./assets"
      ],
      "assets/*": [
        "./assets/*"
      ],
      "public": [
        "./public"
      ],
      "public/*": [
        "./public/*"
      ],
      "#app": [
        "./node_modules/nuxt/dist/app"
      ],
      "#app/*": [
        "./node_modules/nuxt/dist/app/*"
      ],
      "vue-demi": [
        "./node_modules/nuxt/dist/app/compat/vue-demi"
      ],
      "#vue-router": [
        "./.nuxt/vue-router"
      ],
      "#imports": [
        "./.nuxt/imports"
      ],
      "#build": [
        "./.nuxt"
      ],
      "#build/*": [
        "./.nuxt/*"
      ],
      "#components": [
        "./.nuxt/components"
      ]
    }
  },
  "include": [
    "./**/*.d.ts",
    "./**/*.ts",
    "./**/*.js",
    "./**/*.vue"
  ],
  "exclude": [
    "./dist",
    "./.output"
  ]
}

And use that tsconfig.sonar.json for the sonar.typescript.tsconfigPaths property?

Let me know if that helps.
Victor

Hi Victor,

Thanks for the help. This seems to help together with the caching. Its now running with the 4096 memory

1 Like