score_mounts fails to resolve external data present in runfiles when execroot link is absent
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- build-system, tooling
Rechercherichtung
Start by reading _resolve_data_mounts in src/extensions/score_mounts/__init__.py and the fixture at src/tests/docs_bzl/scenarios/external_bundle. Build it with bazel run //src/tests/docs_bzl/scenarios/external_bundle:docs, then inspect the fixture's _mounts_manifest.json and runfiles paths. Add regression coverage for an external asset available in runfiles but missing from the reconstructed execroot path; done when the resolver succeeds in that case while generated data paths still resolve appropriately.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
A documentation build can fail while mounting an external bundle even though the reported missing source asset exists in the target's runfiles. Resolution currently depends on an additional symlink in the execution root, so the outcome can depend on local Bazel state.
Observed at commit 9bbb726f7757b61d5da02dfc74e2b1900376a5aa on Linux, Bazel 8.8.2, Python 3.12.
Observed failure
bazel run //src/tests/docs_bzl/scenarios/external_bundle:docs
Sphinx fails during config-inited:
ValueError: score_mounts: resolved data file does not exist:
<execroot>/_main/external/score_process_description+/process_extensions/_assets/ai_supported_sldc_review_example.drawio.svg
(mount_at=process/process_extensions)
At the time of failure:
- The SVG existed at
<target>.runfiles/score_process_description+/process_extensions/_assets/ai_supported_sldc_review_example.drawio.svg, and its symlink target existed in Bazel's external repository cache. - The corresponding path below
<execroot>/_main/external/did not exist.
Cause and expected behavior
_resolve_data_mounts derives the execution root by splitting the runfiles directory at /bazel-out/, then appends the manifest's execroot-relative data path. For an external source file, this assumes the external repository also has a usable link in that execution root.
External source assets should resolve through the declared runfiles rather than require this additional link. Generated data paths still need their appropriate resolution.
Reproduction and scope
The original failure occurred naturally, but the reason the execroot link was initially absent has not been established. Subsequent builds and fresh checkouts did not reproduce it automatically.
A controlled reproduction confirmed the dependency: in a disposable checkout after building the fixture, temporarily move the <execroot>/_main/external/score_process_description+ symlink aside, keeping the repository and the target's runfiles intact. Call _resolve_data_mounts with the fixture's built _mounts_manifest.json, workspace root and runfiles directory. It raises the exact SVG lookup error even though the SVG is still accessible through runfiles. Restore the symlink afterward.
This reproduced identically with the unmodified PR #1032 head and with a local PlantUML launcher fix applied. The affected resolver was also identical to the locally available upstream/main. The PlantUML launcher fix is separate: with the execroot link available, the complete fixture build fails on PlantUML before that fix and succeeds afterward.
Regression coverage should verify that an external mounted data file resolves when present in runfiles but absent at the reconstructed execroot path.
- Vorherrschende Sprache
- Python
- Sterne
- 11
- Forks
- 39
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 65
Entwicklungsumgebung
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
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus eclipse-score/docs-as-code
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
eclipse-score/docs-as-code#1031 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
waiting_for_author
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
eclipse-score/docs-as-code#1029 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
intentionally-limited
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
eclipse-score/docs-as-code#1019 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
eclipse-score/docs-as-code#920 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add project name to headline ...Evtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
eclipse-score/docs-as-code#613 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in eclipse-score/docs-as-code
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choiceEvtl. vergeben @beartester34 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
modelscope/evalscope#2330 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Distribution plot crashes when a numeric feature is constant in the train or test setEvtl. vergeben @adembilge hat das heute übernommen. Offenbug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
MAIF/shapash#847 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 10 Tagen