Repository navigation
test(vtest): accelerate shared cases and report CI timings - #1867
Merged
Merged
Conversation
Add an opt-in shared executor with runtime corpus loading while preserving existing libtest registrations and nextest scheduling. Avoid Rust rebuilds for vtest body edits and retain the embedded in-process path. Change-Id: I782a196b4d4b952a7c5122984f2f9785cc61d153
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Prepare the shared executor once for full and scoped Celox runs, fail when setup is missing, and warm both Cargo profiles under a matching cache key. Change-Id: I3bc134b06e3bf4fce8f1ed2e8a36ce7e0a6f629b
Change-Id: I28a4e411f6de79c7e30511682cd78111ff7f9490
Contributor
Merge Queue Status
This pull request spent 4 hours 18 minutes 2 seconds in the queue, including 2 hours 11 minutes 20 seconds running CI. Required conditions to merge
|
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
Most shared language tests are thin
#[test]registrations around the same vtest adapters. Build that executor once withopt-level = 1and run the existing registrations through it, both in CI and locally vianode scripts/run-vtest.mjs. Rust API tests keep running in their test binaries; nextest still controls case selection, backend omissions, ignores, parallelism and timeouts.The opt-in
runtime-casesfeature reads.vtestfiles from disk instead of embedding them, so editing a case body does not rebuild the suite, Celox or the executor. Ordinary Cargo commands retain the embedded/in-process path. CI prepares the shared executor once for full workspace runs and scoped runs containing Celox; scopes without Celox skip this build. The cache warmer builds both profiles with the same versioned cache key, and executor preparation failures fail the Rust test job. The first invocation builds both the executor profile and the ordinary test binaries; subsequent invocations reuse those outputs. Development assertions and overflow checks remain enabled.Rust nextest runs also emit JUnit reports for Mergify CI Insights, including per-test duration and failures. Each scoped invocation keeps a separate report so later invocations do not overwrite earlier results. CI retains the reports for 14 days and uploads them when
MERGIFY_TOKENis available; forks without the secret still run tests. Failure status remains unchanged, with no retries or quarantine enabled. CI Insights is already enabled for the repository and the CI-scoped application key has been registered.Usage:
node scripts/run-vtest.mjs --test counter node scripts/run-vtest.mjs --test systemverilog -E 'test(operators::)'A local 16-case counter sample, with a fresh process per case and three alternating runs per mode, improved from 5.42 s to 1.97 s median (2.75x), including executor process startup. Both modes used the runtime corpus. The broader 1,245-test selection took 114.2 s in process and 30.5 s through the executor; those broader timings are indicative because concurrent build load differed. These are execution timings, not cold build timings.
Validation
cargo check --workspace --locked, formatting, diff whitespace, JS lint and submodule checks passed.ubuntu-26.04-armlabel supplied to the pinned linter.counter.vtestfile left the suite, Celox and executor Cargo artifacts fresh. The edit was restored after validation.