Skip to content

ci: build and test pull requests - #51

Merged
criticalAY merged 1 commit into
masterfrom
ci/build-and-test
Aug 8, 2026
Merged

ci: build and test pull requests#51
criticalAY merged 1 commit into
masterfrom
ci/build-and-test

Conversation

@criticalAY

@criticalAY criticalAY commented Aug 8, 2026

Copy link
Copy Markdown
Owner

This repo had no CI workflow — only release.yml. Nothing built or tested master or any pull request.

That is not hypothetical: it is how master reached a state where Gradle could not configure the project at all. Dependabot landed AGP 9.3.1 in #47 while app/build.gradle.kts still declared org.jetbrains.kotlin.android, which AGP 9 rejects outright:

> Failed to apply plugin 'org.jetbrains.kotlin.android'
  The 'org.jetbrains.kotlin.android' plugin is no longer required for Kotlin support since AGP 9.0.

Every Dependabot PR since has merged green on a repo where ./gradlew could not run.

Gates

Step Why
:app:ktlintCheck already configured with ignoreFailures = false, but nothing ran it
:app:testDebugUnitTest
:app:assembleDebug catches configuration and compile breakage
:app:assembleRelease exercises R8/minify and lintVitalRelease — the parts most likely to break unnoticed until release day

Each is its own invocation so a red run names the gate that broke rather than one opaque "build failed". The Gradle daemon is reused across steps, so the extra invocations cost very little.

Pinned to ubuntu-24.04 and Temurin 17 to match release.yml, so a green CI run means the same toolchain the release is actually built with. concurrency cancels superseded runs on the same ref.

All four gates verified green locally on master before being added.

The full lint task is deliberately not gated

It fails today with 151 errors:

Count Issue
143 MissingTranslation
8 LocalContextGetResourceValueCall
1 ModifierParameter
1 AutoboxingStateCreation

The MissingTranslation mass is entirely values-zh-rCN, which has 72 of the 217 strings in values. Gating on that would mean permanently red CI, so assembleRelease's lintVitalRelease covers the fatal-severity checks instead.

Worth addressing separately, and they split cleanly: the 10 non-translation findings look like real Compose issues worth fixing, while the translation gap wants either a completed zh-rCN or lint { disable += "MissingTranslation" }. Happy to take either on.

The repo had no CI workflow — only release.yml — so nothing built or tested
master or any pull request. That is how master reached a state where Gradle
could not configure the project at all: AGP 9.3.1 landed by Dependabot while
app/build.gradle.kts still declared org.jetbrains.kotlin.android, which AGP 9
rejects outright.

Gates ktlintCheck, unit tests, assembleDebug and assembleRelease, each as its
own invocation so a failure names the gate that broke. assembleRelease is
included because R8/minify and lintVitalRelease are the parts of the release
build most likely to break unnoticed until release day.

Pinned to ubuntu-24.04 and Temurin 17 to match release.yml, so a green run
means the same toolchain the release is built with.

The full lint task is deliberately not gated: it reports 151 errors today,
143 of them MissingTranslation from the zh-rCN translation being 72 of 217
strings complete. Gating on that would mean permanently red CI.
@criticalAY
criticalAY merged commit 150bbca into master Aug 8, 2026
1 check passed
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.

1 participant