Duplicate labels cannot be detected with confidence

Offen
#1,126 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
11
Forks
39
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
65

Entwicklungsumgebung

In Codespaces öffnen

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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus eclipse-score/docs-as-code

Alle Issues in eclipse-score/docs-as-code

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.