Skip to content

ci: test the newest IntelliJ IDEA release in "Latest IJ" while ci.yml tests an older one - #2098

Merged
lagergren merged 2 commits into
redhat-developer:mainfrom
lagergren:ci/latest-ij-tests-the-newest-release-while-ci-is-behind
Nov 23, 2026
Merged

lagergren merged 2 commits into
redhat-developer:mainfrom
lagergren:ci/latest-ij-tests-the-newest-release-while-ci-is-behind

Conversation

@lagergren

Copy link
Copy Markdown
Collaborator

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):
    • 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.

… tests an older one

When ci.yml tests an older IntelliJ IDEA (IU) release than the newest,
"Latest IJ" now also runs ./gradlew check against the newest release, in
a job of its own next to the one for the newest build, which is often an
EAP. It then says whether ci.yml can move to that release: if it passes,
that is a one-line change of ci.yml, and if it doesn't, its log shows what
fails before a pull request runs into it.
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Automated checks now validate the newest IntelliJ release when the regular CI configuration tests an older release.
    • Test reports are uploaded for both the standard and newest-release checks, making results available for review.

The workflow now separates IntelliJ version discovery from testing. It runs the build against the discovered platform version and, when ci.yml tests an older release, runs a second check against the newest release and reports its result.

Changes: Latest IntelliJ checks

Layer / File(s) Summary
Release discovery and comparison
.github/workflows/IJ-latest.yml
The discovery job exposes the discovered platform version and reports whether the newest release is later than the release tested by ci.yml.
Build and conditional newest-release checks
.github/workflows/IJ-latest.yml
The build job uses the discovered platform version. When ci.yml tests an older release, a separate job checks the newest release and reports the result.

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

Change: Other

Suggested reviewers: muescha, angelozerr

Merge Risk: Minimal · up to 5417c

This change only adds a nightly CI job that checks the newest IntelliJ release when ci.yml is behind, and it fixes the report upload paths. It does not touch production code, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: the Latest IJ workflow now tests the newest IntelliJ IDEA release while ci.yml tests an older one. This matches the new newest-release job in IJ-latest.yml.
Description check Passed The description explains the new newest-release job, the discover/build split, the report upload path fix, and the fork test run. It matches the changeset.
Linked Issues check Passed Directly linked issue #2062 (Variant 1) requires that, while ci.yml is behind the newest IntelliJ IDEA (IU) release, the Latest IJ workflow runs ./gradlew check against the newest release, reports whe…
Out of Scope Changes check Passed All changes are in .github/workflows/IJ-latest.yml. The new newest-release job and the discover job serve #2062 directly. The discover job holds the version and behind detection that #2063 introduced.…
Full details: Linked Issues check

Explanation

Directly linked issue #2062 (Variant 1) requires that, while ci.yml is behind the newest IntelliJ IDEA (IU) release, the Latest IJ workflow runs ./gradlew check against the newest release, reports whether ci.yml can move to it, and leaves pull requests and ci.yml unchanged. In .github/workflows/IJ-latest.yml at the reviewed head, the job newest-release has needs.discover.outputs.behind == 'true' as its condition. It runs ./gradlew check -PplatformType=IU -PplatformVersion=<newest-release>. A later step emits a notice when the check succeeds, saying ci.yml can move, and a warning when it fails, and writes both to the job summary. Its test reports are uploaded as test-reports-newest-release. The discover job computes the newest release and the ci.yml release, using the same comparison that #2063 introduced. The change is confined to IJ-latest.yml, per the changes summary; ci.yml is not modified. The #2062 requirements are met by code in the reviewed head. The success path was run on a fork, per the PR description. The failure path was not run, so its behavior rests on code reading only.

Full details: Out of Scope Changes check

Explanation

All changes are in .github/workflows/IJ-latest.yml. The new newest-release job and the discover job serve #2062 directly. The discover job holds the version and behind detection that #2063 introduced. Moving it into its own job lets build and newest-release share its outputs, which is a necessary supporting refactor. The build job now reads needs.discover.outputs.version, and its test-report upload is corrected to a list of paths without the 'path:' prefix. The same workflow's report upload is the one the new job uses, so this fix supports the feature's test-report output. No change touches ci.yml, pull requests, or unrelated code. The raw summary (+91/-7) does not show other files. A full text diff could not be read, so the base-side content is taken from the PR description and changes summary.

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: e2749060-65c4-443a-a828-0f35a5d50085
Commits

Reviewing files that changed from the base of the PR and between 1b44654 and 5417c2e.

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; 0 remain after this review.

@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.34%. Comparing base (1b44654) to head (5417c2e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #2098     +/-   ##
=========================================
  Coverage   50.34%   50.34%             
=========================================
  Files         816      816             
  Lines       33785    33785             
  Branches     6962     5278   -1684     
=========================================
  Hits        17008    17008             
  Misses      14129    14129             
  Partials     2648     2648             

☔ 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

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lagergren
lagergren merged commit 27d5297 into redhat-developer:main Nov 23, 2026
9 checks passed
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.

ci: keep the IntelliJ IDEA (IU) release of ci.yml up to date

1 participant