Split the API 37 leg so the part that works can gate
CI has never run the API level this app targets. The reason it did not was never "API 37 is untestable" -- it was that two tests fail on the emulator image, so one row would be permanently red or permanently allow-listed. This splits that row instead of choosing between those two. E2E API 37 gates. It runs 55 of the suite's 57 instrumented tests and must be green. E2E API 37 Media3 hardware transcode runs the other two, reports, and never blocks (continue-on-error). Both are driven off ONE marker, @FailsOnEmulatorApi37: the gating job passes notAnnotation, the advisory job passes annotation. Two lists would drift, and drift is silent in both directions -- a test that ends up in neither job reads as green. Excluding by class was not an option either: Media3EngineTest has four tests and two of them pass here, so notClass would have thrown away real coverage. The advisory job is named for what it runs, not for what we think is wrong. Both its tests drive a full H.264 -> H.265 hardware transcode, which is what distinguishes them from the two Media3EngineTest cases that pass -- those never decode video. The goldfish-decoder theory sits in a comment inside the job, where it can be corrected without renaming a check people have learned to look for; docs/api-37-emulator-crash.md keeps measurement and inference apart. The SystemUI disable moves into .github/scripts/e2e-run.sh behind E2E_DISABLE_SYSTEM_UI, unset everywhere but the two API 37 jobs, so the other four legs run byte-identical commands -- the same shape as E2E_EXTRA_GRADLE_ARGS. It runs BEFORE the streamed logcat starts, deliberately: `adb shell stop` would end that logcat and nothing restarts it, so a disable placed after it would cost the leg its diagnostics for the part of the run that matters. The body is probe v2 from api37-debug.yml -- the version measured 4/4 -- not the older one-round form: three rounds, waits for system_server to actually be gone, verifies against `pm list packages -d`, and requires a 45 s window with zero new aborts. The weaker probe reported success on a run that then started SystemUI eight more times. The caveat is written next to the row rather than left implicit: this leg runs with SystemUI disabled and the framework restarted under it, a device configuration no other leg and no Pixel run uses. Anything that touches system UI must not trust it, and the Pixel check before each release is still the only API 37 run with SystemUI intact. docs/api-37-emulator-crash.md's "So should CI take API 37?" said no on three reasons. Two were claims about CI that had never been measured; the section now carries the eight runs that measured them, and the third reason is what the split answers. docs/local-emulator.md and api37-debug.yml's header carried the same "the matrix stops at 36" claim and are corrected with it. CLAUDE.md is left alone deliberately -- its "CI's matrix therefore stops at API 36" clause is now false, and that correction is parked in the doc's existing "Correction owed to CLAUDE.md" section, where two others are already waiting. Making E2E API 37 an actually-required check is a repository-settings change and must come after this is on main: adding a required context that does not exist on the default branch blocks every PR. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,14 +3,20 @@ name: API 37 debug
|
||||
# ---------------------------------------------------------------------------
|
||||
# WHAT THIS IS FOR, AND WHY IT IS SEPARATE
|
||||
#
|
||||
# status_check.yml's E2E matrix stops at API 36 because the android-37.x emulator
|
||||
# images abort surfaceflinger inside their own gralloc mapper. That was established
|
||||
# locally, under -gpu host and under ANGLE (docs/api-37-emulator-crash.md). It was
|
||||
# NOT established on a GitHub runner: CI runs -gpu swiftshader_indirect, and the one
|
||||
# local measurement of that mode was void for a purely local reason (Fedora's SELinux
|
||||
# denies execheap to SwiftShader's Reactor JIT -- docs/local-emulator.md). So what CI
|
||||
# actually does at API 37 is an open question, and this workflow is the instrument for
|
||||
# answering it.
|
||||
# The android-37.x emulator images abort surfaceflinger inside their own gralloc
|
||||
# mapper. That was established locally, under -gpu host and under ANGLE
|
||||
# (docs/api-37-emulator-crash.md), but NOT on a GitHub runner: CI runs
|
||||
# -gpu swiftshader_indirect, and the one local measurement of that mode was void for a
|
||||
# purely local reason (Fedora's SELinux denies execheap to SwiftShader's Reactor JIT --
|
||||
# docs/local-emulator.md). What CI actually does at API 37 was an open question, and
|
||||
# this workflow is the instrument that answered it.
|
||||
#
|
||||
# IT IS STILL THE INSTRUMENT. status_check.yml now carries API 37 -- a gating leg that
|
||||
# disables SystemUI first, and an advisory one for the two @FailsOnEmulatorApi37 tests
|
||||
# -- so this file's job is no longer to decide that, but to test a change to it for one
|
||||
# dispatch instead of one commit. The next questions it exists for are written down
|
||||
# under "When to revisit" in docs/api-37-emulator-crash.md: a new API 37.x image, or an
|
||||
# ATD image for 37, either of which could retire the whole workaround.
|
||||
#
|
||||
# It is a copy of that E2E job with the matrix replaced by workflow_dispatch inputs,
|
||||
# so one hypothesis costs one dispatch rather than one commit. It triggers on nothing
|
||||
|
||||
Reference in New Issue
Block a user