Skip to content

chore(android): rebuild the runtime - #2376

Merged
houko merged 1 commit into
mainfrom
bot/android-runtime
Nov 25, 2026
Merged

houko merged 1 commit into
mainfrom
bot/android-runtime

Conversation

@houko

@houko houko commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Rebuilds classes.dex and classes.jar from main's Java with internal/platform/android/runtime/build.sh (JDK 21, platform 36), so the next release passes release.yml's runtime check.

The v0.3.1 tag (8d57260) failed that check because its committed runtime predates the Java changes since the last rebuild. The Go module proxy already serves v0.3.1, so that tag stays as it is, without a GitHub release, and the release goes out as v0.3.2.

Tests

  • build.sh rebuilt both files; release.yml compares them with a rebuild on the runner.

Screenshots: none

@houko
houko enabled auto-merge (rebase) November 25, 2026 09:24
@houko
houko disabled auto-merge November 25, 2026 09:26
@houko
houko merged commit f2186fb into main Nov 25, 2026
28 checks passed
@houko
houko deleted the bot/android-runtime branch November 25, 2026 09:26
@houko

houko commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Audit note: this PR is authored by houko, so GitHub does not allow a formal approval from the current account. The change contains only the regenerated classes.dex and classes.jar requested by the Android runtime workflow, and the repository checks including the runtime-binary check are green. A maintainer review from another account is still required.

houko added a commit that referenced this pull request Nov 26, 2026
`go run ./tools/changelog release X.Y.Z` now refreshes a stale classes.dex and classes.jar before cutting the changelog, so the release's pull request carries the runtime release.yml checks and nobody has to remember a bot/android-runtime pull request first (#2376, #2429).

- The runtime is stale when a commit after the newest one that changed classes.dex or classes.jar touches internal/platform/android/java or build.sh, play_review.py or play-review.pro. Comparing the files needs a rebuild, and so a JDK and the Android SDK; history needs only git. release.yml's exact comparison stays as the guard.
- When stale, it requires HEAD to be main's tip on GitHub, dispatches the new android-runtime.yml on main with gh, takes the first run newer than every run listed before the dispatch and built at that tip, waits for it, downloads its android-runtime artifact and replaces the files after checking both are there and are a dex and a zip. A missing gh, a failed or missing run or a HEAD behind main is an error naming the manual path; -no-runtime skips the step.
- android-runtime.yml is workflow_dispatch only, on Depot, with read-only contents and a three-day artifact. It builds with .github/scripts/build-android-runtime.sh, which test.yml's android job and release.yml's check now share instead of each installing the SDK packages themselves.
- quality.yml accepts the binaries from chore/release-* branches as well as bot/android-runtime, and AGENTS.md, build.sh, runtime.go, changelog.d/README.md and both contributing guides describe the flow.

Fixes #2432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant