TaggedTasks overrides retain stale tag memberships

未關閉
#572 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

@sylvesterkaczmarek 已經在處理了。

開始於 2026年11月13日。

  • #573 來自 @sylvesterkaczmarek —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
python
領域
tooling

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Python
星號
4.7k
分支
778
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

google-deepmind/dm_control 的其他 Issue

查看 google-deepmind/dm_control 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。