Decide how to surface Sphinx diagnostics in GitHub Actions annotations
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 15/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- github-actions, python
- Domínio
- ci-cd, documentation
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 11
- Forks
- 39
- Merge médio
- 1d 13h
- PRs com merge (30d)
- 65
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de eclipse-score/docs-as-code
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
eclipse-score/docs-as-code#1031 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
waiting_for_author
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
eclipse-score/docs-as-code#1029 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
intentionally-limited
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
eclipse-score/docs-as-code#1019 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
eclipse-score/docs-as-code#920 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Add project name to headline ...Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertadocumentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
eclipse-score/docs-as-code#613 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de eclipse-score/docs-as-code
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choiceTalvez já em andamento @beartester34 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
modelscope/evalscope#2330 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Distribution plot crashes when a numeric feature is constant in the train or test setTalvez já em andamento @adembilge assumiu hoje. Abertabug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
MAIF/shapash#847 · 1 comentário ·
Mantenedores costumam responder em até 10 dias