Repository navigation
fix(ci): stop the tracked-venv gate from matching basenames that merely start with venv - #1309
Merged
Merged
Conversation
lusoris
force-pushed
the
fix/venv-gate-basename-false-positive
branch
4 times, most recently
from
September 5, 2026 21:02
1109c0c to
70f1a28
Compare
…ly start with venv The pattern in scripts/ci/check-no-tracked-venv.sh made the leading dot optional, so changelog.d/fixed/venv-recipe-docs.md on #1282 was reported as a tracked virtualenv and the required Pre-Commit check went red. Real virtualenv shapes (.venv*, venv, .virtualenv, pyvenv.cfg, and any file inside such a directory) stay flagged; a test pins both sides. docs/state.md: T-VENV-GATE-BASENAME-FALSE-POSITIVE-2026-09-05 (Recently closed).
lusoris
force-pushed
the
fix/venv-gate-basename-false-positive
branch
from
September 6, 2026 01:08
70f1a28 to
2b3d7d5
Compare
lusoris
marked this pull request as ready for review
September 6, 2026 01:08
This was referenced Sep 30, 2026
lusoris
added a commit
that referenced
this pull request
Oct 1, 2026
…alert #6 (ADR-1389) - Resolve CodeQL alert #1309 (cpp/include-non-header): Replace unity-inclusion of core/src/libvmaf.c in core/test/test_feature_backend_twin.c with direct linkage against libvmaf in core/test/meson.build and narrow internal test accessors in core/src/libvmaf_priv.h (vmaf_backend_twin_verdict_for_test, vmaf_context_fake_backend_for_test, vmaf_context_set_gpumask_for_test, vmaf_context_append_registered_feature_extractor_for_test, and vmaf_context_resolve_context_fallbacks_for_test) implemented statically in core/src/libvmaf.c. - Add scripts/ci/check-no-non-header-includes.sh and test suite scripts/ci/tests/test-check-no-non-header-includes.sh, wired into .pre-commit-config.yaml and .github/workflows/rule-enforcement.yml to fail closed on non-header source inclusions in core/test/. - Resolve OpenSSF Scorecard alert #6 (SAST): Under ADR-1389, run CodeQL (Actions) unconditionally on every pull request and master push in .github/workflows/security-scans.yml, ensuring 100% commit SAST coverage across docs-only and non-code PRs with negligible (~15-20s) overhead, and enforce it in .github/workflows/required-aggregator.yml. - Update docs/state.md, changelog fragment, docs/rebase-notes.md, and ADR index.
lusoris
added a commit
that referenced
this pull request
Oct 1, 2026
…alert #6 (ADR-1389) - Resolve CodeQL alert #1309 (cpp/include-non-header): Replace unity-inclusion of core/src/libvmaf.c in core/test/test_feature_backend_twin.c with direct linkage against libvmaf in core/test/meson.build and narrow internal test accessors in core/src/libvmaf_priv.h (vmaf_backend_twin_verdict_for_test, vmaf_context_fake_backend_for_test, vmaf_context_set_gpumask_for_test, vmaf_context_append_registered_feature_extractor_for_test, and vmaf_context_resolve_context_fallbacks_for_test) implemented statically in core/src/libvmaf.c. - Add scripts/ci/check-no-non-header-includes.sh and test suite scripts/ci/tests/test-check-no-non-header-includes.sh, wired into .pre-commit-config.yaml and .github/workflows/rule-enforcement.yml to fail closed on non-header source inclusions in core/test/. - Resolve OpenSSF Scorecard alert #6 (SAST): Under ADR-1389, run CodeQL (Actions) unconditionally on every pull request and master push in .github/workflows/security-scans.yml, ensuring 100% commit SAST coverage across docs-only and non-code PRs with negligible (~15-20s) overhead, and enforce it in .github/workflows/required-aggregator.yml. - Update docs/state.md, changelog fragment, docs/rebase-notes.md, and ADR index.
lusoris
added a commit
that referenced
this pull request
Oct 1, 2026
…alert #6 (ADR-1389) (#1659) * fix(security): resolve CodeQL include alert #1309 and Scorecard SAST alert #6 (ADR-1389) - Resolve CodeQL alert #1309 (cpp/include-non-header): Replace unity-inclusion of core/src/libvmaf.c in core/test/test_feature_backend_twin.c with direct linkage against libvmaf in core/test/meson.build and narrow internal test accessors in core/src/libvmaf_priv.h (vmaf_backend_twin_verdict_for_test, vmaf_context_fake_backend_for_test, vmaf_context_set_gpumask_for_test, vmaf_context_append_registered_feature_extractor_for_test, and vmaf_context_resolve_context_fallbacks_for_test) implemented statically in core/src/libvmaf.c. - Add scripts/ci/check-no-non-header-includes.sh and test suite scripts/ci/tests/test-check-no-non-header-includes.sh, wired into .pre-commit-config.yaml and .github/workflows/rule-enforcement.yml to fail closed on non-header source inclusions in core/test/. - Resolve OpenSSF Scorecard alert #6 (SAST): Under ADR-1389, run CodeQL (Actions) unconditionally on every pull request and master push in .github/workflows/security-scans.yml, ensuring 100% commit SAST coverage across docs-only and non-code PRs with negligible (~15-20s) overhead, and enforce it in .github/workflows/required-aggregator.yml. - Update docs/state.md, changelog fragment, docs/rebase-notes.md, and ADR index.
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
scripts/ci/check-no-tracked-venv.sh(the gate from #1280) made the leading dot optional in its pattern, so any tracked basename starting withvenvwas reported as a tracked virtualenv. The changelog fragmentvenv-recipe-docs.mdon #1282 tripped it and reddened the required Pre-Commit check. The pattern now matches the real shapes only —.venv*,venv,.virtualenv,pyvenv.cfgas the last path segment, or any file inside such a directory — and a test pins seven cases (three look-alikes pass, four real venv paths fail). Wired next to the sibling gate tests inrule-enforcement.yml.Type
fix— CI gate false positiveChecklist
make format && make lintis green locally (pre-commit on every touched file; shfmt/shellcheck; actionlint clean).scripts/ci/tests/test-check-no-tracked-venv.sh(new, 7 cases).Bug-status hygiene (ADR-0165)
docs/state.md—T-VENV-GATE-BASENAME-FALSE-POSITIVE-2026-09-05in Recently closed.Netflix golden-data gate (ADR-0024)
assertAlmostEqual(...)score in the Netflix golden Python tests.Deep-dive deliverables (ADR-0108)
AGENTS.mdinvariant note — no rebase-sensitive invariants: fork-added script and test.changelog.d/fixed/venv-gate-basename-false-positive.md.docs/rebase-notes.mdentry.Reproducer
🤖 Generated with Claude Code