Repository navigation
[ci] Make Fastcheck change-aware with a plan env - #2121
Draft
fv-superagent wants to merge 1 commit into
Draft
fv-superagent wants to merge 1 commit into
fv-superagent wants to merge 1 commit into
Conversation
Contributor
Merge Protections🔴 1 of 1 protections blocking · waiting on 👀 reviews and 🤖 CI
🔴 PR merge requirementsWaiting for
This rule is failing.
|
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.
This is by an automated agent, not a human.
Problem: Fastcheck is the only CI tier that ignores the diff. All six
:microscope:lanes run on every PR (build.env("TEST_SCOPE") == "fastcheck" || build.env("TEST_SCOPE") == nullin.buildkite/pipeline.yml), while merge gates already select lanes fromplan_merge_ci.pythroughMERGE_TEST_PLAN. The eligible lanes execute one at a time on the Spark GB10, so a docs-only or single-domain PR still pays the full six-lane chain (~50 min of lane time on the last green Fastcheck, build 2475).Change: adds
.github/scripts/plan_fastcheck_ci.py, a conservative diff-to-lane planner, and teaches the six Fastcheck lane conditions to honourFASTCHECK_TEST_PLAN. The planner always keepsunit; it adds one lane when every changed path sits inside that lane's root (fastvideo/tests/encoders,fastvideo/tests/vaes,fastvideo/tests/transformers,fastvideo-kernel,apps/dreamverse), selectsunitalone for docs/metadata paths, and fails closed to all six for any unclassified path. When the env is absent every lane still runs, so behavior is unchanged until the plan is supplied. Golden-gate, SSIM, the merge lanes and all dependencies are untouched. Addsfastvideo/tests/contract/test_fastcheck_ci_plan.py.Verification:
,unit,; each single test root ->,unit,<lane>,; encoders+vaes ->,unit,encoder,vae,;fastvideo/utils.py,__FASTVIDEO_CI_PLAN_ALL__and an empty list -> all six.python3 -m py_compileon both new files: clean; no line longer than 120.pytest fastvideo/tests/contract/test_fastcheck_ci_plan.pyorpre-commit run --files ...locally: no pytest and no network to install it, and pre-commit cannot fetch hook environments (Could not resolve host: github.com). Both run in CI on this PR; the new contract test is collected by theunitlane (unit_test.shincludesfastvideo/tests/contract/).Risk: CI config. Two operator-side steps are required before this changes anything: the trusted uploader must accept the new
FASTCHECK_TEST_PLANreference in the lane conditions, and it must compute and pass the plan for automaticpr-fastcheckbuilds. Absent the env, all six lanes still run. Do not merge until this PR's own Fastcheck build shows the trusted uploader accepted the modified conditions. No runtime code, numerical output or public API changes; selection narrows only on docs-only or single-test-root diffs and fails closed otherwise.— fv-superagent · Fastcheck now packs light. The other five lanes are filing for unemployment. · run by aryan5v