Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions backend/tests/repository_pins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,17 @@ fn managed_dependencies_pin_all_six_platforms_and_bind_only_the_service_tool() {
assert_eq!(dependency["version"], pins["version"]);
assert_eq!(artifact["url"], pins["archiveURL"]);
assert_eq!(artifact["sha256"], pins["archiveSHA256"]);
let mirrors = artifact["mirrors"].as_array().expect("jdtls mirrors array");
assert!(!mirrors.is_empty(), "jdtls mirrors must not be empty");
for mirror in mirrors {
assert!(
mirror
.as_str()
.is_some_and(|value| value.starts_with("https://")),
"jdtls mirror must be HTTPS: {mirror}"
);
}
assert_eq!(artifact["mirrors"], pins["archiveMirrors"]);
}
}
assert_eq!(
Expand Down
18 changes: 18 additions & 0 deletions io.github.lithe-idea.java-support/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
"os": "linux",
"arch": "arm64",
"url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz",
"mirrors": [
"https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz"
],
Comment on lines +109 to +111

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 Missing mirror blocks JDT LS setup

With Eclipse ranked first, downloadArchive cancels a working transfer when its speed check measures below 64 KiB/s. If CNB then returns 404, the host never returns to Eclipse, so first-time JDT LS setup fails.

Learn more

When JDT LS is missing, the runtime preparation flow asks the desktop host to download it. In the pinned desktop host, rankMirrors puts unsuccessful HEAD probes last but retains them. downloadArchive visits each URL once and enables the speed cutoff whenever another URL remains, even when that URL failed its probe. With only the Eclipse URL, the speed cutoff does not apply. The configured CNB URL currently returns HTTP 404 because the release tag does not exist yet.

Example: On a clean installation with a compatible JDK, Eclipse answers HEAD and serves the JDT LS archive at a steady 48 KiB/s. CNB answers HEAD and GET with 404. The host cancels the progressing Eclipse download, tries CNB, and fails setup; without the mirror, it lets Eclipse finish.

Recommended fix: Make the host retry sources canceled only for low throughput without the speed cutoff after all other sources fail, while preserving parent cancellation and SHA-256 verification. Gate the mirror rollout on that behavior and a successful anonymous download of the pinned CNB asset.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

"sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64",
"archive": "tar.gz",
"home": ""
Expand All @@ -114,6 +117,9 @@
"os": "linux",
"arch": "x86_64",
"url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz",
"mirrors": [
"https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz"
],
"sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64",
"archive": "tar.gz",
"home": ""
Expand All @@ -122,6 +128,9 @@
"os": "macos",
"arch": "arm64",
"url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz",
"mirrors": [
"https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz"
],
"sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64",
"archive": "tar.gz",
"home": ""
Expand All @@ -130,6 +139,9 @@
"os": "macos",
"arch": "x86_64",
"url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz",
"mirrors": [
"https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz"
],
"sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64",
"archive": "tar.gz",
"home": ""
Expand All @@ -138,6 +150,9 @@
"os": "windows",
"arch": "arm64",
"url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz",
"mirrors": [
"https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz"
],
"sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64",
"archive": "tar.gz",
"home": ""
Expand All @@ -146,6 +161,9 @@
"os": "windows",
"arch": "x86_64",
"url": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz",
"mirrors": [
"https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz"
],
"sha256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64",
"archive": "tar.gz",
"home": ""
Expand Down
3 changes: 3 additions & 0 deletions third_party/jdtls/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"version": "1.61.0",
"archiveURL": "https://download.eclipse.org/jdtls/milestones/1.61.0/jdt-language-server-1.61.0-202609031315.tar.gz",
"archiveMirrors": [
"https://cnb.cool/lithe-idea/Lithe-store/-/releases/download/managed-runtimes/jdt-language-server-1.61.0-202609031315.tar.gz"
],
"archiveSHA256": "338e7e73d61836651ba2453919a0d34fa763eb4e7c03342092309bffb8934c64",
"licenseURL": "https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt",
"licenseSHA256": "0becf16567beb77fa252b7664631dd177c8f9a1889e48995b45379c7130e5303",
Expand Down
Loading