Skip to content

feat(harbor): pull datasets into environments/harbor/<dataset> (M38, first slice) - #4827

Merged
adil-a merged 1 commit into
adasif/harbor-m34-multi-turnfrom
adasif/harbor-m38-pull-destination
Oct 26, 2026
Merged

adil-a merged 1 commit into
adasif/harbor-m34-multi-turnfrom
adasif/harbor-m38-pull-destination

Conversation

@adil-a

@adil-a adil-a commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Summary

First slice of RFC milestone M38 (dataset folders). Pulled Harbor datasets move from ./datasets into environments/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 to environments/harbor/ under the repository root. NEMO_GYM_DATASETS_DIR still overrides it. The working directory no longer matters.
  • .gitignore: everything under environments/harbor/<entry>/ is ignored except the entry's README.md and *.yaml, plus the .harbor registry cache. Committed entries keep working; pulled data never shows up as untracked.
  • Environment discovery stops at a folder holding a Harbor manifest.toml (written at the root of every fetched dataset), so it does not walk hundreds of task folders on every gym command and a task that ships its own manifest.yaml is never read as a catalog manifest. Covered by a test that fails without the prune.
  • Docs: the harbor server README, the TB 2.1 tutorial, the TB4 page and the Harbor tasks reference name the new location.

Not in this slice: gym dataset pull and publish, 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.
  • Gitignore checked by hand with a throwaway pulled folder, registry cache and extra files in a committed entry: only the entry's YAML showed as untracked.
  • pre-commit run --files on the changed files: all hooks pass.

🤖 Generated with Claude Code

@adil-a

adil-a commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 69ce7d9

@copy-pr-bot

copy-pr-bot Bot commented Oct 21, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:data Datasets, preparation, task formats, and materialization feature New capabilities, enhancements, or enablement work labels Oct 21, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team October 21, 2026 05:13
@adil-a
adil-a added this pull request to stack #4793 October 21, 2026 05:13
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the needs-review PR is ready for code review and waiting on a reviewer label Oct 21, 2026
@adil-a
adil-a force-pushed the adasif/harbor-m38-pull-destination branch from 69ce7d9 to 801f3e9 Compare October 21, 2026 15:48
@adil-a

adil-a commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 801f3e9

@adil-a

adil-a commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 950a99a

@adil-a
adil-a force-pushed the adasif/harbor-m38-pull-destination branch from 0e94b83 to 681b01a Compare October 21, 2026 23:13
@adil-a

adil-a commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6cb4b12

@adil-a
adil-a force-pushed the adasif/harbor-m38-pull-destination branch from 681b01a to 6cb4b12 Compare October 22, 2026 01:34
@adil-a

adil-a commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 342968c

@yuhezhang-ai yuhezhang-ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we address the writable install path, preservation of root catalog entries, and packaging exclusions before merging? I also left a nonblocking migration suggestion. These comments are scoped to this PR against #4819; I checked the subsequent stack through #4872 for fixes as well.

Comment thread nemo_gym/tasks/harbor/hub.py Resolved
Comment thread nemo_gym/registry.py Resolved
Comment thread nemo_gym/tasks/harbor/hub.py Resolved
Comment thread .gitignore Resolved
@adil-a

adil-a commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test e52ed39

@adil-a

adil-a commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 7e7bbd1

@adil-a

adil-a commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 229de45

@adil-a

adil-a commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 978e67d

@adil-a

adil-a commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 53777b3

@ffrujeri ffrujeri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread nemo_gym/registry.py Resolved
@adil-a

adil-a commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 7e417ac

@adil-a

adil-a commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6a65f78

@adil-a

adil-a commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d669b62

@adil-a

adil-a commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 97b754a

@adil-a

adil-a commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 2b80346

yuhezhang-ai
yuhezhang-ai previously approved these changes Oct 26, 2026

@yuhezhang-ai yuhezhang-ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@adil-a

adil-a commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 297a63c

@ffrujeri ffrujeri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40407936913

This branch was previously deployed

1 inactive deployment
public — 297a63cc Deployed Oct 26, 2026 by copy-pr-bot[bot] via release / finalize / notify #7377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:data Datasets, preparation, task formats, and materialization feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer QA_verified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants