TaggedTasks overrides retain stale tag memberships

Offen
#572 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@sylvesterkaczmarek arbeitet bereits daran.

Seit 13.11.2026.

  • #573 von @sylvesterkaczmarek — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
tooling

Rechercherichtung

Find the TaggedTasks implementation and tests covering add(), tagged(), and tags(); the issue does not name file paths. Start by reproducing the replacement cases described in the issue, including replacing a factory with no tags. Done means stale tag memberships and empty tags are removed while unrelated tasks and registration order remain unchanged; note that pull request #573 is already open.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

TaggedTasks(allow_overriding_keys=True) lets a newly registered factory replace an existing one by function name, but add() writes the new tags without removing the old tag entries. The tags index therefore retains stale membership and references to the replaced factory, and tagged(old_tag) incorrectly returns the replacement even when it was not registered under old_tag. Overriding with no tags leaves every old tag in tags().

Reproduced on current main with replacement factories that change, remove or share tags. Clearing the overridden name from the old tag index and pruning empty tags makes tagged() and tags() reflect the current factory registrations, while preserving unrelated tasks and their registration order.

Vorherrschende Sprache
Python
Sterne
4.7k
Forks
778
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

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 google-deepmind/dm_control

Alle Issues in google-deepmind/dm_control

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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