Repository navigation
perf(ci): reduce duplicate builds and reuse native artifacts - #6751
Merged
Merged
Conversation
Reduce runner contention with PR cancellation, change-aware job selection, compiler caches, and validated same-run native and Studio artifacts.
Keep shared compiler caches stable and writable only from official main runs, preserve the cuVS required check context, and prevent runtime skill and prompt files from bypassing API tests.
Version immutable cache entries by commit while restoring compatible prefixes so later main builds retain new compiler output. Preserve main-only writes and cover cache rollover, PR restores, toolchain isolation, and legacy entries.
Allow trusted manual runs to use ov-ci-runner in an Ubuntu 24.04 container while preserving native artifact compatibility and hosted PR defaults. Add a Linux-only trial option and cover runner selection boundaries.
Route official PR, scheduled and release native builds to the dedicated runner to reduce hosted queueing, while retaining a manual hosted override.
Keep service-dependent P0 memory tests on openviking-ecs and default other Linux x64 tests and builds to ov-ci-runner. Preserve platform matrices and add explicit container dependencies and Docker test cleanup for persistent hosts.
qin-ctx
requested changes
Oct 29, 2026
qin-ctx
left a comment
Collaborator
There was a problem hiding this comment.
编译复用有实际价值,但当前 PR 同时把大多数 Linux CI,包括 Docker 镜像发布,迁到了自托管 runner。建议将这部分基础设施迁移拆出,明确任务隔离和机器生命周期后单独评审。
本轮明确的合并阻塞是:仅修改插件市场清单时,原有安装入口测试会被跳过,需要补齐任务选择。另有两项依赖 runner 部署方式的设计问题:外部 PR 与镜像发布共用 runner 的隔离,以及复用宿主机时历史镜像引用混入后续发布。后两项按 non-blocking 提出,不代表已经证实凭据泄露或线上发布异常。
Scope Git safe.directory settings to the two CI checkouts through inherited environment configuration so container ownership checks do not block installer validation.
Return ordinary tests and builds to hosted runners so execution savings can be measured independently of self-hosted capacity. Keep the existing P0 memory suite pinned to its original ECS host.
Collaborator
Author
Collaborator
Author
qin-ctx
approved these changes
Oct 30, 2026
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
CI dependency setup implicitly builds OpenViking before explicit native build steps, and API and cuVS jobs repeat the same compilation. This change removes those repeated builds and lets Linux API tests (Python 3.10) and cuVS tests (3.11) share one same-run
cp310-abi3runtime.The cuVS job moves into the API workflow to consume the same-run artifact, preserving the exact check context
cuvs-tests / Lite Test (ubuntu-24.04, 3.11)and its test list and Python version.Observed before/after results
These are single-run observations, not a repeated benchmark. The optimized measurements below come from API workflow run 40832753623 at
49b5ea26, before the final cache rollover fix in1f3beb3b7. Job execution times exclude runner queueing.The optimized API and cuVS jobs both downloaded artifact
12881871620(native-runtime-linux-x64-cp310-abi3) and skipped local native compilation. API/CLI reported 130 passing tests; cuVS reported 112 passing tests.The shared build must be included when assessing the saving: the three listed jobs consumed 20m 09s of combined execution time versus 49m 02s for the two baseline jobs, approximately 59% less combined runner execution time. This is not a 59% reduction in workflow wall time.
Runner availability remains the main delay. The optimized API workflow took 1h 20m 53s from creation to completion. Its shared native job waited about 32 minutes after preparation, and cuVS waited about 25 minutes after the native artifact was ready. Cargo and ccache both missed in this run, so the measured native build was cold; these results do not establish a warm-cache speedup.
All build and test checks for
49b5ea26completed successfully, including the five wheel platforms and Rust CLI targets; npm publishing was intentionally skipped. See the PR checks run and Rust CLI run. Those results do not validate the subsequently pushed1f3beb3b7.Test plan
49b5ea26, with execution and queue times recorded above.1f3beb3b7.