Skip to content

Commit feed7c7

Browse files
Copilotwilliscool
andauthored
ci: Remove broken --single-test flag from matrix runner (#181)
* Initial plan * Remove --single-test from matrix runner (broken feature) Co-authored-by: williscool <394931+williscool@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: williscool <394931+williscool@users.noreply.github.com>
1 parent 27a43fc commit feed7c7

2 files changed

Lines changed: 0 additions & 25 deletions

File tree

docs/testing/test_sharding.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,8 @@ SHARD_INDEX=1 NUM_SHARDS=4 ./scripts/matrix_run_android_tests.sh
9797
| `--arch` | `ARCH` | `x86_64` | Build architecture |
9898
| `--module` | `MODULE` | `app` | Gradle module name |
9999
| `--timeout` | `TEST_TIMEOUT` | `30m` | Test execution timeout |
100-
| `--single-test` | `SINGLE_TEST` | - | Run specific test class/method |
101100
| `--help` | - | - | Show usage |
102101

103-
### Running a Single Test
104-
105-
```bash
106-
# Run specific test method
107-
./scripts/matrix_run_android_tests.sh --single-test com.example.MyTest#testMethod
108-
109-
# Run all tests in a class
110-
./scripts/matrix_run_android_tests.sh --single-test com.example.MyTest
111-
```
112-
113102
## CI Workflow
114103

115104
The GitHub Actions workflow is configured with 4 shards:

scripts/matrix_run_android_tests.sh

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ NUM_SHARDS="${NUM_SHARDS:-}"
3030
ARCH="${ARCH:-x86_64}"
3131
MODULE="${MODULE:-app}"
3232
TEST_TIMEOUT="${TEST_TIMEOUT:-30m}"
33-
SINGLE_TEST="${SINGLE_TEST:-}"
3433

3534
# --- Functions ---
3635
show_usage() {
@@ -49,7 +48,6 @@ Options:
4948
--arch ARCH Build architecture (default: x86_64). Env: ARCH
5049
--module MODULE Gradle module name (default: app). Env: MODULE
5150
--timeout TIME Test timeout (default: 30m). Env: TEST_TIMEOUT
52-
--single-test TEST Run specific test class or class#method. Env: SINGLE_TEST
5351
--help Show this help message
5452
5553
Examples:
@@ -64,9 +62,6 @@ Examples:
6462
6563
# Via env vars
6664
SHARD_INDEX=1 NUM_SHARDS=4 $(basename "$0")
67-
68-
# Run single test
69-
$(basename "$0") --single-test com.example.MyTest#testMethod
7065
EOF
7166
}
7267

@@ -78,7 +73,6 @@ parse_args() {
7873
--arch) ARCH="$2"; shift 2 ;;
7974
--module) MODULE="$2"; shift 2 ;;
8075
--timeout) TEST_TIMEOUT="$2"; shift 2 ;;
81-
--single-test) SINGLE_TEST="$2"; shift 2 ;;
8276
--help) show_usage; exit 0 ;;
8377
*) echo "Error: Unknown option: $1"; show_usage; exit 1 ;;
8478
esac
@@ -187,11 +181,6 @@ build_instrument_command() {
187181
echo "Running all tests (no sharding)" >&2
188182
fi
189183

190-
# Add single test filter if specified (overrides package filter)
191-
if [ -n "$SINGLE_TEST" ]; then
192-
cmd+=" -e class $SINGLE_TEST"
193-
fi
194-
195184
cmd+=" \"$TEST_PACKAGE/$TEST_RUNNER\""
196185
echo "$cmd"
197186
}
@@ -238,9 +227,6 @@ main() {
238227
else
239228
echo "Sharding: disabled (running all tests)"
240229
fi
241-
if [ -n "$SINGLE_TEST" ]; then
242-
echo "Single test: $SINGLE_TEST"
243-
fi
244230
echo "=================================="
245231

246232
# Derive architecture suffix

0 commit comments

Comments
 (0)