Skip to content

build: exclude pulled Harbor datasets from package discovery - #5056

Merged
marcromeyn merged 1 commit into
mainfrom
adasif/exclude-pulled-harbor-datasets
Oct 26, 2026
Merged

marcromeyn merged 1 commit into
mainfrom
adasif/exclude-pulled-harbor-datasets

Conversation

@adil-a

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

Copy link
Copy Markdown
Contributor

What does this PR do?

One exclude entry in [tool.setuptools.packages.find]: environments.harbor.*.

gym dataset pull (Harbor stack, #4827 and #4872) lands Harbor datasets under environments/harbor/<entry>/, gitignored. Package discovery in this repo is namespace-based, so a wheel built from a checkout that holds a pulled dataset picked up the pulled tasks' Python files (tests/test_outputs.py, a dataset-level task_data.py) as packages of the distribution. With the exclude the pulled trees are never discovered, while environments.harbor itself stays a package so the committed entry files (README, dataset.toml, YAML) ship as its package data exactly as today.

This is the fix for Yu He's thread on #4827 ("Exclude fetched task code from package discovery"); it lives in pyproject.toml, which the automation team owns, hence a separate PR.

Validation

Wheel built from a checkout with a planted pulled task under environments/harbor/terminal_bench_4/:

files under environments/harbor/ in the wheel
without the exclude terminal_bench_2_1/README.md, terminal_bench_4/README.md, terminal_bench_4/harbor_sandbox.yaml, terminal_bench_4/task_data.py, terminal_bench_4/pulled_task/tests/test_outputs.py
with the exclude terminal_bench_2_1/README.md, terminal_bench_4/README.md, terminal_bench_4/harbor_sandbox.yaml

find_namespace_packages with the repo's include and exclude lists: environments and environments.harbor kept, nothing under environments.harbor.*.

No runtime change; only what a wheel can contain.

🤖 Generated with Claude Code

`gym dataset pull` lands Harbor datasets under environments/harbor/<entry>/
(gitignored on the Harbor stack, #4827/#4872). `[tool.setuptools.packages.find]`
discovers namespace packages, so a wheel built from a checkout holding a pulled
dataset picked up the pulled tasks' Python (tests/test_outputs.py, a
dataset-level task_data.py) as packages of this distribution.

Exclude `environments.harbor.*`: the pulled trees are never discovered, while
`environments.harbor` itself stays a package so the committed entry files
(README, dataset.toml, YAML) still ship as its package data, as before.

Checked by building a wheel from a checkout with a planted pulled task:
without the exclude the wheel carried
environments/harbor/terminal_bench_4/task_data.py and
environments/harbor/terminal_bench_4/pulled_task/tests/test_outputs.py; with it
only the three committed files ship (two READMEs and harbor_sandbox.yaml).

Found by Yu He's review of #4827.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Adil Asif <[email protected]>
@adil-a
adil-a requested a review from a team as a code owner October 24, 2026 22:19
@copy-pr-bot

copy-pr-bot Bot commented Oct 24, 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.

@adil-a

adil-a commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test bfe0d81

@nemo-automation-bot
nemo-automation-bot Bot requested review from a team October 24, 2026 22:20
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:build Packaging, dependencies, containers, and releases bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer labels Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@marcromeyn marcromeyn 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. Excluding environments.harbor.* keeps pulled task Python out of the wheel while the committed entry files still ship as environments.harbor package data.

@marcromeyn
marcromeyn enabled auto-merge October 26, 2026 09:55
@marcromeyn
marcromeyn added this pull request to the merge queue Oct 26, 2026
@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/40310450844

@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/40318064299

@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/40325718618

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Oct 26, 2026
@marcromeyn
marcromeyn added this pull request to the merge queue Oct 26, 2026
@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/40354879026

Merged via the queue into main with commit b735b8a Oct 26, 2026
56 of 59 checks passed
@marcromeyn
marcromeyn deleted the adasif/exclude-pulled-harbor-datasets branch October 26, 2026 16:26

This branch was previously deployed

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

Labels

area:build Packaging, dependencies, containers, and releases bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants