Build passing despite errors/warnings

Đang mở
#1,112 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@a-zw đang làm issue này rồi.

Từ ngày 1/12/2026.

  • #1127 của @a-zw — đang mở

Đá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
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
11
Fork
39
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
65

Chuẩn bị môi trường

Mở trong Codespaces

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
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-score/docs-as-code

Tất cả issue của eclipse-score/docs-as-code

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.