<#7168 [V2] Speed up check-generate CI with parall...
# flyte-github
a
#7168 [V2] Speed up check-generate CI with parallelization, caching, and cargo check Pull request opened by pingsutw Summary • Parallelized the monolithic
check-generate
job into 3 independent jobs that run concurrently: •
check-generate
— buf generation +
cargo check
•
check-go-tidy
—
go mod tidy
drift detection •
check-mocks
— mockery drift detection • Switched from
docker run
to native
container:
— jobs run directly inside the CI image instead of volume-mounting into a
docker run
invocation • Added
cargo check
(
make check-crate
) instead of
cargo build
— CI only needs to verify compilation, not produce artifacts • Added caching for cargo registry/target and uv virtualenv using
actions/cache
• Scoped cache keys to Docker image hash to prevent stale caches on image updates • Shallow fetch for base branch diff (
--depth=1
+
FETCH_HEAD
) Expected impact • Wall-clock time reduced by running 3 jobs in parallel instead of sequentially •
cargo check
skips codegen/linking (~40% faster than
cargo build
) • Warm cache runs complete in under 1 minute for cached deps Test plan • Verify CI passes on this PR • Confirm
make build-crate
still works unchanged for local use • Verify warm-cache runs are faster (cache populated after first run) •
main
• #6583 • [V2] Speed up check-generate CI with parallelization, caching, and cargo check 👈 flyteorg/flyte