Build passing despite errors/warnings

Aberta
#1,112 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@a-zw já está trabalhando nisso.

Desde 1/12/2026.

  • #1127 de @a-zw — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
55/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python

Direção de pesquisa

Start by tracing how the project configures Sphinx logging and handles docutils.nodes.system_message entries added to the doctree; the issue does not name specific files or tests. Reproduce the reported score-report-bars warning with the custom needs template, then check that a build fails when an error-level system message is present. Look for other build paths that bypass Sphinx logging.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Description

It is safety-relevant that any warning and error results in a failed build. However, this is only true for warnings going through sphinx.util.logging.

A raw docutils.nodes.system_message (level 3/ERROR) appended to the doctree does not. That happens for content generated within needs templates, for example. Found as score-report-bars resulted in an error but the build passed.

Needs-templates are probably not the only blind spot.

Solution

No response

How to reproduce

We had a custom needs template which relied on score-report-pie. Then #1053 removed it (and added score-report-bars) instead. Upon updating the dependency version, it resulted in Unknown directive type "score-report-bars" but the build succeeded. The output was broken as pie diagrams were simply missing.

Classification

Minor

First Affected Release

All

Last Affected Release

9.1.1

Expected Fixed Release

before release (main)

Category
  • Safety Relevant
  • Security Relevant
Linguagem predominante
Python
Estrelas
11
Forks
39
Merge médio
1d 13h
PRs com merge (30d)
65

Preparar o ambiente

Abrir no Codespaces

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

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de eclipse-score/docs-as-code

Todas as issues de eclipse-score/docs-as-code

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.