Skip to content

[ci] Make Fastcheck change-aware with a plan env - #2121

Draft
fv-superagent wants to merge 1 commit into
mainfrom
agent/ci-health-speedups-58f9b0733e54
Draft

fv-superagent wants to merge 1 commit into
mainfrom
agent/ci-health-speedups-58f9b0733e54

Conversation

@fv-superagent

Copy link
Copy Markdown
Collaborator

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") == null in .buildkite/pipeline.yml), while merge gates already select lanes from plan_merge_ci.py through MERGE_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 honour FASTCHECK_TEST_PLAN. The planner always keeps unit; 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), selects unit alone 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. Adds fastvideo/tests/contract/test_fastcheck_ci_plan.py.

Verification:

  • Planner cases checked directly with the stdlib (this environment has no pytest), 10/10 pass: docs-only -> ,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_compile on both new files: clean; no line longer than 120.
  • Could not run pytest fastvideo/tests/contract/test_fastcheck_ci_plan.py or pre-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 the unit lane (unit_test.sh includes fastvideo/tests/contract/).

Risk: CI config. Two operator-side steps are required before this changes anything: the trusted uploader must accept the new FASTCHECK_TEST_PLAN reference in the lane conditions, and it must compute and pass the plan for automatic pr-fastcheck builds. 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

@mergify

mergify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 1 of 1 protections blocking · waiting on 👀 reviews and 🤖 CI

Protection Waiting on
🔴 PR merge requirements 👀 reviews and 🤖 CI

🔴 PR merge requirements

Waiting for

  • #approved-reviews-by>=1
  • check-success=full-suite-passed
  • check-success~=pre-commit
This rule is failing.
  • #approved-reviews-by>=1
  • check-success=full-suite-passed
  • check-success~=pre-commit
  • check-success=fastcheck-passed
  • title~=(?i)^\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model|skill|skills|infra)\]

@mergify mergify Bot added type: ci CI/CD infrastructure scope: infra CI, tests, Docker, build labels Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: infra CI, tests, Docker, build type: ci CI/CD infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant