Decide how to surface Sphinx diagnostics in GitHub Actions annotations
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 15/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, python
- 領域
- ci-cd, documentation
研究方向
This is a design decision, not a ready change. Start with the options table and the cli.py entry point, then check how GitHub CI detection reaches both bazel run doc builds and sandboxed Needs inventory builds. Done means one approach is chosen, its ownership and covered execution paths are recorded, and the decision is agreed in the thread before any implementation.
由索引模型根據 Issue 內容生成。
描述
Why
Documentation failures should surface their actual Sphinx/Needs diagnostics in GitHub Actions annotations, including source location when possible. Currently, a failed downstream job may expose only Process completed with exit code 1. as an annotation.
Example: https://github.com/eclipse-score/docs-as-code/actions/runs/41424127388/job/125206492378?pr=1008
The underlying diagnostics in that job are Needs link-condition warnings in three score_platform verification reports. The pytest failure and Bazel action failure only report the resulting unsuccessful build.
Decision to make
Where should the Sphinx-to-GitHub integration live? Keep general Bazel diagnostic handling separate: it needs a solution that also serves non-documentation builds.
| Option | Benefit | Cost / constraint |
|---|---|---|
| Register a Sphinx problem matcher directly in workflows | Leaves Sphinx output unchanged; no CLI integration | Registration and matcher availability must be added and maintained across multiple workflows (docs.yml, downstream tests, integration tests, etc.); consumers using the shared workflow do not need per-repository changes |
| Provide a shared setup action containing the matcher | Central definition and registration logic | Introduces another action and still requires workflow adoption |
Register a bundled matcher from cli.py |
Automatic adoption through the docs-as-code version; unchanged Sphinx diagnostics | The runner must be able to read the JSON path emitted by the CLI, including sandboxed Needs builds; repeated registration needs consideration |
| Add a Sphinx logging handler emitting GitHub workflow commands | Uses structured diagnostics; no matcher file or extra workflow step | Adds a GitHub-specific adapter; requires escaping and source-path handling |
| Parse build output in a CI wrapper and emit annotations | Keeps GitHub integration outside the documentation runtime | Requires workflow adoption and text parsing; must preserve streaming output and exit status |
Preference expressed so far: avoid introducing an extra action. No implementation decision yet. The logging-handler approach is a candidate for the smallest integration, subject to checking the execution paths below.
Checks before deciding
- Cover both
bazel rundocumentation builds and sandboxed Needs inventory builds, including downstream tests. Check how GitHub CI detection reaches each process. - Preserve normal console diagnostics and build exit status.
- For sources in the checked-out repository, resolve paths to useful file/line annotations. For external sources, retain the original source path in the message when a checkout-relative link is unavailable.
- Avoid duplicate annotations and correctly escape any emitted workflow commands.
- Decide how warnings treated as errors should appear, so the reason for a failed build remains visible.
Outcome: choose one approach and record its ownership and the execution paths it covers. Implement general Bazel annotations separately.
- 主要語言
- Python
- 星號
- 11
- 分支
- 39
- 平均合併
- 1 天 13 小時
- 30 天內合併 PR
- 65
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
eclipse-score/docs-as-code 的其他 Issue
-
bug
難度 1/5 1 小時以內 新手友好度 82/100
eclipse-score/docs-as-code#1031 · 4 則留言 ·
維護者通常 1 天內回覆
-
waiting_for_author
難度 2/5 1-3 小時 新手友好度 78/100
eclipse-score/docs-as-code#1029 · 1 則留言 ·
維護者通常 1 天內回覆
-
intentionally-limited
難度 1/5 1 小時以內 新手友好度 88/100
eclipse-score/docs-as-code#1019 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
eclipse-score/docs-as-code#920 · 2 則留言 ·
維護者通常 1 天內回覆
-
Add project name to headline ...可能重新可做 關聯的 PR 已關閉且未合併。 未關閉documentation
難度 2/5 1-3 小時 新手友好度 68/100
eclipse-score/docs-as-code#613 · 1 則留言 ·
維護者通常 1 天內回覆
查看 eclipse-score/docs-as-code 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choice可能已有人在做 @beartester34 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
modelscope/evalscope#2330 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
Distribution plot crashes when a numeric feature is constant in the train or test set可能已有人在做 @adembilge 今天認領。 未關閉bug good first issue
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 10 天內回覆