fix(ci): add rubygems.org source before fastlane release step#180
Conversation
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 SummaryThis PR updates the release workflow to prepare RubyGems before the fastlane upload step.
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "fix(ci): add rubygems.org source before ..." | Re-trigger Greptile |
|
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. |
|
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.) |
Problem
The
release-fastlanejob fails in the "Release with fastlane" step with: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.orgis not in the system gem sources list. TheGemfile.lockpins 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-ghjob succeeded (GitHub release created), but the Play Store upload via fastlane did not complete.Fix
Add
gem sources --add https://rubygems.orgbefore the fastlane command. This is idempotent — exits 0 if already present.Test plan
release-fastlanejob reaches the Play Store upload step