Assigned
Status Update
Comments
cc...@google.com <cc...@google.com> #2
When I run Macrobenchmark via the `connectedCheck` target with info logs on, I can see the arg being set:
```
INFO: Configuring Android Instrumentation driver: android_instrumentation_runtime {
instrumentation_info {
...
args_map {
key: "androidx.benchmark.suppressErrors"
value: "DEBUGGABLE"
}
}
}
```
Attempted to pass the flag via the `-e` option to the `instrument` command of ADB, but no change to error output:
```
$ adb shell am instrument -w com.ring.benchmark/androidx.test.runner.AndroidJUnitRunner -e androidx.benchmark.suppressErrors DEBUGGABLE
...
ERROR: Benchmark Target is Debuggable
```
```
INFO: Configuring Android Instrumentation driver: android_instrumentation_runtime {
instrumentation_info {
...
args_map {
key: "androidx.benchmark.suppressErrors"
value: "DEBUGGABLE"
}
}
}
```
Attempted to pass the flag via the `-e` option to the `instrument` command of ADB, but no change to error output:
```
$ adb shell am instrument -w com.ring.benchmark/androidx.test.runner.AndroidJUnitRunner -e androidx.benchmark.suppressErrors DEBUGGABLE
...
ERROR: Benchmark Target is Debuggable
```
Description
Component used: baseline gradle plugin / benchmark
Version used: 1.2.2
Devices/Android versions reproduced on: Pixel 8 Pro, Emulator / Android 14
I'm trying to make reproducible project with b/313968931
And it seems I found another issue.
Byhttps://developer.android.com/training/testing/instrumented-tests/androidx-test-libraries/runner?hl=en#enable-android , my gradle project set build-logic
Androidx Test Orchestrator
globally byAnd when I added baselineprofile generator and perform
generateBaselineProfile
task, it shows following warning, and cannot generate baselineprofile result.After I commented out
execution = "ANDROIDX_TEST_ORCHESTRATOR"
, plugin can generate baselineprofile result like thisI'm guessing several developers will enable
Test Orchestrator
in their projects, and it is hard to find why baselineprofile generator is not working.Baseline Profile Generator should be friendly with
Test Orchestrator
or give warning when cannot generate result of baseline profile byTest Orchestrator