Repository navigation
Conversation
6 of 10 tasks
lusoris
marked this pull request as draft
May 29, 2026 11:50
…v var Three brittleness fixes: 1. .gitignore: add .corpus/ so the exclusion is repo-visible to all contributors, not only locally via .git/info/exclude. 2. ai/scripts/calibrate_nr_threshold.py: _DEFAULT_CORPUS now reads VMAF_CORPUS_DIR (falling back to .corpus/netflix), matching the pattern already used by validate_ensemble_seeds.py. Added missing import os. 3. tools/vmaf-tune/tests/test_bbb_e2e_v5_bug_cluster.py: BBB container corpus path now reads VMAF_CORPUS_DIR (falling back to /workspace/.corpus/bbb_e2e) instead of a hardcoded prefix. no rebase impact: path-source hygiene only, no logic changes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lusoris
force-pushed
the
fix/corpus-path-hardcoding
branch
from
May 29, 2026 12:08
611672f to
765be6e
Compare
lusoris
added a commit
that referenced
this pull request
May 29, 2026
…s with env-var overrides (ADR-0792) Four scripts carried absolute paths valid only on a single developer machine, breaking every other checkout and CI worktree silently: - testdata/test_all_backends.sh: VMAF_BIN, VMAF_YUVDIR, VMAF_TESTDATA - testdata/bench_quick.py: VMAF_BIN, VMAF_TESTDATA - testdata/compare_combined.py: VMAF_TESTDATA - ai/tests/test_e2e_frame_to_score.py: VMAF_BIN, VMAF_YUVDIR (also fixes stale libvmaf/build-cpu path; renamed to core/ in ADR-0700) Each script falls back to a repo-root-relative default so existing no-arg invocations from the repo root continue to work unchanged. Follows the established VMAF_YUVDIR/VMAF_BIN convention from testdata/benchmark_netflix.py (PR #122) and bench_all.sh. no rebase impact: testdata-only + AI test; no C-API or public surface change Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced May 29, 2026
Contributor
Author
lusoris
added a commit
that referenced
this pull request
May 29, 2026
…rides (ADR-0792) Four scripts carried absolute paths valid only on a single developer machine, breaking every other checkout and CI worktree silently: - testdata/test_all_backends.sh: VMAF_BIN, VMAF_YUVDIR, VMAF_TESTDATA - testdata/bench_quick.py: VMAF_BIN, VMAF_TESTDATA - testdata/compare_combined.py: VMAF_TESTDATA - ai/tests/test_e2e_frame_to_score.py: VMAF_BIN, VMAF_YUVDIR (also fixes stale libvmaf/build-cpu path; renamed to core/ in ADR-0700) Each script falls back to a repo-root-relative default so existing no-arg invocations from the repo root continue to work unchanged. Follows the established VMAF_YUVDIR/VMAF_BIN convention from testdata/benchmark_netflix.py (PR #122) and bench_all.sh. no rebase impact: testdata-only + AI test; no C-API or public surface change Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6 of 8 tasks
lusoris
added a commit
that referenced
this pull request
Jun 4, 2026
…s with env-var overrides (ADR-0792) (#686) Four scripts carried absolute paths valid only on a single developer machine, breaking every other checkout and CI worktree silently: - testdata/test_all_backends.sh: VMAF_BIN, VMAF_YUVDIR, VMAF_TESTDATA - testdata/bench_quick.py: VMAF_BIN, VMAF_TESTDATA - testdata/compare_combined.py: VMAF_TESTDATA - ai/tests/test_e2e_frame_to_score.py: VMAF_BIN, VMAF_YUVDIR (also fixes stale libvmaf/build-cpu path; renamed to core/ in ADR-0700) Each script falls back to a repo-root-relative default so existing no-arg invocations from the repo root continue to work unchanged. Follows the established VMAF_YUVDIR/VMAF_BIN convention from testdata/benchmark_netflix.py (PR #122) and bench_all.sh. no rebase impact: testdata-only + AI test; no C-API or public surface change Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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
.gitignore: add.corpus/so the exclusion is visible to all contributors (was only in.git/info/exclude)ai/scripts/calibrate_nr_threshold.py:_DEFAULT_CORPUSnow readsVMAF_CORPUS_DIRenv var (falling back to.corpus/netflix), matching the pattern already used byvalidate_ensemble_seeds.py; adds missingimport ostools/vmaf-tune/tests/test_bbb_e2e_v5_bug_cluster.py: BBB corpus path inside the dev-mcp container now readsVMAF_CORPUS_DIR(falling back to/workspace/.corpus/bbb_e2e) instead of a hardcoded prefixAudit findings (full scan of tracked files)
ai/scripts/validate_ensemble_seeds.pyos.environ.get("VMAF_NETFLIX_CORPUS_DIR", ...)ai/scripts/calibrate_nr_threshold.py_REPO_ROOT / ".corpus" / "netflix"hardcodedtools/vmaf-tune/tests/test_bbb_e2e_v5_bug_cluster.py/workspace/.corpus/bbb_e2e/...hardcoded.gitignore.corpus/added (was only in.git/info/execute)dev/docker-compose.yml,dev/Containerfile.corpus/chug/*.sh.corpus/itself (gitignored) — not trackedTest plan
VMAF_CORPUS_DIR=/my/corpus python ai/scripts/calibrate_nr_threshold.py --dry-runresolves corpus from env varVMAF_CORPUS_DIR, script falls back to.corpus/netflixas beforegit check-ignore -v .corpus/now resolves from.gitignore(not only.git/info/exclude)python -m ruff check ai/scripts/calibrate_nr_threshold.py tools/vmaf-tune/tests/test_bbb_e2e_v5_bug_cluster.py— all checks passedDeliverables checklist
VMAF_CORPUS_DIR=/tmp/fake python ai/scripts/calibrate_nr_threshold.py --dry-run— exits cleanly reading from envchangelog.d/fixed/corpus-path-hardcoding.md🤖 Generated with Claude Code