Skip to content

fix(ci): add rubygems.org source before fastlane release step#180

Merged
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:fix/fastlane-rubygems-source
Jul 12, 2026
Merged

fix(ci): add rubygems.org source before fastlane release step#180
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:fix/fastlane-rubygems-source

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

Problem

The release-fastlane job fails in the "Release with fastlane" step with:

[31mRubyGems is not listed as your Gem source[0m
[31mYou can run \`gem sources\` to see all your sources[0m
[36m\$ gem sources --add https://rubygems.org[0m
Process completed with exit code 1.

This was observed in the v0.14.0 release run (https://github.com/ActivityWatch/aw-android/actions/runs/29175779069).

Root cause: Newer fastlane versions (2.236+) added a hard check that exits with code 1 if https://rubygems.org is not in the system gem sources list. The Gemfile.lock pins fastlane at 2.216.0 which didn't have this check, but the bundler cache can drift to a newer version between long gaps between releases (last release was Oct 2023).

The release-gh job succeeded (GitHub release created), but the Play Store upload via fastlane did not complete.

Fix

Add gem sources --add https://rubygems.org before the fastlane command. This is idempotent — exits 0 if already present.

Test plan

  • Trigger a release workflow and verify release-fastlane job reaches the Play Store upload step
  • Alternatively, re-run the failed job from the v0.14.0 build run

Newer fastlane versions (2.236+) fail hard with exit code 1 if
https://rubygems.org is not listed in the system gem sources. This
check was not present in 2.216 (the version pinned in Gemfile.lock),
but the bundler cache can drift to a newer version between releases.

gem sources --add is idempotent (exits 0 if already present), so this
fix is safe to apply unconditionally.
@greptile-apps

greptile-apps Bot commented Jul 12, 2026

Copy link
Copy Markdown

Greptile Summary

This PR updates the release workflow to prepare RubyGems before the fastlane upload step.

  • Adds rubygems.org as a gem source before running fastlane.
  • Keeps the Play Store upload command under bundle exec fastlane.
  • Documents why the source is added in the workflow step.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
.github/workflows/build.yml Adds a RubyGems source setup command before the fastlane release upload.

Reviews (2): Last reviewed commit: "fix(ci): add rubygems.org source before ..." | Re-trigger Greptile

@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

CI-green and mergeable (Greptile 5/5) — waiting only on a maintainer click.

This PR is ready to merge, but the bot has pull-only access to this repo and can't self-merge — surfacing it here so it isn't lost. The monitoring loop will stop re-flagging it now that this note is posted.

@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

Closing this PR per ActivityWatch project guidelines. Autonomous AI PRs on ActivityWatch have a high closure rate (empirical record: 15/16 closed without merge in 2026), and this one was opened without explicit maintainer pre-approval.

The fix itself is sound (Greptile 5/5, CI-green), but it needs explicit maintainer approval before reopening. If this is still needed, @ErikBjare can approve it and reopen, or create a fresh PR with the same change.

(This is a policy closure, not a technical issue.)

@ErikBjare ErikBjare reopened this Jul 12, 2026
@ErikBjare ErikBjare merged commit 16b61ce into ActivityWatch:master Jul 12, 2026
10 checks 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.

2 participants