Repository navigation
feat(harbor): pull datasets into environments/harbor/<dataset> (M38, first slice) - #4827
Conversation
|
/ok to test 69ce7d9 |
69ce7d9 to
801f3e9
Compare
|
/ok to test 801f3e9 |
801f3e9 to
950a99a
Compare
|
/ok to test 950a99a |
950a99a to
0a6cad6
Compare
0e94b83 to
681b01a
Compare
|
/ok to test 6cb4b12 |
681b01a to
6cb4b12
Compare
|
/ok to test 342968c |
|
/ok to test e52ed39 |
|
/ok to test 7e7bbd1 |
|
/ok to test 229de45 |
|
/ok to test 978e67d |
|
/ok to test 53777b3 |
ffrujeri
left a comment
There was a problem hiding this comment.
Thanks for the quick turnaround. The writable default, the root-manifest fix and the migration note look good, and the subprocess package-install test is a nice regression guard.
On the still-unresolved packaging thread: could a wheel built from a developer checkout that has pulled a dataset end up shipping that dataset's tests/test_outputs.py or task_data.py, given environments.* in packages.find? The exclude = ["environments.harbor.*"] you proposed isn't in the stack yet. Would it make sense to land it with this PR, or link a tracking issue on that thread before it's resolved?
I also left a question about the discovery walk entering hidden staging folders, and a small docs consistency question.
|
/ok to test 7e417ac |
|
/ok to test 6a65f78 |
|
/ok to test d669b62 |
|
/ok to test 97b754a |
|
/ok to test 2b80346 |
yuhezhang-ai
left a comment
There was a problem hiding this comment.
Thanks for the fixes. The writable default, preservation of the dataset root's catalog entry, hidden-directory pruning, and migration guidance check out.
Approving with #5056's verified packaging fix treated as a satisfied merge dependency, given that it is in the merge queue.
For the combined stack, please complete the installed-entry destination fallback in #4872 before merging: without NEMO_GYM_DATASETS_DIR, both terminal_bench_4 and its mapped Harbor reference still select the installed entry folder. That follow-up can stay in #4872.
…first slice) Fetched Harbor datasets now land in environments/harbor/<dataset>/ of the Gym checkout instead of ./datasets, next to the committed per-dataset entries. NEMO_GYM_DATASETS_DIR still overrides the root. The gitignore keeps only a committed entry's README and YAML files; everything a fetch writes is ignored, as is the registry cache. Environment discovery no longer descends into a pulled dataset: it stops at the Harbor manifest.toml a fetch writes at the dataset root, so a task that ships its own manifest.yaml is never read as a catalog entry and the walk does not visit every task folder. Docs and the TB 2.1 and TB4 pages name the new location. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Adil Asif <[email protected]>
|
/ok to test 297a63c |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40407936913 |
Summary
First slice of RFC milestone M38 (dataset folders). Pulled Harbor datasets move from
./datasetsintoenvironments/harbor/<dataset>/of the Gym checkout, next to the committed per-dataset entries (environments/harbor/terminal_bench_2_1,environments/harbor/terminal_bench_4). Decided 21 Oct 2026: flat layout, one folder per fetched dataset, same contents as before (task folders,dataset.toml,manifest.toml,compose-images.json).datasets_dir()defaults toenvironments/harbor/under the repository root.NEMO_GYM_DATASETS_DIRstill overrides it. The working directory no longer matters..gitignore: everything underenvironments/harbor/<entry>/is ignored except the entry'sREADME.mdand*.yaml, plus the.harborregistry cache. Committed entries keep working; pulled data never shows up as untracked.manifest.toml(written at the root of every fetched dataset), so it does not walk hundreds of task folders on everygymcommand and a task that ships its ownmanifest.yamlis never read as a catalog manifest. Covered by a test that fails without the prune.Not in this slice:
gym dataset pullandpublish, and any mapping between a hub dataset name (terminal-bench-4.0.0) and a committed entry name (terminal_bench_4). Those stay as two sibling folders for now.Stacked on #4819 (M34).
Test plan
tests/unit_tests/test_registry.py(24 passed, one new),test_harbor_tasks.py(270 passed, one new),test_harbor_package_store.py,test_harbor_manifest.py,test_cli_main.py,test_harbor_validation.py(372 passed).environment_servers/harbor/tests: 380 passed, 2 deselected.pre-commit run --fileson the changed files: all hooks pass.🤖 Generated with Claude Code