Files
sousa-gecko/taskcluster/scripts/misc/android-gradle-dependencies.sh
T
Ryan VanderMeulen 4a6600e992 Bug 2049916 - Stop running android-components unit tests on the shipping graphs. r=android-reviewers,mcarare
AGP 9 only creates unit tests for the debug test build type, so the :testRelease tasks the
nightly/beta/release build-components graphs ran no longer exist. Update CI's remaining unit-test
invocations from testRelease to test (the default build-components graph and the dependency-fetch
script), and for the shipping graphs drop the unit-test task entirely rather than switch it to the
debug variant.

Switching release jobs to :test would force them to compile the debug variant, which they
otherwise never build as part of producing shipping artifacts. It also adds no signal: the
android-components unit tests already run on every push via the default graph, so re-running them
on the shipping graphs is redundant. This matches the existing include-coverage configuration,
which is already default-only.

Differential Revision: https://phabricator.services.mozilla.com/D309479
2026-06-30 14:05:31 +00:00

25 lines
866 B
Bash
Executable File

#!/bin/bash -vex
set -x -e
echo "running as" $(id)
set -v
cd $GECKO_PATH
. taskcluster/scripts/misc/android-gradle-dependencies/before.sh
export MOZCONFIG=mobile/android/config/mozconfigs/android-arm-gradle-dependencies/nightly
./mach build
# After the `mach build` invocation!
export GRADLE_FLAGS="--no-configuration-cache --write-verification-metadata sha256 --dry-run"
./mach android gradle-dependencies
./mach gradle -p mobile/android/fenix lint :benchmark:assembleBenchmark
./mach gradle -p mobile/android/focus-android lint
./mach gradle -p mobile/android/android-components -Pcoverage detekt lint :components:tooling-lint:test :components:lib-auth:assemble :components:lib-auth:assembleAndroidTest :components:lib-auth:test :components:lib-auth:lintRelease :components:lib-auth:publish
. taskcluster/scripts/misc/android-gradle-dependencies/after.sh