Scanning steps about eslint-bridge take too long time, especially the "Deploying eslint-bridge"

which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

SonarQube: latest

SonarScanner 4.8.0.2856

Plugin: builtin

how is SonarQube deployed

Helm

what are you trying to achieve

analyse ts project

Additional Details (problem/question)

It seems that every step about eslint-bridge took so long time, especially the “Deploying eslint-bridge”, which takes 20+ minutes in any task

Logs e.x. (Key lines are bolded)

2023/05/24 04:18:56 scan config: &{http://code-service-sonarqube1:9000 squ_eb158dd5982fd698f16839206bee907deacc03d0 project_51632280 2023-05-24 04:18:56 /kwixand/gatsby-starter-typescript-scss-modules}

2023/05/24 04:18:56 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties

2023/05/24 04:18:56 INFO: Project root configuration file: NONE

2023/05/24 04:18:56 04:18:56.204 INFO: SonarScanner 4.8.0.2856

2023/05/24 04:18:56 04:18:56.205 INFO: Java 11.0.19 Alpine (64-bit)

2023/05/24 04:18:56

2023/05/24 04:18:56 04:18:56.205 INFO: Linux 5.4.119-1-tlinux4-0010.3 amd64

2023/05/24 04:18:56

2023/05/24 04:19:05 04:19:05.136 INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=139ms

2023/05/24 04:19:05 04:19:05.136 INFO: Sensor JavaScript analysis [javascript]

2023/05/24 04:19:05 04:19:05.140 DEBUG: Deploying bundle

2023/05/24 04:19:05 04:19:05.140 DEBUG: Deploying eslint-bridge into /kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/eslint-bridge-bundle

2023/05/24 04:46:58 04:46:58.647 DEBUG: Deploying bundle (done) | time=1673507ms

2023/05/24 04:46:58 04:46:58.648 DEBUG: Starting server

2023/05/24 04:46:58 04:46:58.706 DEBUG: Using default Node.js executable: ‘node’.

2023/05/24 04:46:58 04:46:58.706 DEBUG: Checking Node.js version

2023/05/24 04:46:58 04:46:58.707 DEBUG: Launching command node -v

2023/05/24 04:46:58 04:46:58.725 DEBUG: Using Node.js v18.16.0.

2023/05/24 04:46:58 04:46:58.725 DEBUG: Starting Node.js process to start eslint-bridge server at port 36079

2023/05/24 04:46:58 04:46:58.726 DEBUG: Launching command node /kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/eslint-bridge-bundle/package/bin/server 36079 127.0.0.1 /kwixand/gatsby-starter-typescript-scss-modules/.scannerwork true false

2023/05/24 04:51:47 04:51:47.720 DEBUG: starting eslint-bridge server at port 36079

2023/05/24 04:51:47 04:51:47.729 DEBUG: eslint-bridge server is running at port 36079

2023/05/24 04:51:47 04:51:47.771 DEBUG: Starting server (done) | time=289123ms

2023/05/24 04:51:47 04:51:47.774 DEBUG: Analysis of unchanged files will not be skipped (current analysis requires all files to be analyzed)

2023/05/24 04:51:48 04:51:48.658 DEBUG: Initializing linter “default” with no-vue-bypass-sanitization,hashing,for-loop-increment-sign,no-globals-shadowing,unverified-hostname,null-dereference,no-extra-arguments,no-redeclare,constructor-for-side-effects,post-message,cookie-no-httponly,weak-ssl,no-ignored-exceptions,no-useless-increment,no-throw-literal,pseudo-random,session-regeneration,no-use-of-empty-return-value,no-associative-arrays,no-weak-keys,confidential-information-logging,no-ip-forward,single-character-alternation,unused-named-groups,aws-ec2-unencrypted-ebs-volume,single-char-in-character-classes,dns-prefetching,certificate-transparency,arguments-order,inconsistent-function-call,no-same-argument-assert,file-uploads,no-inverted-boolean-check,sonar-no-misleading-character-class,duplicates-in-character-class,todo-tag,fixme-tag,aws-s3-bucket-public-access,aws-s3-bucket-granted-access,no-mixed-content,anchor-precedence,frame-ancestors,no-angular-bypass-sanitization,slow-regex,array-callback-without-return,no-mime-sniff,prefe

2023/05/24 04:51:48 r-default-last,no-commented-code,no-referrer-policy,no-gratuitous-expressions,no-empty-pattern,sonar-no-fallthrough,sonar-no-invalid-regexp,strict-transport-security,aws-iam-public-access,no-unsafe-finally,prefer-while,sonar-no-unused-vars,index-of-compare-to-positive-number,argument-type,empty-string-repetition,in-operator-type-error,prefer-promise-shorthand,regex-complexity,no-intrusive-permissions,disabled-resource-integrity,assertions-in-tests,no-empty-after-reluctant,content-security-policy,no-labels,no-uniq-key,aws-s3-bucket-server-encryption,no-unenclosed-multiline-block,call-argument-line,aws-s3-bucket-insecure-http,generator-without-yield,no-ignored-return,no-caller,csrf,cognitive-complexity,use-isnan,no-nested-template-literals,max-switch-cases,inverted-assertion-arguments,test-check-exception,production-debug,unused-import,prefer-single-boolean-return,no-redundant-boolean,no-nested-assignment,aws-s3-bucket-versioning,no-unsafe-unzip,concise-regex,no-array-index-key,jsx-key,updated-loop-counter,link

2023/05/24 04:51:48 -with-target-blank,no-unstable-nested-components,no-setter-return,different-types-comparison,no-case-label-in-switch,no-in-misuse,jsx-no-constructed-context-values,no-misleading-array-reverse,no-redundant-assignments,os-command,no-invariant-returns,no-parameter-reassignment,stateful-regex,aws-efs-unencrypted,aws-apigateway-public-api,aws-sqs-unencrypted-queue,no-accessor-field-mismatch,cors,no-empty-group,no-os-command-from-path,no-collection-size-mischeck,unverified-certificate,disabled-auto-escaping,no-empty-collection,updated-const-var,no-duplicate-imports,no-unthrown-error,no-var,no-redundant-jump,no-octal,no-hardcoded-ip,aws-restricted-ip-admin-access,no-hook-setter-in-body,no-useless-react-setstate,no-identical-functions,rules-of-hooks,no-element-overwrite,sonar-no-unused-class-component-methods,prefer-regex-literals,sonar-no-regex-spaces,no-empty-alternatives,no-same-line-conditional,sonar-no-control-regex,aws-ec2-rds-dms-public,super-invocation,aws-sns-unencrypted-topics,no-try-promise,existing-groups

2023/05/24 04:51:48 ,void-use,comma-or-logical-or-case,label-position,no-with,insecure-cookie,no-unused-collection,sql-queries,no-sequences,no-global-this,require-render-return,no-array-delete,no-alphabetical-sort,sonar-jsx-no-leaked-render,prefer-for-of,aws-sagemaker-unencrypted-notebook,xml-parser-xxe,aws-iam-privilege-escalation,jsx-no-comment-textnodes,default-param-last,non-existent-operator,new-operator-misuse,sonar-no-empty-character-class,no-sparse-arrays,content-length,no-clear-text-protocols,aws-rds-unencrypted-databases,no-invalid-await,no-equals-in-for-termination,no-hardcoded-credentials,no-infinite-loop,no-async-promise-executor,valid-typeof,aws-iam-all-privileges,aws-opensearchservice-domain,no-primitive-wrappers,no-exclusive-tests,sonar-no-dupe-keys,no-self-assign,no-new-symbol,no-dupe-args,no-small-switch,no-loss-of-precision,publicly-writable-directories,unnecessary-character-escapes,no-incomplete-assertions,x-powered-by,no-unreachable,no-identical-expressions,code-eval,file-permissions,future-reserved-words,no

2023/05/24 04:51:48 -useless-catch,bitwise-operators,hidden-files,no-unused-expressions,no-unsafe-optional-chaining,no-empty,sonar-max-params,no-import-assign,no-duplicated-branches,no-one-iteration-loop,misplaced-loop-counter,deprecation,no-unsafe-negation,function-inside-loop,no-multi-str,class-name,chai-determinate-assertion,sonar-block-scoped-var,no-code-after-done,no-delete-var,encryption-secure-mode,no-weak-cipher,no-identical-conditions,function-return-type,no-all-duplicated-branches,disabled-timeout,no-nested-conditional,insecure-jwt-token,no-extra-boolean-cast,no-dead-store,no-implicit-global,no-empty-function

2023/05/24 04:51:48 04:51:48.813 DEBUG: Using generated tsconfig.json file /kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/1797045207837879620.tmp

2023/05/24 04:51:48 04:51:48.815 INFO: Creating TypeScript program

2023/05/24 04:51:48 04:51:48.815 INFO: TypeScript configuration file /kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/1797045207837879620.tmp

2023/05/24 04:51:48 04:51:48.819 INFO: 1 source file to be analyzed

2023/05/24 04:51:49 04:51:49.543 DEBUG: program from /kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/1797045207837879620.tmp with id 1 is created

2023/05/24 04:51:49 04:51:49.547 INFO: Creating TypeScript program (done) | time=732ms

2023/05/24 04:51:49 04:51:49.548 INFO: Starting analysis with current program

2023/05/24 04:51:49 04:51:49.548 DEBUG: File not part of the project: ‘/kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/typescript/lib/lib.d.ts’

2023/05/24 04:51:49

2023/05/24 04:51:49 04:51:49.548 DEBUG: File not part of the project: ‘/kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/typescript/lib/lib.es5.d.ts’

2023/05/24 04:51:49 04:51:49.548 DEBUG: File not part of the project: ‘/kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/typescript/lib/lib.dom.d.ts’

2023/05/24 04:51:49 04:51:49.548 DEBUG: File not part of the project: ‘/kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts’

2023/05/24 04:51:49 04:51:49.548 DEBUG: File not part of the project: ‘/kwixand/gatsby-starter-typescript-scss-modules/.scannerwork/.sonartmp/eslint-bridge-bundle/package/node_modules/typescript/lib/lib.scripthost.d.ts’

2023/05/24 04:51:49 04:51:49.555 DEBUG: Cache strategy set to ‘WRITE_ONLY’ for file ‘gatsby-config.js’ as current analysis requires all files to be analyzed

2023/05/24 04:51:49 04:51:49.555 DEBUG: Analyzing file: file:///kwixand/gatsby-starter-typescript-scss-modules/gatsby-config.js

2023/05/24 04:51:49 04:51:49.573 DEBUG: Analyzing file “/kwixand/gatsby-starter-typescript-scss-modules/gatsby-config.js” with linterId “default”

2023/05/24 04:51:50 04:51:50.718 DEBUG: Cache entry created for key ‘jssecurity:ucfgs:SEQ:10.1.0.21143:project_51632280:gatsby-config.js’ containing 0 file(s)

2023/05/24 04:51:50 04:51:50.719 DEBUG: Cache entry created for key ‘jssecurity:ucfgs:JSON:10.1.0.21143:project_51632280:gatsby-config.js’

2023/05/24 04:51:50 04:51:50.759 DEBUG: Cache entry created for key ‘js:filemetadata:10.1.0.21143:project_51632280:gatsby-config.js’

2023/05/24 04:51:50 04:51:50.759 INFO: Analyzed 1 file(s) with current program

2023/05/24 04:51:50 04:51:50.767 INFO: 1/1 source file has been analyzed

2023/05/24 04:51:50 04:51:50.767 INFO: Hit the cache for 0 out of 1

2023/05/24 04:51:50 04:51:50.769 INFO: Miss the cache for 1 out of 1: ANALYSIS_MODE_INELIGIBLE [1/1]

2023/05/24 04:51:50 04:51:50.769 INFO: Sensor JavaScript analysis [javascript] (done) | time=1965633ms

04:51:50.769 INFO: Sensor TypeScript analysis [javascript]

2023/05/24 04:51:50 04:51:50.771 DEBUG: eslint-bridge server is up, no need to start.

2023/05/24 04:51:50 04:51:50.772 DEBUG: Analysis of unchanged files will not be skipped (current analysis requires all files to be analyzed)

2023/05/24 04:51:50

2023/05/24 04:51:50 04:51:50.775 DEBUG: Initializing linter “default” with no-commented-code,sonar-no-fallthrough,no-inverted-boolean-check,duplicates-in-character-class,file-uploads,sonar-no-misleading-character-class,dns-prefetching,certificate-transparency,arguments-order,no-same-argument-assert,single-char-in-character-classes,aws-ec2-unencrypted-ebs-volume,unused-named-groups,no-unsafe-finally,prefer-while,single-character-alternation,aws-iam-public-access,no-ip-forward,session-regeneration,no-use-of-empty-return-value,no-associative-arrays,no-weak-keys,confidential-information-logging,weak-ssl,no-ignored-exceptions,no-useless-increment,no-throw-literal,pseudo-random,no-redundant-optional,cookie-no-httponly,aws-s3-bucket-public-access,post-message,constructor-for-side-effects,no-globals-shadowing,unverified-hostname,hashing,for-loop-increment-sign,no-vue-bypass-sanitization,no-extra-boolean-cast,no-nested-conditional,no-unnecessary-type-assertion,insecure-jwt-token,no-dead-store,prefer-type-guard,use-type-alias,no-in-misuse

2023/05/24 04:51:50 ,no-parameter-reassignment,no-unstable-nested-components,jsx-key,updated-loop-counter,no-array-index-key,link-with-target-blank,concise-regex,stateful-regex,max-switch-cases,test-check-exception,production-debug,csrf,no-undefined-argument,cognitive-complexity,no-labels,use-isnan,no-nested-template-literals,inverted-assertion-arguments,no-duplicate-in-composite,aws-s3-bucket-insecure-http,generator-without-yield,no-ignored-return,no-caller,aws-s3-bucket-server-encryption,call-argument-line,no-uniq-key,no-unenclosed-multiline-block,jsx-no-constructed-context-values,no-redundant-boolean,content-security-policy,prefer-promise-shorthand,regex-complexity,no-empty-after-reluctant,no-intrusive-permissions,disabled-resource-integrity,assertions-in-tests,unused-import,empty-string-repetition,no-nested-assignment,index-of-compare-to-positive-number,no-unsafe-unzip,aws-s3-bucket-versioning,strict-transport-security,todo-tag,no-mime-sniff,prefer-default-last,no-referrer-policy,no-gratuitous-expressions,no-empty-pattern,so

2023/05/24 04:51:50 nar-no-invalid-regexp,no-mixed-content,no-angular-bypass-sanitization,anchor-precedence,frame-ancestors,slow-regex,fixme-tag,aws-s3-bucket-granted-access,sonar-no-empty-character-class,non-existent-operator,new-operator-misuse,no-small-switch,aws-iam-privilege-escalation,jsx-no-comment-textnodes,prefer-for-of,aws-sagemaker-unencrypted-notebook,xml-parser-xxe,sonar-jsx-no-leaked-render,default-param-last,sql-queries,no-global-this,no-array-delete,no-alphabetical-sort,require-render-return,no-sequences,no-octal,void-use,no-hardcoded-ip,comma-or-logical-or-case,label-position,existing-groups,aws-sns-unencrypted-topics,super-invocation,no-try-promise,aws-ec2-rds-dms-public,sonar-no-control-regex,no-empty-alternatives,sonar-no-regex-spaces,no-same-line-conditional,prefer-regex-literals,sonar-no-unused-class-component-methods,rules-of-hooks,no-identical-functions,no-useless-react-setstate,no-element-overwrite,aws-restricted-ip-admin-access,no-hook-setter-in-body,no-equals-in-for-termination,no-sparse-arrays,no-var,

2023/05/24 04:51:50 no-redundant-jump,no-duplicate-imports,no-unthrown-error,no-os-command-from-path,no-collection-size-mischeck,prefer-namespace-keyword,unverified-certificate,disabled-auto-escaping,no-empty-collection,no-empty-group,aws-sqs-unencrypted-queue,aws-apigateway-public-api,no-accessor-field-mismatch,cors,aws-efs-unencrypted,insecure-cookie,no-unused-collection,no-invariant-returns,no-case-label-in-switch,os-command,no-misleading-array-reverse,no-redundant-assignments,no-all-duplicated-branches,no-identical-conditions,no-weak-cipher,no-delete-var,encryption-secure-mode,no-useless-intersection,sonar-block-scoped-var,no-empty-function,no-code-after-done,no-unsafe-negation,deprecation,misplaced-loop-counter,no-one-iteration-loop,no-multi-str,function-inside-loop,no-import-assign,no-unsafe-optional-chaining,no-duplicated-branches,disabled-timeout,bitwise-operators,class-name,code-eval,no-identical-expressions,no-unreachable,no-useless-catch,x-powered-by,file-permissions,publicly-writable-directories,unnecessary-character

2023/05/24 04:51:50 -escapes,no-incomplete-assertions,no-loss-of-precision,chai-determinate-assertion,sonar-no-dupe-keys,no-primitive-wrappers,no-exclusive-tests,aws-opensearchservice-domain,no-self-assign,no-async-promise-executor,no-misused-new,aws-iam-all-privileges,no-invalid-await,no-hardcoded-credentials,aws-rds-unencrypted-databases,content-length,no-clear-text-protocols,no-empty,sonar-max-params,hidden-files,no-unused-expressions

2023/05/24 04:52:05 04:52:05.986 INFO: Found 1 tsconfig.json file(s): [/kwixand/gatsby-starter-typescript-scss-modules/tsconfig.json]

2023/05/24 04:52:05 04:52:05.987 INFO: Creating TypeScript program

2023/05/24 04:52:05 04:52:05.987 INFO: TypeScript configuration file /kwixand/gatsby-starter-typescript-scss-modules/tsconfig.json

2023/05/24 04:52:05 04:52:05.987 INFO: 5 source files to be analyzed

2023/05/24 04:52:08 04:52:08.071 DEBUG: program from /kwixand/gatsby-starter-typescript-scss-modules/tsconfig.json with id 2 is created

2023/05/24 04:52:08 04:52:08.076 INFO: Creating TypeScript program (done) | time=2089ms

2023/05/24 04:52:08 04:52:08.076 INFO: Starting analysis with current program

2023/05/24 04:52:37 04:52:37.097 INFO: ANALYSIS SUCCESSFUL, you can find the results at: http://code-service-sonarqube1:9000/dashboard?id=project_51632280

2023/05/24 04:52:37 04:52:37.097 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report

2023/05/24 04:52:37 04:52:37.097 INFO: More about the report processing at http://code-service-sonarqube1:9000/api/ce/task?id=AYhMGhIPS0ZqE_hC3vGj

2023/05/24 04:52:37 04:52:37.101 DEBUG: Post-jobs :

2023/05/24 04:52:37 04:52:37.107 DEBUG: eslint-bridge server will shutdown

2023/05/24 04:52:42 04:52:42.112 DEBUG: eslint-bridge server closed

2023/05/24 05:01:14 05:01:14.850 INFO: Analysis total time: 42:16.018 s

2023/05/24 05:01:14 05:01:14.853 INFO: ------------------------------------------------------------------------

2023/05/24 05:01:14 05:01:14.853 INFO: EXECUTION SUCCESS

05:01:14.853 INFO: ------------------------------------------------------------------------

2023/05/24 05:01:14

2023/05/24 05:01:14 05:01:14.853 INFO: Total time: 42:18.732s

2023/05/24 05:01:14 05:01:14.906 INFO: Final Memory: 17M/80M

05:01:14.906 INFO: ------------------------------------------------------------------------

Update

The problem was solved after I set the working directory to a directory inside the container instead of a docker mounted volume.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.