Skip to content

fix(ci): publish APK-only GitHub releases - #160

Merged
RXWatcher merged 4 commits into
mainfrom
fix/apk-only-release-publish
Aug 3, 2026
Merged

RXWatcher merged 4 commits into
mainfrom
fix/apk-only-release-publish

Conversation

@RXWatcher

@RXWatcher RXWatcher commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • allow the GitHub release job to run after APK-only tags intentionally skip Google Play
  • keep release publishing blocked on cancellation, setup failure, or APK build failure
  • add a focused release-workflow regression test and run it in release CI
  • preserve normal, non-prerelease GitHub releases and existing Latest asset behavior

Root cause

Release run 30814079342 skipped play by design and successfully built both APK artifact sets, but GitHub propagated the skipped dependency through the job chain because publish-release had no explicit status condition. The job was therefore skipped without executing any steps.

Validation

  • ./gradlew -Dorg.gradle.jvmargs="-Xmx4g -Dfile.encoding=UTF-8" test --max-workers=2
  • bash -n scripts/test-release-workflow.sh
  • ./scripts/test-release-workflow.sh
  • ./scripts/test-check-build-supply-chain.sh
  • ./scripts/check-build-supply-chain.sh
  • go run github.com/rhysd/actionlint/cmd/[email protected] .github/workflows/release.yml
  • git diff --check upstream/main...HEAD

Summary by CodeRabbit

  • Bug Fixes

    • Improved APK-only release publishing so signed APKs can be published as GitHub releases when setup and APK jobs succeed.
    • Prevented release publishing when the workflow is cancelled or required jobs fail.
  • Tests

    • Added automated checks to verify release workflow conditions and dependencies.
  • Documentation

    • Added implementation and design documentation for APK-only release publishing.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@RXWatcher, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 52 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 03cccd26-b76c-4a2e-9b50-8f3688642334

📥 Commits

Reviewing files that changed from the base of the PR and between 6653f7b and 14012cd.

📒 Files selected for processing (1)
  • scripts/test-release-workflow.sh
📝 Walkthrough

Walkthrough

The change adds a Bash self-test for the release workflow and runs it in CI. The publish-release job now requires a non-cancelled run with successful setup and apks jobs.

Changes

Release publishing workflow

Layer / File(s) Summary
Release gate design and validation plan
docs/superpowers/specs/..., docs/superpowers/plans/...
Documents the APK-only publishing scenario, required conditions, regression test, and validation steps.
Workflow invariant self-test
scripts/test-release-workflow.sh
Extracts the publish-release job and verifies its dependencies and status conditions.
Release workflow enforcement and CI integration
.github/workflows/release.yml
Runs the self-test during supply-chain checks. Publishing now requires a non-cancelled run and successful setup and apks jobs.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant UnitTests
  participant Setup
  participant Apks
  participant PublishRelease
  UnitTests->>UnitTests: Run test-release-workflow.sh
  Setup->>PublishRelease: Report successful completion
  Apks->>PublishRelease: Report successful completion
  PublishRelease->>PublishRelease: Check non-cancelled run and successful prerequisites
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: enabling APK-only GitHub release publishing in CI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/apk-only-release-publish

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/test-release-workflow.sh`:
- Around line 26-50: The checks in expect_publish_job_to_contain currently
search all of publish_job, allowing step-level conditions to satisfy job-level
requirements. Extract the publish-release job’s job-level if block before
validating !cancelled() and the needs.*.result fragments, and keep the existing
dependency check scoped appropriately.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f3873a4a-4fe6-4a5a-a5e4-96e8efb94aa1

📥 Commits

Reviewing files that changed from the base of the PR and between aff2f77 and 6653f7b.

📒 Files selected for processing (4)
  • .github/workflows/release.yml
  • docs/superpowers/plans/2026-08-03-apk-only-release-publish.md
  • docs/superpowers/specs/2026-08-03-apk-only-release-publish-design.md
  • scripts/test-release-workflow.sh

Comment thread scripts/test-release-workflow.sh Resolved
@RXWatcher
RXWatcher merged commit 2b8a1f9 into main Aug 3, 2026
2 checks passed
@RXWatcher
RXWatcher deleted the fix/apk-only-release-publish branch August 3, 2026 14:09
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