Repository navigation
ci: build "Latest IJ" against the newest IntelliJ IDEA (IU), found with intellijPlatformDiscover - #2063
Conversation
…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]>
…lapsed group 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]>
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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
lagergren
left a comment
There was a problem hiding this comment.
@muescha thanks, this fixes the nightly lookup properly. What I checked and found correct:
- The newest build:
intellijPlatformDiscovergives the IU releases as JSON, thejqselection 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 withredirector. - 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, sincebuild.gradle.ktsuses it (useInstaller = false).build.gradle.ktsreads263.8311.30-EAP-SNAPSHOTas 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 theyqquery against today'sci.yml: it takes 2026.3, its only IU entry, and leaves out the 2025.3 entry, which has noplatformTypeand so builds IC, the default ofgradle.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]>
|
@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 |
|
Merged, thank you @muescha! "Latest IJ" now finds the newest IntelliJ IDEA build again, and the warning when |
… 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.
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:The workflow found the version with
Claude Code found three problems with it:
ideaIC2025.3 to 2026.3). Even whengrep 'IC-'finds a version line, the newest one in the list is IC 2025.2.6.4, older than whatci.ymlalready tests.grep 'IC-'matches any line of the Gradle output withIC-in it. The likeliest one is a download URL such ashttps://cache-redirector.jetbrains.com/…/ideaIC-2024.2.zip, printed before the versions when the IDE is not cached yet, socutgaveredirector. The command substitution swallows the output, so the log can't confirm the exact line.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.ymlonly;build.gradle.ktsandci.ymlare 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, withjq, 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.ktstakes 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 number263.8311.30is not found there, so the step gives Gradle263.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:
ci.ymltests 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, withyq, the highest IU release thatci.ymltests (an entry withoutplatformTypeorplatformVersiontakes the one ofgradle.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:2026.3 was released on 2026-11-05 and came into
ci.ymlwith 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:
ci.ymlis behind, "Latest IJ" also tests the newest release, so the warning says whether movingci.ymlwould pass.ci.ymltakes the newest release by itself; that would turn every open pull request red on the day of a release.Tests
workflow_dispatch:Could not find com.jetbrains.intellij.idea:idea:263.8311.30, which led to the-EAP-SNAPSHOTnotation.263.8311.30-EAP-SNAPSHOT.ci.ymlcheck in the log (no warning,ci.ymlis up to date).ci.yml, ran locally only, withyq4.54.3 on seven setups: today'sci.yml,2025.3with IU as well, an extra IU entry with an older and with a newer release,platformType=IUingradle.properties, and no IU entry with an IC or an IU default. Each gave the expected version, or none.jqselection 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