Skip to content

CI: add nightly Android Lint job#1914

Merged
bmander merged 1 commit into
mainfrom
add-nightly-lint-job
Jul 16, 2026
Merged

CI: add nightly Android Lint job#1914
bmander merged 1 commit into
mainfrom
add-nightly-lint-job

Conversation

@bmander

@bmander bmander commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a lint job to android-nightly.yml that runs ./gradlew :onebusaway-android:lintObaGoogleDebug -PwarningsAsErrors=true and uploads the HTML report as an artifact. No emulator needed, so it's cheap to run nightly.
  • Updates the now-stale comments in android.yml and android-nightly.yml that described the nightly lint job as "slated"/"never landed" to point at the new job.

Fixes #1901. Every PR/push and nightly Gradle invocation passes -x lint, so the lint-clean, baseline-free state won by the earlier lint campaign (#1875) has had nothing enforcing it since lint was pulled off the PR path — this closes that gap without slowing down the PR critical path.

Test plan

  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/android-nightly.yml'))" — YAML parses
  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/android.yml'))" — YAML parses
  • ./gradlew :onebusaway-android:tasks --all confirms lintObaGoogleDebug exists as a task
  • Confirm the new lint job runs green on the next scheduled nightly (or via manual workflow_dispatch)

🤖 Generated with Claude Code

Every PR/push and nightly Gradle invocation passes -x lint, so the
lint-clean, baseline-free state from the earlier lint campaign has had
nothing enforcing it since lint was pulled off the PR path. Add a
lint job to android-nightly.yml running lintObaGoogleDebug with
-PwarningsAsErrors=true (no emulator needed) and upload the HTML
report as an artifact.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@bmander
bmander merged commit 7b8adec into main Jul 16, 2026
2 checks passed
@bmander
bmander deleted the add-nightly-lint-job branch July 16, 2026 22:45
bmander added a commit that referenced this pull request Jul 17, 2026
The lint job added in #1914 is the first run of lintObaGoogleDebug since
lint was pulled off PR/push CI in #1843, so two unrelated regressions from
that gap surfaced together:

- AdjacencyRouteColors.kt's @SuppressLint("RestrictedApi") covers
  adjacencyRouteColors() but not the private routeColor() it calls, where
  the actual restricted Hct.from(...).toInt() calls live.
- #1865 added new optional parameters ahead of the existing `modifier`
  parameter in RouteArrivalRow and ArrivalsList, breaking the Compose
  convention that modifier be the first optional parameter.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Android Lint no longer runs anywhere — add the promised nightly lint job

1 participant