Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions scripts/agent/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ INCLUDE_ANDROID_T3=false
INCLUDE_FULL_T4=false
GRADLEW="./gradlew"

# Known temporarily excluded tests (can be toggled later)
EXCLUDED_TEST_TASKS=(":SaidIt:test")

log() { printf "[health] %s\n" "$*"; }
warn() { printf "[health][warn] %s\n" "$*"; }
err() { printf "[health][error] %s\n" "$*"; }
Expand Down Expand Up @@ -183,7 +180,7 @@ Tiers:
0 Environment checks (Java/Kotlin/Gradle), Android SDK + licenses, network sanity, project layout
1 Quick compile tasks (fail-fast): :SaidIt:compileDebugKotlin and a small assemble in :domain
2 Core unit tests (fast): :domain:test :data:test :core:test
3 Android/Robolectric (optional): :features:recorder:test and :SaidIt:test (currently excluded by default)
3 Android/Robolectric (optional): :features:recorder:test and :SaidIt:test
4 Coverage + lint (optional): jacocoAll, lint where available

Examples:
Expand Down Expand Up @@ -267,12 +264,13 @@ android_tests() {
return 0
fi
local args=("--no-daemon" "--stacktrace" "--continue")
# Temporarily exclude SaidIt tests if in excluded list
local tasks=(":features:recorder:test")
for t in "${EXCLUDED_TEST_TASKS[@]}"; do
warn "Temporarily excluding $t (can re-enable later)"
done
$GRADLEW "${args[@]}" "${tasks[@]}"
local primary_tasks=(":features:recorder:test")
log "Running Android unit tests: ${primary_tasks[*]}"
if ! $GRADLEW "${args[@]}" "${primary_tasks[@]}"; then
return 1
fi
log "Primary Android unit tests passed; executing :SaidIt:test"
$GRADLEW "${args[@]}" :SaidIt:test
}

coverage_and_lint() {
Expand Down
Loading