Skip to content

Speed up station integration checks - #166

Merged
kstonekuan merged 8 commits into
mainfrom
speed-up-ci-integration
Nov 28, 2026
Merged

kstonekuan merged 8 commits into
mainfrom
speed-up-ci-integration

Conversation

@kstonekuan

@kstonekuan kstonekuan commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What changed and why

Reduce the station integration critical path by running server tests with four workers and running generated-contract checks in a separate job alongside station tests and installed-wheel packaging. Build the server once for the workers; use the same worker count in local server validation and default Rust tests to eight threads, align the CI Python extension profiles, and share the integration cache with the wheel job as its sole writer. Cache Cargo build outputs in the Python job and let contract checks read the Linux Rust cache without competing writes. Release builds retain their production profile; clean-wheel checks install only their tooling instead of rebuilding the source extension. Isolate the LiveKit credential test from host configuration. Update the pinned checkout, setup-node, and setup-uv actions in both CI and release workflows.

How you checked it

  • uv run --no-sync ruff check --fix, ruff format, ty check, and uv lock --check
  • pytest -m server -n 4 --durations=10: 54 passed, 1 skipped (two runs)
  • Actionlint and generated-contract check
  • Full Rust workspace tests with eight threads, Cargo clippy and formatting; local server-validation tests with four workers
  • Built a wheel with the CI profile and checked its clean installation, SDK, CLI, server, media, and simulator connection; repeated with only release-check tooling installed
  • Simulation only; no real arm tested

Notes for reviewers

The four-worker suite completed in 41.5 and 43.4 seconds locally; two workers took 67 seconds. A serial run took 148 seconds, but overlapped partly with wheel compilation, so this is not a controlled comparison. Namespace cache reuse and the change in overall CI duration require measurement after the cache is populated by a successful main-branch run.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no blocking issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issues were found.

Summary

This PR shortens station checks by running four pytest workers and moving generated-contract checks into a separate job.

  • Station checks run server tests in parallel and gate all three results.
  • The LiveKit credential check uses only its temporary station setup.
  • Release checks prepare their wheel-check tools separately from the wheel.

No actionable issues were found in the changes since the previous review.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Changes[Changed paths] --> Station[Station tests: four workers]
  Changes --> Contracts[Generated-contract checks]
  Changes --> Wheel[Installed-wheel checks]
  Station --> Integration[Required integration check]
  Contracts --> Integration
  Wheel --> Integration
Loading

Reviews (4) · Last reviewed commit: "Avoid source build during release wheel ..." · Reviewed by Greptile

greptile-apps[bot]
greptile-apps Bot previously approved these changes Nov 28, 2026
greptile-apps[bot]
greptile-apps Bot previously approved these changes Nov 28, 2026
greptile-apps[bot]
greptile-apps Bot previously approved these changes Nov 28, 2026
@kstonekuan
kstonekuan enabled auto-merge (squash) November 28, 2026 17:43
@kstonekuan
kstonekuan merged commit 2840dc3 into main Nov 28, 2026
12 checks passed
@kstonekuan
kstonekuan deleted the speed-up-ci-integration branch November 28, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant