scripting-adb-for-ci
CommunityMake ADB CI runs deterministic and safe.
Software Engineering#bash#instrumentation#sharding#adb#port forwarding#test orchestrator#ci scripting
Authorskydoves
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves flaky and misleading Android test CI pipelines caused by unreliable adb scripting, incorrect pass/fail detection, and missing cleanup between runs.
Core Features & Use Cases
- Correct CI pass/fail parsing for
am instrument: ensures you do not trust$?fromam instrumentand instead parseINSTRUMENTATION_STATUS_CODElines to distinguish-1/-2failures from-3/-4skips. - Reliable device orchestration: supports sharded execution (
--num-shards/--shard-indexvia-e) and parallel fan-out across multiple devices while keeping setup/installation serialized. - Fewer infrastructure incidents: adds bounded retries for transient
adbtransport errors withadb kill-server/adb start-server, enforces host-side timeouts withtimeout(notadb -t), and performs idempotent setup plustrap-based cleanup (port forwards, animation scales,pm clear/force-stop/uninstall). - Better failure forensics: captures
screencapandlogcat -don failure to make debugging actionable. - Test Orchestrator wiring: installs and uses Android Test Orchestrator via
androidTestUtil("androidx.test:orchestrator:1.6.1")(notandroidTestImplementation) for hermetic per-test execution.
Quick Start
Use the scripting-adb-for-ci skill to run your instrumented tests in CI while safely parsing results and collecting artifacts on failure.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: scripting-adb-for-ci Download link: https://github.com/skydoves/android-testing-skills/archive/main.zip#scripting-adb-for-ci Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.