Skip to content

ci: add timeout to Linux CI to prevent 2026.1 EAP snapshot resolution hangs#39

Merged
ashishrp-aws merged 4 commits intomainfrom
fix/ci-check
Mar 20, 2026
Merged

ci: add timeout to Linux CI to prevent 2026.1 EAP snapshot resolution hangs#39
ashishrp-aws merged 4 commits intomainfrom
fix/ci-check

Conversation

@aseemxs
Copy link
Contributor

@aseemxs aseemxs commented Mar 20, 2026

Problem

Linux (2026.1) CI runs for 6+ hours before being cancelled by the GitHub Actions timeout. Other versions (2025.2, 2025.3) finish in ~15-20 minutes.

Root Cause

The 2026.1 profile uses 261.22158-EAP-CANDIDATE-SNAPSHOT as the IDE SDK version. The -SNAPSHOT suffix causes Gradle to re-check the JetBrains snapshot repository on every build. When the repo is slow or the artifact is mid-publish, Gradle hangs indefinitely during dependency resolution — the ./gradlew check command never produces any output.

Evidence:

  • CI logs show zero output from the Gradle test step — it hangs before compilation even starts
  • 2025.2 and 2025.3 use stable release versions ("2025.3") that resolve instantly
  • 2026.1 has never completed a CI run — every run hits the 6-hour GitHub Actions limit

Fix

Add timeout-minutes: 45 to the Linux unit tests workflow. This is a safety net so snapshot resolution hangs fail fast (45 min) instead of burning 6 hours of runner time. Normal test runs complete in ~15-20 minutes.

The SNAPSHOT version is kept intentionally so the build auto-picks up new EAP builds. If the timeout is consistently hit, we can pin to a specific build (e.g., 261.22158.205-EAP-CANDIDATE).

Testing

  • 2025.2 and 2025.3 unaffected (finish well under 45 min)
  • 2026.1 will either resolve and pass, or fail fast at 45 min instead of 6 hours

@github-actions
Copy link

github-actions bot commented Mar 20, 2026

Qodana for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.1.1
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

aseemxs added 2 commits March 19, 2026 20:29
…n hang

261.22158-EAP-CANDIDATE-SNAPSHOT causes Gradle to re-check the
JetBrains snapshot repo on every build. If the repo is slow or
mid-publish, Gradle hangs indefinitely — this is why Linux 2026.1
CI runs for 6+ hours before timing out.

Pin to 261.22158.205-EAP-CANDIDATE (latest available pinned build)
so Gradle downloads once and caches.
Revert pinned EAP version back to SNAPSHOT so it auto-updates.
Add timeout-minutes: 45 as a safety net so snapshot resolution
hangs fail fast instead of burning 6 hours of runner time.
@aseemxs aseemxs changed the title ci: dummy PR to check CI status fix(ci): add timeout to Linux CI to prevent 2026.1 EAP snapshot resolution hangs Mar 20, 2026
@aseemxs aseemxs changed the title fix(ci): add timeout to Linux CI to prevent 2026.1 EAP snapshot resolution hangs ci: add timeout to Linux CI to prevent 2026.1 EAP snapshot resolution hangs Mar 20, 2026
@aseemxs aseemxs closed this Mar 20, 2026
@aseemxs aseemxs reopened this Mar 20, 2026
@aseemxs aseemxs marked this pull request as ready for review March 20, 2026 18:07
@aseemxs aseemxs requested a review from a team as a code owner March 20, 2026 18:07
@ashishrp-aws ashishrp-aws merged commit b93fb46 into main Mar 20, 2026
29 of 32 checks passed
@ashishrp-aws ashishrp-aws deleted the fix/ci-check branch March 20, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants