Repository navigation
fix(harbor): keep generated dataset paths checkout-relative - #5404
Open
deavgprime wants to merge 2 commits into
Open
deavgprime wants to merge 2 commits into
deavgprime wants to merge 2 commits into
Conversation
Signed-off-by: devgprime <[email protected]>
Signed-off-by: deavgprime <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
test_harbor_dataset_paths.py,test_harbor_tasks.py,test_harbor_metrics_sidecars.py, anddata/test_dataset_preparation.py.402020a8; four controls pass.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.