Need a mechanism to detect, repair, or purge extension versions broken by async-publish failures
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 28/100
Hướng nghiên cứu
Start from the doPublish flow in PublishExtensionVersionHandler and the size backfill in FileResourceSizeJobRequestHandler / FileResourceSizeMigration, which leave size unset on FileNotFoundInStorageException. Read FixMissingFilesJobRequestHandler (FixMissingFilesMigration, V1_55) and AdminService.purgeExtension / purgeExtensionAndReferencingExtensions. Done means a decided detect/repair/purge path for versions with a confirmed-missing download versus missing secondaries only, after the backfill has drained.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A version of bugs in the async publish pipeline (storage upload failing outright - #1378; a package large enough to exhaust the JVM heap during signing/checksumming - #1450) leave extension_version committed and permanently active = false, sometimes with some or all of its file_resource rows never persisted (see the doPublish flow in PublishExtensionVersionHandler: files are stored, then persisted, in that order, so a failure mid-way leaves a partial or empty set). #2171 made this diagnosable going forward - it records why an attempt failed (extension_version.publish_error) and fixed a retry that #1529 had silently disabled - but it does nothing for versions that are already stuck from before that fix, and it does not repair or remove anything.
We now have a way to actually find them. v1.2.0 (#1777, via #2089/#2094/#2095) added file_resource.size and a FileResourceSizeMigration backfill that does a metadata-only lookup (e.g. an S3 HEAD) against storage for every resource. Critically, when the backing object is confirmed absent (FileNotFoundInStorageException), the job does not fail - it logs a warning and leaves that resource's size unset, then moves on (FileResourceSizeJobRequestHandler). Once this backfill has run to completion across the registry, file_resource.size IS NULL stops being just "not measured yet" and becomes a reliable, queryable signal that the DB row exists but the object it points to is actually gone from storage.
There is already a partial repair path: FixMissingFilesJobRequestHandler (FixMissingFilesMigration, seeded once in V1_55) re-derives missing secondary files (readme, license, icon, changelog, manifest, vsixmanifest) by downloading the main package and re-extracting them - but it explicitly bails out ("No vsix package available") when the download file itself is missing or confirmed empty. That is exactly the failure mode #1378/#1450 produce: nothing to rebuild from.
What's needed
A mechanism to actually clean up the fallout, now that it can be found:
- Detect extension versions with a confirmed-missing
downloadresource (unrepairable) once the size backfill has completed for them - distinguishing "not backfilled yet" from "confirmed missing" matters here, sincesize IS NULLalone conflates the two until the migration has fully drained. - Repair what can be repaired: confirm versions with a present
downloadbut missing secondary files actually get picked up (FixMissingFilesMigrationwas seeded once for versions existing at V1_55's release - it's not clear anything reruns it for versions that broke afterwards, up to and including right now, before #2171). - Decide and implement what happens to versions with no
downloadat all and therefore nothing to repair: purge them (AdminService.purgeExtension/purgeExtensionAndReferencingExtensionsalready exists as the underlying mechanism) automatically, or surface them for admin review first. This needs a decision, not just code.
Not attempting to design the mechanism here - filing this to track that it's needed and capture the pieces already in place to build it from.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Java
- Star
- 2.1k
- Fork
- 362
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 44
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-openvsx/openvsx
-
`ovsx verify` fails for a version older than the 100 newest of an extensionCó thể đã có người làm @trivikr đã nhận hôm nay. Đang mởcli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 81/100
eclipse-openvsx/openvsx#2482 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
eclipse-openvsx/openvsx#2469 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
eclipse-openvsx/openvsx#2423 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
eclipse-openvsx/openvsx#2476 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
eclipse-openvsx/openvsx#2439 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-openvsx/openvsx
Issue tương tự
-
32x and 48x Item Model IssuesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Magic-team-jvav/confluence#281 ·
-
CVE-2026-139999 react-routerĐang mởarea/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespaceCó thể đã có người làm @Beehtrix đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cimug-org/CIMTool#427 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
userRaised
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-openj9/openj9#25285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrativeCó thể đã có người làm @xmhorsehead đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hapifhir/hapi-fhir#8952 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày