Decide how to surface Sphinx diagnostics in GitHub Actions annotations
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 15/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, python
- Bereich
- ci-cd, documentation
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 11
- Forks
- 39
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 65
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus eclipse-score/docs-as-code
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
eclipse-score/docs-as-code#1031 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
waiting_for_author
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
eclipse-score/docs-as-code#1029 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
intentionally-limited
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
eclipse-score/docs-as-code#1019 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
eclipse-score/docs-as-code#920 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add project name to headline ...Evtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
eclipse-score/docs-as-code#613 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in eclipse-score/docs-as-code
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choiceEvtl. vergeben @beartester34 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
modelscope/evalscope#2330 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Distribution plot crashes when a numeric feature is constant in the train or test setEvtl. vergeben @adembilge hat das heute übernommen. Offenbug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
MAIF/shapash#847 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 10 Tagen