Crosvm Infra Update Feb 2023

50 views
Skip to first unread message

Dennis Kempin

unread,
Feb 9, 2023, 6:57:18 PM2/9/23
to crosvm-...@chromium.org, crosvm-core, cros-cont...@google.com, crosvm-dev

Hello friends of crosvm,


It’s been a while and we have made a lot of improvements to code / test health and crosvm infrastructure:

Updates

Dev Tools and Infra

  • There is a new test runner at tools/run_tests2, which is a lot faster now and has a modernized interface thanks to cargo nextest. It will replace the existing run_tests script soon. 

  • Binary size changes are now reported to gerrit (Thank you Zihan)

  • Clippy is now checked on all platforms in CI (and can be checked locally with tools/clippy –platform aarch64/etc)

Project / Test Health

  • Crosvm tests have been cleaned up to work with plain old cargo test in most situations.

  • This includes a split between unit and integration tests. See Testing in the crosvm book.

  • Almost all code in crosvm is now compiled in CI (with a few stubs for downstream-specific features) 

  • Our number of e2e tests is growing (Thank you Keiichi, Ryuichiro, Elie, Frederick)

Bazel Migration

  • ChromeOS was the driver of bazel migration for crosvm, but has shifted priorities.

  • Hence, bazel migration is a bit up in the air and put on hold for now.

Roadmap

An updated roadmap of upcoming infra projects and changes:

2023 Q1

Build infrastructure for running integration/E2E tests on DUTs (OKR)

  • go/crosvm-dut-infra 

  • Allows developers to run integration tests reliably on remote machines

  • “Remote” machines can be a local VM or leased devices from Luci

Improve developer awareness of crosvm metrics changes over time (OKR)

Simplify workflows for external developers (OKR)

  • Improve out of the box cargo workflows and defaults

  • Developers can check out, develop, test and submit changes from github codespaces

2023 Q2

Enable PGO for crosvm (OKR)

  • Upstream tooling for building with PGO and generating profiles

  • Optimized seccomp filters based on key user journeys

  • PGO optimized binaries can be produced upstream


Reply all
Reply to author
Forward
0 new messages