Repository navigation
Conversation
Signed-off-by: yaoyu-33 <[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.
Summary
environments/configuration, preparation entrypoints, source-row shape, and representative simple/stateful/external-harness compositions for MB-1553calendar,calendar_v2, andcode_genpreparation paths by copying downloads into the environment data directory instead of moving cache filescode_gen's differing remote/local validation filenamesAudit scope and findings
Representative review covered:
environments/code_genenvironments/calendar_v2environments/aviary_bixbenchandenvironments/codex_mathSystematic checks covered all 47 YAML files, all 49
prepare.pyentrypoints, and 226 rows across the 45 committed source JSONL files underenvironments/:entrypointreferences: all referenced files existresponses_create_params.inputenvironments/compiles under the available Python 3.12.10 fallbackThe actionable uncovered defect was three uses of
Path.rename()on the path returned byhf_hub_download(). That path belongs to Hugging Face's shared cache. Moving it consumes the cache artifact, and a cache located on another filesystem raisesEXDEV.shutil.copyfile()preserves the source/cache contract and retains the existing destination filenames and CLI behavior.Related in-flight work
This PR intentionally avoids duplicating two broad existing efforts:
agent_refremoval and dataset ownership moves throughoutenvironments/.add-benchmarkskill to the current manifest-backed onboarding flow and adds semantic consistency tests. The current main-branch skill and the docs(skills): align repository skills with current contracts #3123 version both passskill-creatorstructural validation; semantic review confirms docs(skills): align repository skills with current contracts #3123 is the needed contract update.Neither PR covers the Hugging Face cache-consumption bug fixed here.
Validation
PYTHONPATH=. /home/yuya/mypython/bin/python -m pytest tests/unit_tests/test_environment_prepare.py tests/unit_tests/test_environment_tombstones.py -q— 9 passedpre-commit run --files environments/calendar/prepare.py environments/calendar_v2/prepare.py environments/code_gen/prepare.py tests/unit_tests/test_environment_prepare.py— passed/home/yuya/mypython/bin/python -m compileall -q environments— passedruff checkandruff format --checkon all changed files — passedskill-creator/scripts/quick_validate.pyagainst both main's and docs(skills): align repository skills with current contracts #3123'sadd-benchmarkskill — passed structurallyAttempted broader registry tests could not collect because the fallback environment does not contain Ray. The repository pins Python 3.13.14, which is unavailable on this machine (
uvcannot locate it); the available Python 3.12.10 fallback was used for the focused checks above. CI remains authoritative for the supported Python version and full suite.Rollouts
No model rollout was run: this change affects only dataset preparation before rollout, and a model rollout over committed examples does not execute the modified download path. The modified external call/result path was instead exercised directly against two real Hugging Face datasets, in addition to mocked repeatable behavior tests.
Independent review
origin/main, the MB-1553 cache-preservation requirement, sibling preparation scripts, and the Hugging Face Hub cache contract. No additional code/API/result-contract finding was found.