Skip to content

fix(harbor): keep generated dataset paths checkout-relative - #5404

Open
deavgprime wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
deavgprime:fix/harbor-relative-dataset-paths
Open

deavgprime wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
deavgprime:fix/harbor-relative-dataset-paths

Conversation

@deavgprime

@deavgprime deavgprime commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Preparing the same Harbor dataset from a different checkout records a different absolute jsonl_fpath. Collating into the previous output then fails with conflicting aggregate metrics even though the tasks are unchanged.

Store paths relative to the working directory when the rows are inside it. Keep absolute paths for external rows, including symlinks that resolve outside the checkout. The metrics conflict checks remain in place.

Fixes #4979.

Validation

  • 400 tests pass across test_harbor_dataset_paths.py, test_harbor_tasks.py, test_harbor_metrics_sidecars.py, and data/test_dataset_preparation.py.
  • Seven new cases cover relative and absolute inputs, external paths, symlink targets, and preparation plus collation from two checkout directories into one output. Three cases fail on unchanged main at 402020a8; four controls pass.
  • The repeated-checkout test verifies identical collated rows and metrics. A changed-task control still raises a metrics conflict and preserves the existing output.
  • pre-commit run --all-files: passes. The private guardword catalog is unavailable, so that scan is skipped.
  • git diff --check: passes.

Model rollout: N/A. This changes dataset path metadata, not model requests, task contents, verifier behavior, or reward calculation. Tests use local synthetic Harbor task folders; no sandbox or GPU run was performed. The full core and server suites were not run locally.

Compatibility

Existing metrics containing the old absolute path can still conflict on the first run after this change. This PR does not silently overwrite or migrate those records. Paths outside the working directory remain absolute.

Proposed labels: bug, area:data, needs-review.

Copilot AI balanced review requested due to automatic review settings October 31, 2026 05:51
@copy-pr-bot

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

Copilot 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Oct 31, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added bug Something isn't working area:data Datasets, preparation, task formats, and materialization needs-review PR is ready for code review and waiting on a reviewer waiting-on-maintainers Waiting on maintainers to respond labels Nov 1, 2026

This branch has not been deployed

No deployments
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 bug Something isn't working community-request Issue reported or requested by someone from the community needs-review PR is ready for code review and waiting on a reviewer waiting-on-maintainers Waiting on maintainers to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harbor targets store an absolute jsonl_fpath inside the checkout, so preparing again from another checkout fails

3 participants