Dependabot uv job times out and tries to update workspace members
Maintainer antworten meist innerhalb von 3 Tagen
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
- github-actions, python, yaml
- Bereich
- build-system, devops
Rechercherichtung
Start by reading .github/dependabot.yml and the root pyproject.toml workspace configuration; the linked Dependabot run shows the failure and timeout. Compare the two proposed approaches: renaming internal distributions or generating and validating the ignore list. Done means Dependabot skips workspace members and the weekly uv update completes without timing out.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
The weekly Dependabot uv update for / has been timing out or failing since early November (e.g. https://github.com/mozilla/bugbug/network/updates/1694419512).
Two causes:
- Dependabot treats uv workspace members as PyPI packages.
testrail-clientexists on PyPI (0.1.2), so Dependabot tries to "update" our 0.1.0 workspace member and fails withdependency_file_not_resolvable. Same foragent-tools. Dependabot does not honor{ workspace = true }sources, even when declared in the rootpyproject.toml. - The job is right at the ~55 min timeout. Each check re-resolves the whole workspace (~16s each) and a run does 200-250 checks; ~30 of those are on workspace members, which we never want updated.
Ignoring the workspace members in .github/dependabot.yml fixes both, but an explicit list of names would have to be kept in sync manually as members are added. Options to avoid that:
Option 1: rename internal packages under a common prefix
Most members are already hackbot-*. Rename the remaining ones (agent-tools, autowebcompat-tools, bugzilla-client, lando-client, phabricator-client, phabricator-proxy, testrail-client) to e.g. hackbot-agent-tools, hackbot-testrail-client, ... so the ignore block becomes a fixed pair of wildcards:
ignore:
- dependency-name: "hackbot-*"
- dependency-name: "bugbug*"
Only distribution names change (pyproject.toml files and uv.lock); import names like testrail_client stay the same. It also removes a dependency-confusion risk: anything installing these outside the workspace (Docker builds, plain pip install) could currently pull an unrelated package from PyPI.
Option 2: generate the ignore list automatically
Add a pre-commit hook that reads the workspace member names and rewrites (or validates) the ignore block in dependabot.yml. No renames needed, but it adds a script to maintain and the PyPI name collisions remain.
- Vorherrschende Sprache
- Python
- Sterne
- 579
- Forks
- 369
- Ø Merge
- 3 T. 5 Std.
- Gemergte PRs (30 T.)
- 139
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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 mozilla/bugbug
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Replace the direct useag of `recorder.record()` in agent with the tool usageEvtl. vergeben @SanyaKor hat das vor 11 Tagen übernommen. Offenhackbot
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 3 Tagen
-
hackbot
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
Maintainer antworten meist innerhalb von 3 Tagen
-
hackbot
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Fix ASYNC109 Ruff violationsEvtl. vergeben @reginaldalfret hat das vor 44 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
mozilla/bugbug#6987 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
samuelclay/NewsBlur#2214 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
MODEL_NOT_FOUND gives no suggestion for a model listed only as model:profileEvtl. vergeben @ShaiShmuel hat das heute übernommen. Offenenhancement rust
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
superlinked/sie#985 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
readthedocs/readthedocs-builder#73 ·
Maintainer antworten meist innerhalb von 1 Tag