Skip to content

ci: test on IntelliJ 2025.3 and 2026.3 too, on Linux - #1931

Merged
angelozerr merged 2 commits into
redhat-developer:mainfrom
lagergren:ci/test-on-intellij-2025.3
Nov 11, 2026
Merged

angelozerr merged 2 commits into
redhat-developer:mainfrom
lagergren:ci/test-on-intellij-2025.3

Conversation

@lagergren

@lagergren lagergren commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Important

Request for comments: this is a proposal, not something to merge as it is. The two new jobs make CI do more work on every push to a pull request, and the project may not have the budget for that, or may not want the extra load. Please comment before merging. The costs and some cheaper alternatives are at the end.

Fixes #1908, with #1910 and #1681, which fixed the four other failures that it lists.

CI ran the tests only on the platform version of gradle.properties, IntelliJ IDEA Community 2024.2. This adds two jobs on Linux: one on IntelliJ IDEA Community 2025.3, and one on the newest release, the unified IntelliJ IDEA 2026.3 (platformType=IU). #1921 was a failure on 2026.3 that only tests there could have caught: the code compiles and links, and the plugin verifier passes.

Building and testing against 2026.3

main didn't build against 2026.3, and on the unified IntelliJ IDEA 2026.3, 70 of its tests failed:

  • Java 25. The classes of 2026.3 are Java 25 classes, so the toolchain is Java 25 for 2026.3 and stays Java 21 otherwise. The output is still Java 17. Gradle provisions Java 25 itself, through the Foojay resolver of settings.gradle.kts.
  • Modules. 2026.3 has the debugger API in modules of its own, and the structure view in a plugin of its own.
  • Two tests that didn't compile. 2026.3 changed the constructor of DocumentEventImpl and renamed EditorTracker.setActiveEditors to setActiveEditorsInTests. WorkspaceEditVersionTest now makes a DocumentEvent of its own, and CodeActionsOnTheEdtTest calls the setter that the platform has.
  • 70 failing tests. The tests load every plugin bundled with the IDE they run on. IntelliJ IDEA Ultimate and the unified IntelliJ IDEA bundle plugins for JavaScript and CSS, which take over the .js, .ts and .css files of the tests that IntelliJ IDEA Community leaves to LSP4IJ: the files get the plugins' PSI, formatter and folding. All 70 failures were in such tests. The test sandbox now disables both plugins, through prepareTestSandbox.disabledPlugins, and with them their dependents, such as Angular and Tailwind CSS. Every other plugin still loads. Community has neither plugin, so there, this changes nothing.

None of this changes the build for older versions: the toolchain and the modules are for 2026.3 on, disabling the two plugins does nothing in Community, and the two tests work on every version. Locally:

  • The full suite passes on 2024.2, 2025.3 and 2026.3, 1,597 tests each, and check passes on 2026.3.
  • The 19 test classes that failed on 2026.3, 114 tests, pass on all three with the plugins disabled as they are now.

Cost, and alternatives

The new jobs run alongside the others, so as long as they finish before the slowest check, a pull request waits no longer. On the second run of this PR, both passed: 2026.3 in 12.2 minutes and 2025.3 in 9.7, against 7.3 for 2024.2 on Linux. They download their IDE, and 2026.3 also a larger one and Java 25. The slowest checks of that run were the tests on macOS, 13.5 minutes, and the plugin verifier, 11.2, so the pull request didn't wait longer. But the job of 2026.3 took longer than the verifier there, and the tests on macOS took 9 to 13 minutes on recent runs, so on some runs it will be the slowest check, by a minute or two.

They aren't free, though:

  • Runner time. About 20 more runner minutes for every push to a pull request, two jobs of about 10 minutes. Depending on the organization's plan and runners, that may cost budget.
  • Queueing. Two more jobs compete for the organization's concurrent runners. With several pull requests at once, jobs can wait for a runner, and then every pull request waits longer.
  • Flakiness. Each job is another chance of a flaky failure that needs a rerun.
  • Upkeep. The versions are pinned, so that a new release doesn't break pull requests that have nothing to do with it. They need a bump with each supported release.

Cheaper alternatives:

  1. Only the build changes, the first commit. main then builds and tests against 2026.3, and anyone can run ./gradlew check -PplatformType=IU -PplatformVersion=2026.3 locally, with no new jobs.
  2. Nightly or weekly, instead of on every pull request, for example by reviving the IJ-latest workflow, which hasn't run since November 2025.
  3. One job, such as 2026.3, the release that differs most from 2024.2.

@angelozerr, which would you prefer?

Details of the jobs:

  • The jobs of 2024.2 keep their names, such as Test (ubuntu-latest). The new ones are Test (ubuntu-latest, 2025.3) and Test (ubuntu-latest, 2026.3). Their test results get artifacts of their own, and only the job of 2024.2 on Linux uploads coverage, as before.
  • The releases between them, 2024.3 to 2025.2, 2026.1 and 2026.2, are still checked by the plugin verifier only. The toolchain and the modules of 2026.3 aren't tried on 2026.1 and 2026.2.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Compatibility
    • Build and automated test coverage now include IntelliJ Platform 2025.3 and 2026.3, while retaining coverage for existing supported platforms.
    • Updated platform-specific test configuration to account for differences across supported versions.
  • Tests
    • Test reporting now identifies platform versions, and code coverage uploads are limited to the default Linux test job.

The build and CI workflow now cover additional IntelliJ Platform versions, including 2026.3. Tests use public or version-compatible APIs for document events and active-editor setup.

Changes: Platform compatibility

Layer / File(s) Summary
Platform build configuration
build.gradle.kts
The build adds debugger modules and the com.intellij.structureView plugin for platform 2026.3. It selects Java 25 for that version and Java 21 otherwise, and disables the JavaScript and com.intellij.css plugins in the test sandbox.
Version-compatible test APIs
src/test/java/com/redhat/devtools/lsp4ij/WorkspaceEditVersionTest.java, src/test/java/com/redhat/devtools/lsp4ij/features/codeAction/CodeActionsOnTheEdtTest.java
The workspace edit tests create whole-text replacement events through the public DocumentEvent API. The code action test uses reflection to select the available active-editor setter.
Platform-version CI matrix
.github/workflows/ci.yml
The matrix adds Ubuntu jobs for platform versions 2025.3 and 2026.3. The workflow passes selected platform properties to Gradle, includes versions in job and artifact names, and limits Codecov uploads to default-version Linux jobs.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: jomof, angelozerr

Merge Risk: Minimal · up to 71852

No merge-blocking issue was established for the added platform-version test jobs.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly summarizes the main change: adding Linux CI tests for IntelliJ 2025.3 and 2026.3.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Description check Passed The description explains the CI matrix expansion and the IntelliJ 2026.3 build and test changes, including their costs and alternatives.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 3 files. (1 skipped: 1 unsupported.)

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: 93769322-d646-4c4d-b6f3-229d4cab0b73
Commits

Reviewing files that changed from the base of the PR and between b62c276 and 718525b.

Files selected for processing: 4

  • .github/workflows/ci.yml
  • build.gradle.kts
  • src/test/java/com/redhat/devtools/lsp4ij/WorkspaceEditVersionTest.java
  • src/test/java/com/redhat/devtools/lsp4ij/features/codeAction/CodeActionsOnTheEdtTest.java

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

@codecov

codecov Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.21%. Comparing base (b62c276) to head (718525b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1931      +/-   ##
==========================================
+ Coverage   48.20%   48.21%   +0.01%     
==========================================
  Files         809      809              
  Lines       32433    32433              
  Branches     4994     6599    +1605     
==========================================
+ Hits        15635    15639       +4     
+ Misses      14308    14304       -4     
  Partials     2490     2490              

☔ 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 changed the title ci: test on IntelliJ 2025.3 too, on Linux ci: test on IntelliJ 2025.3 and 2026.3 too, on Linux Nov 10, 2026
Against 2026.3, main didn't compile, and on the unified IntelliJ IDEA
2026.3, 70 of its tests failed:

- 2026.3's classes are Java 25 classes, so the toolchain is Java 25 for
  2026.3 and stays Java 21 otherwise. The output is still Java 17.
- 2026.3 has the debugger API in modules of its own, and the structure
  view in a plugin of its own.
- 2026.3 changed the constructor of DocumentEventImpl and renamed
  EditorTracker.setActiveEditors to setActiveEditorsInTests, which two
  tests used. WorkspaceEditVersionTest makes a DocumentEvent of its own,
  and CodeActionsOnTheEdtTest calls the setter that the platform has.
- The tests load every plugin bundled with the IDE they run on.
  IntelliJ IDEA Ultimate and the unified IntelliJ IDEA bundle plugins for
  JavaScript and CSS, which take over the .js, .ts and .css files of the
  tests that IntelliJ IDEA Community leaves to LSP4IJ, so 70 tests
  failed. The test sandbox disables both. Community has neither plugin,
  so there, this changes nothing.
The tests ran only on the platform version of gradle.properties, 2024.2.
Two jobs of their own now run them on Linux, on IntelliJ IDEA Community
2025.3 and on the newest release, the unified IntelliJ IDEA 2026.3,
alongside the jobs that run them on 2024.2 on each OS, so a pull request
takes no longer. The jobs of 2024.2 keep their names, the test results of
the new jobs get names of their own, and only the job of 2024.2 on Linux
uploads coverage, as before.
@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 24 minutes.

@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Action performed

Full review finished.

@lagergren

Copy link
Copy Markdown
Collaborator Author

@angelozerr, do you think the two new jobs are worth what they add to CI? Here's what they cost in the three CI runs of this PR, in minutes:

Check 1st push (2025.3 only) 2nd push 3rd push
Tests on 2024.2, Linux 7.4 7.4 8.6
Tests on 2025.3, Linux (new) 9.7 9.7 8.9
Tests on 2026.3, Linux (new) — 12.2 11.8
Tests on 2024.2, Windows 9.1 9.2 10.2
Tests on 2024.2, macOS 10.0 13.6 13.7
Plugin verifier 11.6 11.3 11.3
  • Wait for a pull request: hardly longer, because the jobs run in parallel. On the 2nd and 3rd pushes, the tests on macOS were still the slowest check, so the pull request waited no longer. On a run where macOS is fast, as on the 1st push, the job of 2026.3 becomes the slowest check, by up to a minute over the plugin verifier.
  • Runner time: about 21 minutes more for every push to a pull request, on top of about 43 to 45, so half as much again.
  • Money: probably none. The repository is public, and GitHub's billing documentation says that "the use of standard GitHub-hosted runners is free" in public repositories, which ubuntu-latest is.
  • Capacity: that leaves concurrency. GitHub limits how many jobs run at once by plan, from 20 on the Free plan to 500 on Enterprise. I don't know redhat-developer's plan, or how busy its runners are.

Is that a limit for Red Hat's GitHub CI, with LSP4IJ's jobs or those of other repositories waiting for runners? If it is, or if you'd rather not have the extra jobs, I'll take the CI commit (718525b) out of this PR for now, so that only the build commit (c67cebe) is merged. With it, main builds and tests against 2026.3, anyone can run the tests there with ./gradlew check -PplatformType=IU -PplatformVersion=2026.3, and it still fixes #1908. The jobs can come back later, for example as a nightly run.

@lagergren lagergren added this to the 0.30.0 milestone Nov 11, 2026
@angelozerr
angelozerr merged commit 4ffed45 into redhat-developer:main Nov 11, 2026
18 checks passed
@angelozerr

Copy link
Copy Markdown
Contributor

Thanks @lagergren !

lagergren added a commit that referenced this pull request Nov 17, 2026
… their own (#2008)

The tests' sandbox disables the JavaScript and CSS plugins (#1931), and CI's default legs run IntelliJ
IDEA Community, which has neither. So DAPExpressionCodeFragmentJavaScriptTest (#2001) returned at its
first line in every run and passed without testing anything.

testJavaScript, registered with intellijPlatformTesting.testIde, runs the tests named
*JavaScriptPluginTest in a sandbox of its own, which keeps the JavaScript plugin; test leaves them out.
The IntelliJ Platform Gradle Plugin makes check run it. On IntelliJ IDEA Ultimate (-PplatformType=IU),
which bundles the plugin, it runs, as on CI's 2026.3 leg; elsewhere it is skipped. The test is renamed
to DAPExpressionCodeFragmentJavaScriptPluginTest, and fails instead of returning when the plugin isn't
loaded.

Validated:
- testJavaScript on IntelliJ IDEA Ultimate 2024.2 and 2026.3: 1 test, 0 failures.
- With the production change of #2001 reverted, it fails with the ClassCastException of #1998.
- On Community (the default), testJavaScript is skipped, and test doesn't run the test.
- The configuration cache is stored and reused.

Fixes #2007
lagergren pushed a commit that referenced this pull request Nov 22, 2026
…th intellijPlatformDiscover (#2063)

## 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 #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](https://github.com/muescha/lsp4ij/actions/runs/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](https://github.com/muescha/lsp4ij/actions/runs/44875216897): passes, all tests against `263.8311.30-EAP-SNAPSHOT`.
  - [44876732170](https://github.com/muescha/lsp4ij/actions/runs/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](https://claude.com/claude-code)
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.

Building and testing LSP4IJ against IntelliJ 2026.x needs more than #1906

2 participants