* ci(unit): run the full unit and smoke matrix on every PR on standard runners Pull requests ran only the core unit shards and a reduced smoke matrix, and several of those jobs used billed 16-core runners. Every pull request now runs the whole unit matrix and the full smoke Python matrix on ubuntu-latest, aimed at the ten-minute pull request budget. The slow shards are split along directory and file lines and run with --dist worksteal, so one heavy test module no longer pins a single worker. ui-unit is split into typecheck, type tests and six vitest shards. The core and changed-tests modes and their selector script are removed, along with the tests-only change category that only they used. The dev Rust profile now builds without debug info, under a fresh cargo cache key, which shrinks the target cache that kept the Actions cache full. The OpenAPI docs gate reuses HEAD's native module for the base tree when the Rust build inputs match instead of compiling it again, and the base-counts publisher restores the shared bridge. The Meta realtime test whose 256 KB parameter became its test id gets short ids, since printing that id stalled its shard for about four minutes. * test(ci): check the release-branch lint-runtime skip in the existing unit gate test * test(ci): expect four vitest workers and the shard flag in the ui-unit step * ci(cache): treat a stalled uv download cache restore as a miss after two minutes * ci(unit): skip the Rust toolchain with a prebuilt bridge and unused pytest plugins Jobs that install the prebuilt Rust bridge never compile Rust, so they only install the toolchain when the bridge artifact is missing. lint-runtime keeps it because the OpenAPI gate can build the base branch's native module. The unit pytest run no longer loads the ddtrace, logfire, langsmith and codspeed plugins. No unit test uses their fixtures or flags, and the 31 test files that touch those libraries give the same results with them off. * ci(unit): load the default pytest plugins in the unit run again test_explicit_enable_without_an_endpoint_exports_spans_to_console only passes when a plugin imports OpenTelemetry before pytest starts capturing stdout, because ConsoleSpanExporter binds sys.stdout at import. With the plugins off it fails every time, so the plugins stay on until that test stops depending on import order. * docs(ci): cut a job's fixed cost before adding shards
1,011 B
CI
Integration groups and replica runs remain in workflows/test-integration.yml. Do not duplicate them in another workflow.
CI helpers used by existing workflows live in scripts/ci/. Jobs that need merge bases check out full history. Removing a CI job does not count its tests as covered. List tests that no remaining job invokes explicitly in ci-coverage-allowlist.yml.
A new code-quality check that runs without importing litellm goes in the code-quality job in workflows/test-linting.yml. One that imports litellm goes in lint-runtime in workflows/test-unit.yml, which installs the shared Rust bridge wheel. Neither job compiles Rust, which keeps both inside the ten-minute pull request budget.
Pull request jobs run on ubuntu-latest, because larger runners are billed even on this public repository. When a job outgrows the budget, cut its setup and pytest startup cost or its slowest tests before adding a shard. Every extra shard pays that fixed cost again and takes another runner.