Skip to content

test: expect the bundled debugpy and rdbg installers to check their debugger, as since #2102 - #2138

Merged
lagergren merged 1 commit into
redhat-developer:mainfrom
lagergren:test/bundled-initialize-check-after-2102
Nov 23, 2026
Merged

lagergren merged 1 commit into
redhat-developer:mainfrom
lagergren:test/bundled-initialize-check-after-2102

Conversation

@lagergren

Copy link
Copy Markdown
Collaborator

What

main fails InstallerTaskRegistryInitializeTest.testTheBundledInstallersCheckWithInitializeOnceTheServerCommandRuns on every platform since #2102 merged. It fails on #2119 (run 45165528123), and on #2136, which changes only docs:

dap/python-debugpy:  expected [exec ${server.command}], was: no exec of ${server.command}
dap/ruby-rdbg:       expected [exec ${server.command}], was: no exec of ${server.command}

Cause

Two pull requests that each passed on their own:

Change

The installers are as #2102 meant them, so the test no longer expects an exec of ${server.command} from those two, and its comment says why. Test only.

Test

InstallerTaskRegistryInitializeTest (6 tests), and the installation and launching.templates packages with BundledTemplateCommandsTest (174 tests), pass on main with the change.

…ebugger, as since redhat-developer#2102

InstallerTaskRegistryInitializeTest of redhat-developer#2091 expected the checks of the
bundled python-debugpy and ruby-rdbg installers to be an exec of
${server.command}. redhat-developer#2102, merged after it, makes them check that the
debugger is installed (python3 -m debugpy --version, rdbg --version), so
that they install it only when it is missing. Each pull request passed
on its own, and together they fail the test on main. The installers are
as redhat-developer#2102 meant them, so the test expects them so.
@lagergren lagergren added this to the 0.30.2 milestone Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

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: f2104be9-ec4f-4fa8-940a-a745de1662aa
Commits

Reviewing files that changed from the base of the PR and between 0f8c24c and 272dd47.

Files selected for processing: 1

  • src/test/java/com/redhat/devtools/lsp4ij/installation/definition/InstallerTaskRegistryInitializeTest.java

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.95%. Comparing base (ddfe615) to head (272dd47).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2138      +/-   ##
==========================================
+ Coverage   51.80%   52.95%   +1.15%     
==========================================
  Files         825      826       +1     
  Lines       34574    34600      +26     
  Branches     7108     7111       +3     
==========================================
+ Hits        17910    18322     +412     
+ Misses      13947    13527     -420     
- Partials     2717     2751      +34     

☔ 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 merged commit 88386f1 into redhat-developer:main Nov 23, 2026
9 checks passed
lagergren added a commit that referenced this pull request Nov 24, 2026
…rflowed, and retry a refused download for a minute (#2175)

## What

Main's last CI run, for 436b029, failed on Windows before any test ran:

```
Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugins-bom/2.3.21/kotlin-gradle-plugins-bom-2.3.21.pom'.
> Received status code 429 from server: Too Many Requests
```

The job had no cache to start from: setup-gradle said "Gradle User Home cache not found. Will initialize empty.", so it
downloaded every dependency again.

**Why there was no cache:** the repository's Actions cache holds 12.2 GB, over GitHub's 10 GB per repository. Every
entry in it was saved in the 20 minutes before this PR, all on main. The biggest are `gradle-transforms` entries of 3.9,
3.3 and 0.9 GB. They are the IDEs that the IntelliJ Platform Gradle plugin extracts as Gradle artifact transforms, one
per job and platform version. Each push to main saves them again for the 5 test jobs, the plugin build and the
verifier. GitHub then evicts the oldest entries, the other jobs' downloads among them, and the next run of those jobs
fetches everything from Maven Central and JetBrains again.

## Change

- **The cache:** every `setup-gradle` step leaves `caches/transforms-4` and `caches/*/transforms` out of the Actions
  cache, with `gradle-home-cache-excludes`. setup-gradle deletes them before it saves. These are ci.yml, buildZip.yml,
  IJ.yml, IJ-latest.yml (3 steps), nightly.yml and release.yml.
  - The downloads themselves stay cached (`gradle-dependencies`, now 1.3 to 2 GB an entry), so the entries fit in
    10 GB, and Gradle extracts an IDE again from its cached download without a network access.
  - Locally the IDEs are in `caches/9.9.2/transforms/*/transformed/extracted`.
- **Retries:** Gradle 9.9.2 already retries a download refused with a server error or a 429
  (`NetworkingIssueVerifier`), but only 3 times, 1 and 2 seconds apart. `gradle.properties` raises that to 6 times, 2,
  4, 8, 16 and 32 seconds apart, with `systemProp.org.gradle.internal.network.retry.max.attempts` and `.initial.backOff`,
  which `NetworkOperationBackOffAndRetry` reads. A local build prints them back as 6 and 2000 from an init script.

## The other CI failures this week

I went through the 22 failed "Java CI with Gradle" runs since 2026-11-17:
- **6 were a real break**, fixed by #2138: `InstallerTaskRegistryInitializeTest` failed on every job after #2102.
- **Most of the rest were flaky tests, since fixed:**
  - `LanguageServerManagerInstancesTest` by #2120;
  - `CancelRequestAfterShutdownTest` by #2162;
  - `SocketLanguageServerTest` by #2064;
  - `SelectedEditorConnectionTest` and `FileDocumentMoveTest` by the fixes of #2099 and #2095.
- **Seen once and not fixed:** `WatchedFilesTest` (Windows, 2026-11-22) and `LanguageServerInstancesTest` (2026.3,
  2026-11-18).
- **Since 2026-11-23 14:00 UTC:** 36 runs passed, and the only failure was this 429.

## Check

A pull request reads the cache but doesn't write it, so this PR's own CI can't show the saving. After the merge, the
next run on main should leave the repository's cache under 10 GB, and the run after it should restore each job's entry.
I'll check both.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant