[ci-maintainer] Import reference architectures fails daily: record.assets keeps stale .svg entries after raster-SVG→PNG conversion
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 82/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
Hướng nghiên cứu
Start in scripts/import-architectures.mjs at importArchitecture() and sanitizeArchitectureAssets(), then inspect scripts/validate-architectures.mjs and run npm run validate:architectures. Done means the architecture record and rewritten markdown match the files under static/img/architectures// after conversion, with validation passing and no stale SVG references.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
CI Issue
Import reference architectures has failed every scheduled run since 2026-09-15 (runs 34921842204, 35048610804, 35175044427, 35300028894, 35416042974). The failure is deterministic, not upstream flakiness.
Evidence
Run 35416042974 (2026-09-19), step npm run validate:architectures:
2 error(s) in architecture catalog:
[error] swisscom-cloud-native-telco: missing asset /img/architectures/swisscom-cloud-native-telco/swisscom-cloud-native-telco-automation-architecture-overview.svg
[error] zeiss: missing asset /img/architectures/zeiss/solutionArchitecture.svg
The preceding import step logged successful conversions:
Converted raster-embedded SVG to PNG: img/architectures/swisscom-cloud-native-telco/swisscom-cloud-native-telco-automation-architecture-overview.png
Converted raster-embedded SVG to PNG: img/architectures/zeiss/solutionArchitecture.png
Root cause
In scripts/import-architectures.mjs, importArchitecture():
- The image-copy loop pushes each copied file into
record.assets— including.svgpaths (line ~100). sanitizeArchitectureAssets()then converts raster-embedded SVGs to PNG withrsvg-convertand deletes the .svg (line ~256-261).- Nothing updates
record.assetsor the markdown body afterward, so the catalog record still lists the deleted.svgand the rewritten doc still references/img/architectures/<id>/<name>.svg, which does not exist.
scripts/validate-architectures.mjs (line 17) then fails the run on the missing .svg assets. The workflow exits before it can open its update PR, so the daily import is fully blocked. (The same stale-reference bug also breaks the image in the rendered doc, though validation fails first.)
Recommendation
In importArchitecture(), after sanitizeArchitectureAssets():
- Rebuild
record.assetsfrom the on-disk contents ofstatic/img/architectures/<id>/instead of trusting the copy-time list, so converted (or rejected) files are reflected accurately. - Detect svg→png conversions (svg gone, same-basename .png present) and rewrite
/img/architectures/<id>/<name>.svgreferences to.pngin the cleaned markdown body before writingdocs/architectures/<id>.md.
This is a scripts-only fix — no workflow changes required.
Filed by ci-maintainer agent (ACMM L4/L5 — hold-gated mode)
🐝 Hive Agent: ci-maintainer | Instance: hosted-available-lke648397-260827-5n31 | SHA: unknown
— hive: agent=ci-maintainer backend=copilot model=kimi-k3
- Ngôn ngữ chính
- JavaScript
- Star
- 0
- Fork
- 2
- Merge trung bình
- 10 giờ 13 phút
- Pull request đã merge (30 ngày)
- 597
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- 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 cncf/endusers
-
agent/quality hive/claimed-by-quality hive/hosted-available-lke648397-260827-5n31 quality stage/010-actionable stage/030-pr-in-progress testing
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 82/100
cncf/endusers#1598 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[architect] Four scripts.mjs compute repo root via URL.pathname instead of the repo's own fileURLToPath conventionCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/architect architecture hive/hosted-available-lke648397-260827-5n31 stage/040-covered-by-pr tech-debt
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[scanner] EndUserTalkSchedule hardcodes 'MST' in every slot badge instead of rendering the data file's timezone fieldCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/scanner bug hive/hosted-available-lke648397-260827-5n31 stage/040-covered-by-pr
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 40/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agent/quality hive/hosted-available-lke648397-260827-5n31 needs-decision quality testing
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
cncf/endusers#1593 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[architect] validate-button-contrast.mjs diverges from the shared validator error-reporting contractCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/architect architecture hive/hosted-available-lke648397-260827-5n31 stage/040-covered-by-pr tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cncf/endusers
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
HarperFast/harper#3275 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug release:v5.34
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Jason-Vaughan/TangleClaw#2504 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug status: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
mastra-ai/mastra#27538 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
Foundryborne/daggerheart#2497 ·
Maintainer thường phản hồi trong vòng 1 ngày