Duplicate labels cannot be detected with confidence

Đang mở
#1,126 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/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 reproducing the intermittent duplicate-label warning in the standalone Sphinx sandbox described in the issue, then inspect Sphinx's parallel document chunking and merge_domaindata behavior. The issue does not name repository files or tests, so first locate the docs build configuration and its invocation. Done means duplicate labels are detected consistently across worker chunks and the docs build reports the duplicate reliably.

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

Mô tả

The docs build reads pages in parallel (Sphinx 9.1.1, one worker per CPU). In the Sphinx source I checked:

  • Documents are split into contiguous chunks; chunk size depends on the total document count and the CPU count (make_chunks).
  • The “duplicate label” warning is only raised when a worker already has the other label in memory.
  • When chunks are merged back (merge_domaindata), duplicates are silently overwritten. The code even says # XXX duplicates?.
  • Workers are forked lazily as earlier ones finish, so whether one sees a label from another chunk depends on chunk boundaries and timing.

The above leads to random detection of duplicated labels, exmaple here:
https://github.com/eclipse-score/reference_integration/actions/runs/46622533310/job/142555715545?pr=534

The change did not change the failing modules, which was merged green before, but now it catches an error. The issue can be easily reproduced in the sandbox small standalone Sphinx project with AI agent help

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.