SonarQube Cloud PR analysis: JS/TS cache never reused since SonarJS 14.1 (ANALYSIS_MODE_INELIGIBLE)

Environment

  • SonarQube Cloud, CI-based analysis from GitHub Actions
  • SonarScanner CLI 8.1.0.6389, via SonarSource/sonarqube-scan-action
  • Pull request analysis on a monorepo with about 11,400 JS/TS files and 2,700 Kotlin files
  • sonar.typescript.tsconfigPaths lists the tsconfig files explicitly; sonar.javascript.node.maxspace=12288

What happens

Since SonarQube Cloud moved the JavaScript plugin from 14.0.0.46108 to 14.1.0.46226, on 14 Oct 2026, every pull request analysis re-analyses all JS/TS files. It no longer reuses the target branch’s cache for unchanged files. This is still the case on 14.3.0.46350 (logged as Plugin version: [14.3.0.46350] on 26 Oct 2026).

Before 14 Oct, the JS/TS sensor logged cache hits for most files (for example Hit the cache for 8518 out of 10291) and took 68–109 s. Since then, every PR analysis logs:

INFO  Hit the cache for 0 out of 11433
INFO  Miss the cache for 11433 out of 11433: ANALYSIS_MODE_INELIGIBLE [11433/11433]
INFO  Sensor JavaScript/TypeScript/CSS analysis [javascript] (done) | time=565691ms

The sensor now takes 9–11 minutes on every PR, including PRs that change no JS/TS files.

Why we think this is plugin-side

  1. In SonarJS, CacheStrategies.getStrategyFor reports ANALYSIS_MODE_INELIGIBLE only when JsTsContext.getAnalysisMode() returns DEFAULT. That happens only when SensorContext.canSkipUnchangedFiles() returns false.
  2. In the same analysis, other sensors are allowed to skip unchanged files:
    INFO  Load sensor cache (161 MB)
    INFO  Only analyzing 155 changed Kotlin files out of 2664.
    INFO  Sensor IaC Docker Sensor is restricted to changed files only
    INFO  Sensor HTML is restricted to changed files only
    INFO  Unchanged files can be skipped in the current context and all relevant files are unchanged. Skipping taint analysis.
    
    So this is a pull request analysis, the sensor cache loads, and unchanged-file skipping is available. Only the JS/TS sensor is refused it.
  3. The target branch is analysed successfully every night, so its cache is fresh. As explained in this earlier thread, the cache is designed for pull request analysis, and that is exactly where ours is refused.
  4. Nothing in our configuration changed at the time. The first cache miss came within about two hours of the plugin version change on 14 Oct.

Questions

  1. Is this a known regression in SonarJS 14.1+ on SonarQube Cloud? Is there a fix or an ETA?
  2. Is there a supported property that restores unchanged-file skipping for the JS/TS sensor on pull request analyses?

We can share the organization and project keys, and full scanner logs, by private message.

Hello @chris-archax,

thanks for reporting this. I’ve opened a ticket to fix it.

Cheers,
Victor

Thank you so much! Let me know if there’s anything i can do to help! -chris