Custom CTS Pipeline Optimizations
Engineering note from 0cmlabs.
Scope
This placeholder captures the backbone of a custom CTS optimization strategy.
- Build shards by subsystem ownership rather than raw test count.
- Detect flaky signatures before rerun budgets are consumed.
- Preserve reproducibility across lab and CI hardware classes.
Optimization Priorities
- Stable device provisioning with immutable test images.
- Incremental test selection driven by changed Android modules.
- Automated failure bucketing for deterministic triage.
Example Snippet
cts-tradefed run cts \
--module CtsMediaTestCases \
--retry-strategy ITERATIONS \
--max-testcase-run-count 2
Current Status
Pipeline model validated; a deeper architecture writeup is scheduled next.