Skip to content

ci: build "Latest IJ" against the newest IntelliJ IDEA (IU), found with intellijPlatformDiscover - #2063

Merged
lagergren merged 8 commits into
redhat-developer:mainfrom
muescha:ci/ij-latest-unified-idea
Nov 22, 2026
Merged

lagergren merged 8 commits into
redhat-developer:mainfrom
muescha:ci/ij-latest-unified-idea

Conversation

@muescha

@muescha muescha commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

"Latest IJ" (IJ-latest.yml) is meant to build and test LSP4IJ against the newest IntelliJ build every night. It can't do that any more, and in my fork every run since 2026-11-12 failed:

* What went wrong:
For input string: "redirector"
java.lang.NumberFormatException: For input string: "redirector"
	at Build_gradle.<init>(build.gradle.kts:37)

The workflow found the version with

./gradlew printProductsReleases | grep 'IC-' | head -n 1 | cut -d'-' -f2

Claude Code found three problems with it:

  • From 2025.3 on, the list of releases has only IntelliJ IDEA (IU), so only IU has the newest builds, such as the 2026.3.1 EAP 263.8311.30; the IntelliJ Maven repository still has IC (ideaIC 2025.3 to 2026.3). Even when grep 'IC-' finds a version line, the newest one in the list is IC 2025.2.6.4, older than what ci.yml already tests.
  • grep 'IC-' matches any line of the Gradle output with IC- in it. The likeliest one is a download URL such as https://cache-redirector.jetbrains.com/…/ideaIC-2024.2.zip, printed before the versions when the IDE is not cached yet, so cut gave redirector. The command substitution swallows the output, so the log can't confirm the exact line.
  • The pipe ends with cut, which succeeds, so the step went on with a wrong version instead of failing.

The workflow is disabled in this repository, so the failures only show in forks where it runs.

Changes

IJ-latest.yml only; build.gradle.kts and ci.yml are unchanged.

  • A new step "Find the newest IntelliJ IDEA" asks intellijPlatformDiscover --kind=releases --type=IU (IntelliJ Platform Gradle Plugin) for the IU releases as JSON and takes, with jq, the build with the highest build number over all channels: the current EAP or RC if there is one, else the newest release.

  • build.gradle.kts takes the IDE from the IntelliJ Maven repository (useInstaller = false), where a release has its version (2026.3) and an EAP, RC or other preview build is <build number>-EAP-SNAPSHOT. The bare build number 263.8311.30 is not found there, so the step gives Gradle 263.8311.30-EAP-SNAPSHOT, or the version for a release.

  • The step fails with an error when no release is found, instead of building with an empty or wrong version.

  • "Build with Gradle" runs ./gradlew check -PplatformType=IU -PplatformVersion=<version>.

  • The log lists the 10 newest IU builds, and the job summary says which one was tested:

    The 10 newest IntelliJ IDEA (IU) builds:
    263.8311.30   2026.3.1  EAP
    263.7307.200  2026.3    RELEASE
    263.7307.112  2026.3    RC
    263.7307.44   2026.3    EAP
    …
    
    Newest IntelliJ IDEA: 263.8311.30  2026.3.1  EAP
    Platform version for Gradle: 263.8311.30-EAP-SNAPSHOT
    Newest IntelliJ IDEA release: 2026.3, ci.yml tests: 2026.3
    
  • ci.yml tests pull requests against a fixed IU release (2026.3), on purpose, so that a new release doesn't turn unrelated pull requests red. "Latest IJ" now reads, with yq, the highest IU release that ci.yml tests (an entry without platformType or platformVersion takes the one of gradle.properties) and compares it with the newest release. When a newer release is out, it writes a warning into the annotations and the job summary, without failing:

    ci.yml tests IntelliJ IDEA 2026.3, but the newest release is 2026.3.1. Update its matrix entry with platformType IU.

    2026.3 was released on 2026-11-05 and came into ci.yml with ci: test on IntelliJ 2025.3 and 2026.3 too, on Linux #1931 on 2026-11-11; with this check, the nightly run of 2026-11-06 would have pointed it out.

Possible follow-up

#2062, left out to keep this pull request small:

  • Variant 1 (proposed): while ci.yml is behind, "Latest IJ" also tests the newest release, so the warning says whether moving ci.yml would pass.
  • Variant 2 (feasible, set aside for now): ci.yml takes the newest release by itself; that would turn every open pull request red on the day of a release.

Tests

  • Runs of "Latest IJ" on this branch in my fork, started with workflow_dispatch:
    • 44875014196: found 263.8311.30, but the build failed with Could not find com.jetbrains.intellij.idea:idea:263.8311.30, which led to the -EAP-SNAPSHOT notation.
    • 44875216897: passes, all tests against 263.8311.30-EAP-SNAPSHOT.
    • 44876732170: passes, with the list of builds and the ci.yml check in the log (no warning, ci.yml is up to date).
  • The last commit, which takes the highest of several IU entries of ci.yml, ran locally only, with yq 4.54.3 on seven setups: today's ci.yml, 2025.3 with IU as well, an extra IU entry with an older and with a newer release, platformType=IU in gradle.properties, and no IU entry with an IC or an IU default. Each gave the expected version, or none.
  • The jq selection ran locally on the current releases (263.8311.30-EAP-SNAPSHOT), on the releases only (2026.3) and on an empty list (no version, so the step fails).

🤖 Generated with Claude Code

muescha and others added 6 commits November 21, 2026 07:19
…th intellijPlatformDiscover

The workflow took the first line of `printProductsReleases` that contained `IC-` and cut the version out of it.
Since 2025.3 there is no IntelliJ IDEA Community any more, and the first line with `IC-` in the Gradle output
was another one, so the version became "redirector" and `build.gradle.kts` failed with a NumberFormatException.

The version now comes from the JSON report of `intellijPlatformDiscover --kind=releases --type=IU`: the highest
build number, the current EAP if there is one, else the newest release. The step fails with a clear error when
no release is found, and the build runs with `-PplatformType=IU`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
build.gradle.kts takes the IDE from the IntelliJ Maven repository (useInstaller = false). There a release has its
version, such as 2026.3, and an EAP, RC or other preview build is '<build number>-EAP-SNAPSHOT', so the bare build
number 263.8311.30 was not found.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The step prints the 10 newest IU builds as "<notation>  <version>  <channel>" in a collapsible group, then the
build it picked and the platform version that Gradle gets, and writes both into the job summary.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ase than the newest one

ci.yml tests pull requests against a fixed IntelliJ IDEA (IU) release, so that a new release does not turn them red.
"Latest IJ" now compares it with the newest release and, without failing, writes a warning into the log and the job
summary when a newer release is out. The list of the newest builds shows the build number first, in aligned columns.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… newest release

The check took the first matrix entry with platformType IU. It now takes every entry that tests IU, also one that
gets its platformType or platformVersion from gradle.properties, and compares the highest of their versions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Updated automated checks to select the newest numeric IntelliJ IDEA build, including early-access builds, and report the selected version.
    • Checks now run against that build. Warnings are provided when the latest release or CI’s configured release cannot be determined, or when the latest release is newer than the configured version.

The workflow discovers the newest numeric IntelliJ IDEA IU build, compares release versions with the highest IU version configured in CI, and runs checks with the selected platform version.

Changes: IU build selection and checks

Layer / File(s) Summary
Discover IU build and run checks
.github/workflows/IJ-latest.yml
The workflow selects the newest numeric IU build. For the RELEASE channel, it uses the release version; for other channels, it uses a build-number snapshot version. It compares release versions with the highest IU version configured in CI and warns if a version is unavailable or the configured version is behind. It runs check with platformType=IU and the selected version.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: sbouchet, angelozerr

Merge Risk: Minimal · up to 261a1

This workflow-only change replaces a fragile IntelliJ version lookup with a more reliable IU build discovery step. It affects only the latest-IntelliJ CI job, not production behavior. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the primary change: the 'Latest IJ' CI workflow now builds against the newest IntelliJ IDEA (IU) found with intellijPlatformDiscover. This matches the raw summary, which replaces the p…
Description check Passed The description directly covers the changeset. It explains the failure of the old version lookup (grep 'IC-' matching a redirector URL, and cut masking the failure), describes the new intellijPlatform…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the primary change: the 'Latest IJ' CI workflow now builds against the newest IntelliJ IDEA (IU) found with intellijPlatformDiscover. This matches the raw summary, which replaces the printProductsReleases/grep lookup with an intellijPlatformDiscover-based selection in IJ-latest.yml. The title is 96 characters, slightly long, but it is specific and accurate.

Full details: Description check

Explanation

The description directly covers the changeset. It explains the failure of the old version lookup (grep 'IC-' matching a redirector URL, and cut masking the failure), describes the new intellijPlatformDiscover step, the -EAP-SNAPSHOT version notation, the fail-on-empty behavior, the ci.yml release comparison warning, and the test runs. It is detailed and consistent with the raw summary and objectives.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 52b8909a-9a99-49f7-88eb-a99436d001a8
Commits

Reviewing files that changed from the base of the PR and between 65d6855 and 261a19f.

Files selected for processing: 1

  • .github/workflows/IJ-latest.yml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

yq reads it as a properties file, so a value with spaces around "=" or a commented-out line is read as Gradle
reads it; sed only found "platformType=IU" written without spaces.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.14%. Comparing base (b982bd4) to head (261a19f).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2063      +/-   ##
==========================================
+ Coverage   49.49%   50.14%   +0.65%     
==========================================
  Files         813      813              
  Lines       33350    33483     +133     
  Branches     5195     6888    +1693     
==========================================
+ Hits        16505    16791     +286     
+ Misses      14272    14062     -210     
- Partials     2573     2630      +57     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lagergren lagergren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muescha thanks, this fixes the nightly lookup properly. What I checked and found correct:

  • The newest build: intellijPlatformDiscover gives the IU releases as JSON, the jq selection keeps the numeric build numbers, sorts them as numbers and takes the highest, and the step fails with an error when there is none, instead of going on with a wrong version as the old pipeline did with redirector.
  • The version given to Gradle: a release passes its version, and an EAP or RC passes <build number>-EAP-SNAPSHOT, which is what the IntelliJ Maven repository has, since build.gradle.kts uses it (useInstaller = false). build.gradle.kts reads 263.8311.30-EAP-SNAPSHOT as 263, and so picks Java 25 for it, which your passing run in your fork shows works on the runner.
  • The check of ci.yml: I went through the yq query against today's ci.yml: it takes 2026.3, its only IU entry, and leaves out the 2025.3 entry, which has no platformType and so builds IC, the default of gradle.properties. A job without a matrix gives nothing either, as the default type is IC. The comparison only warns, so a release never turns the pull requests red.
  • CI is green, and CodeRabbit had no comments.

One change, please, in this pull request: the comment in IJ-latest.yml and the summary say that since 2025.3 there is no IntelliJ IDEA Community (IC) any more. IC is still published: the IntelliJ Maven repository has ideaIC for 2026.1 to 2026.3 (ideaIC-2026.3.zip is its own distribution), which is why the 2025.3 job of ci.yml builds IC and passes. What changed is the list of releases: from 2025.3 on, it has only IU (the same list that printProductsReleases printed, and that made it look as if IC had ended). So taking IU is right; could you say it that way, for instance: "From 2025.3 on, the list of releases has only IntelliJ IDEA (IU), so only IU has the newest builds; the IntelliJ Maven repository still has IC"?

…t IC ended

IntelliJ IDEA Community is still published: the IntelliJ Maven repository has ideaIC up to 2026.3. What changed is
the list of releases, which has only IU from 2025.3 on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@muescha

muescha commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

@lagergren thanks for the careful review. You're right, IC is still published; the wrong statement came from the analysis. 261a19f now says it your way in the comment of IJ-latest.yml, and I updated the summary of this pull request the same way.

@lagergren lagergren added this to the 0.30.2 milestone Nov 22, 2026
@lagergren
lagergren merged commit 36a8efe into redhat-developer:main Nov 22, 2026
9 of 10 checks passed
@lagergren

Copy link
Copy Markdown
Collaborator

Merged, thank you @muescha! "Latest IJ" now finds the newest IntelliJ IDEA build again, and the warning when ci.yml falls behind a release is a nice addition. Thanks also for testing it in your fork and for the quick fix of the comment.

lagergren added a commit that referenced this pull request Nov 23, 2026
… tests an older one (#2098)

Fixes #2062

Variant 1 of #2062, which @muescha proposed; thanks! cc @muescha

## What

`ci.yml` tests pull requests against a fixed IntelliJ IDEA (IU) release, on purpose. Since #2063, "Latest IJ" warns when a newer IU release is out than the highest one that `ci.yml` tests, but the warning can't say whether moving `ci.yml` to it would pass.

Now, while `ci.yml` is behind, "Latest IJ" also runs `./gradlew check` against the newest release, and says whether `ci.yml` can move to it:
- if it passes, a notice says that moving is a one-line change of `ci.yml`;
- if it doesn't, a warning says so, and the job's log and test reports show what fails, before a pull request runs into it.

Pull requests and `ci.yml` stay as they are.

## Change

`IJ-latest.yml` now has three jobs:
- **`discover`** finds the newest IntelliJ IDEA build, and whether `ci.yml` is behind the newest release, as the job `build` did before. Its warning now points to the job `newest-release`.
- **`build`** tests the newest build, often an EAP, as before.
- **`newest-release`**, new, runs only while `ci.yml` is behind. It tests the newest release, says in an annotation and the job summary whether `ci.yml` can move to it, and uploads its test reports as `test-reports-newest-release`.

`build` and `newest-release` run side by side once `discover` is done. The `build` job's test reports are uploaded again: each of their paths started with `path:`, so the upload found no files. The cost is one more job in the nightly run, only while `ci.yml` is behind.

"Latest IJ" is still disabled in this repository, so this, as #2063's warning, helps once it is enabled.

## Test

- **actionlint** finds nothing.
- **A run on my fork**, from a branch with only two changes for the test: a `push` trigger, and `ci.yml` set back to IU 2025.3, so that it is behind. All three jobs passed ([run](https://github.com/lagergren/lsp4ij/actions/runs/45042742198)):
  - `discover`: "ci.yml tests IntelliJ IDEA 2025.3, but the newest release is 2026.3. The job newest-release tests it, and says whether ci.yml can move to it."
  - `newest-release` tested 2026.3: "ci.yml can move to 2026.3: ci.yml tests IntelliJ IDEA 2025.3, and the newest release, 2026.3, passes …"
  - `build` tested the newest build.
- **The failure path** of `newest-release`, the warning that the newest release doesn't pass, wasn't run: 2026.3 passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants