fastlane: Supply action throwing releaseToHaltNotFound

New Issue Checklist

Issue Description

When running

upload_to_play_store(
  :json_key_data => json_key_data,
  :track => "alpha",
  :track_promote_to => "production",
  :skip_upload_apk => true,
  :skip_upload_metadata => true,
  :skip_upload_images => true,
  :skip_upload_screenshots => true,
  :metadata_path => "./metadata/android"
)

We get a Google Api Error: releaseToHaltNotFound: Cannot halt release, no matching in progress release found error message.

There was one APK in Alpha to promote to production, one partial rollout in production was halted before running the above action resulting in the above error

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 10.14
Ruby 2.5.1
Bundler? false
Git git version 2.19.0
Installation Source ~/.rbenv/versions/2.5.1/bin/fastlane
Host Mac OS X 10.14 (18A391)
Ruby Lib Dir ~/.rbenv/versions/2.5.1/lib
OpenSSL Version OpenSSL 1.0.2p 14 Aug 2018
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 10.0

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
fastlane_require 'semantic'
fastlane_require 'json'
fastlane_require 'active_support/all'

DATESTAMP = Time.now.strftime('%F')

import 'fastfiles/ios/Fastfile'
import 'fastfiles/android/Fastfile'

before_all do
  ENV["ONE_PASSWORD_SIGNIN_ADDRESS"] = "join-root"
  ENV["MATCH_PASSWORD"] ||= match_password
  ENV["SLACK_URL"] = "https://hooks.slack.com/services/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"
end

lane :prepare do |options|
  %w(ios android).each do |platform|
    Fastlane::LaneManager.cruise_lane(platform, "prepare", options)
  end
end

lane :create do |options|
  version = prompt_for_root_mobile_version

  branch = create_root_mobile_release_branch(:version => version)
  set_root_mobile_react_native_version(:version => version)

  %w(ios android).each do |platform|
    Fastlane::LaneManager.cruise_lane(platform, "create", options.merge(
      :version => version
    ))
  end

  git_add

  sh "git commit -m \"Releases v#{version}\""
  sh "git push origin #{branch}"

  create_root_mobile_pull_request(:version => version)
end

lane :build do |options|
  %w(ios android).each do |platform|
    Fastlane::LaneManager.cruise_lane(platform, "build", options)
  end
end

lane :submit do |options|
  version = options.fetch(:version)

  create_root_mobile_release_tag(:version => version)
  create_root_mobile_github_release(
    :version => version,
    :staging_adhoc_ipa => options.fetch(:staging_adhoc_ipa),
    :staging_app_store_ipa => options.fetch(:staging_app_store_ipa),
    :production_app_store_ipa => options.fetch(:production_app_store_ipa),
    :staging_release_apk => options.fetch(:staging_release_apk),
    :production_release_apk => options.fetch(:production_release_apk)
  )

  %w(ios android).each do |platform|
    Fastlane::LaneManager.cruise_lane(platform, "submit", options)
  end
end

lane :release do |options|
  %w(ios android).each do |platform|
    Fastlane::LaneManager.cruise_lane(platform, "release", options)
  end
end

lane :post_release do |options|
  create_root_mobile_release_tag(options)

  %w(ios android).each do |platform|
    Fastlane::LaneManager.cruise_lane(platform, "post_release", options)
  end
end

desc "Posts in Slack to let #eng know that the release process is starting"
lane :slack_eng_channel do
  slack(
    :channel => "#eng",
    :message => "ATTENTION PLEASE - the submission process is starting!
    1. I'm cutting the release branches. Let me know if you found any bugs on master that I need to know about!
    2. Make sure relevant cards are moved to Mobile Merged & Server Merged on the Releases Trello board!
    3. Let me know if there are feature switches to be flipped for this version!",
    :default_payloads => [nil],
  )
end

private_lane :match_password do
  item = one_password(
    :type => "item",
    :uuid => 'xcyj3uvjz5uc5me4bc5ccbejqq'
  )

  item.fetch("details").fetch("password")
end

`./fastlane/Appfile`
for_platform :ios do
  team_id "Z22DE9QC77"
  app_identifier "com.joinroot.joinROOT"
  apple_id "devs@joinroot.com"
end

for_platform :android do
  package_name "com.joinroot.root"
end

fastlane gems

Gem Version Update-Status
fastlane 2.107.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.2.0
slack-notifier 2.3.2
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 1.8.0
unicode-display_width 1.4.0
terminal-table 1.8.0
plist 3.1.0
CFPropertyList 3.0.0
addressable 2.5.2
multipart-post 2.0.0
word_wrap 1.0.0
public_suffix 2.0.5
tty-screen 0.6.5
tty-cursor 0.6.0
tty-spinner 0.8.0
babosa 1.0.2
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.62.0
unf_ext 0.0.7.5
unf 0.1.4
domain_name 0.5.20180417
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
gh_inspector 1.1.3
json 2.1.0
mini_magick 4.5.1
multi_json 1.13.1
multi_xml 0.6.0
rubyzip 1.2.2
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.5.0
bundler 1.16.4
faraday_middleware 0.12.2
naturally 2.2.0
simctl 1.6.5
emoji_regex 0.1.1
nanaimo 0.2.6
colored2 3.1.2
claide 1.0.2
atomos 0.1.3
xcodeproj 1.7.0
faraday 0.15.3
fastimage 2.1.4
httpclient 2.8.3
jwt 2.1.0
signet 0.11.0
os 1.0.0
memoist 0.16.0
googleauth 0.6.7
mime-types-data 3.2018.0812
mime-types 3.2.2
retriable 3.1.2
declarative-option 0.1.0
declarative 0.0.10
uber 0.1.0
representable 3.0.4
google-api-client 0.23.9
openssl 2.1.0
date 1.0.0
fileutils 1.0.2
mini_portile2 2.3.0
nokogiri 1.8.5
ipaddr 1.2.0
semantic 1.6.1
thread_safe 0.3.6
tzinfo 1.2.5
concurrent-ruby 1.0.5
activesupport 5.2.0
i18n 1.0.1
bigdecimal 1.3.4

generated on: 2018-10-25

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 6
  • Comments: 18 (5 by maintainers)

Most upvoted comments

We are facing EXACTLY the same issue, that almost stopped our CD pipeline. Can you please check this issue with high priority? thx!

Sorry, missed your post. Here is fastlane env:

# fastlane env
[✔] 🚀 
[14:39:35]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[14:39:36]: Sending anonymous analytics information
[14:39:36]: Learn more at https://docs.fastlane.tools/#metrics
[14:39:36]: No personal or sensitive data is sent.
[14:39:36]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[14:39:36]: Generating fastlane environment output, this might take a few seconds...
✅ fastlane environment ✅

Stack

Key Value
OS debian_based 8.11
Ruby 2.3.8
Bundler? false
Git git version 2.14.1
Installation Source /usr/local/bin/fastlane
Host Debian GNU/Linux 8 debian_based 8.11 (4.9.93-linuxkit-aufs)
Ruby Lib Dir /usr/lib
OpenSSL Version OpenSSL 1.0.1f 6 Jan 2014
Is contained false
Is homebrew false
Is installed via Fabric.app false

System Locale

Variable Value
LANG C.UTF-8
LC_ALL
LANGUAGE

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.108.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
slack-notifier 2.3.2
atomos 0.1.3
CFPropertyList 3.0.0
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.6
xcodeproj 1.7.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 1.8.0
unicode-display_width 1.4.0
terminal-table 1.8.0
plist 3.4.0
public_suffix 2.0.5
addressable 2.5.2
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.6.5
tty-cursor 0.6.0
tty-spinner 0.8.0
babosa 1.0.2
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.62.0
faraday 0.15.3
unf_ext 0.0.7.5
unf 0.1.4
domain_name 0.5.20180417
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 2.1.4
gh_inspector 1.1.3
json 1.8.3.1
mini_magick 4.5.1
multi_json 1.13.1
multi_xml 0.6.0
rubyzip 1.2.2
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.5.0
bundler 1.17.1
faraday_middleware 0.12.2
naturally 2.2.0
simctl 1.6.5
uber 0.1.0
declarative 0.0.10
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.2
mime-types-data 3.2018.0812
mime-types 3.2.2
jwt 2.1.0
signet 0.11.0
memoist 0.16.0
os 1.0.0
googleauth 0.6.7
httpclient 2.8.3
google-api-client 0.23.9
emoji_regex 0.1.1
io-console 0.4.5
psych 2.1.0.1

generated on: 2018-11-26

Here is command:

fastlane supply --apk ./inputs/release.apk \
            --mapping ./inputs/mapping.txt \
            --json_key ./publish.json \
            --package_name ru.xxx.yyy \
            --track alpha \
            --skip_upload_metadata true \
            --skip_upload_images true \
            --skip_upload_screenshots true \
            --validate_only false

And here is full log:

[14:12:24]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[14:12:25]: Sending anonymous analytics information
[14:12:25]: Learn more at https://docs.fastlane.tools/#metrics
[14:12:25]: No personal or sensitive data is sent.
[14:12:25]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
	
+-------------------------+---------------------------------------+
|                   Summary for supply 2.108.0                    |
+-------------------------+---------------------------------------+
| apk                     | ./inputs/release.apk                  |
| mapping                 | ./inputs/mapping.txt                  |
| json_key                | ./publish.json                        |
| package_name            | ru.xxx.yyy                            |
| track                   | alpha                                 |
| skip_upload_metadata    | true                                  |
| skip_upload_images      | true                                  |
| skip_upload_screenshots | true                                  |
| validate_only           | false                                 |
| skip_upload_apk         | false                                 |
| skip_upload_aab         | false                                 |
| check_superseded_tracks | false                                 |
| timeout                 | 300                                   |
| deactivate_on_promote   | true                                  |
+-------------------------+---------------------------------------+
	
[14:12:28]: Preparing apk at path './inputs/release.apk' for upload...
[14:12:44]: Updating track 'alpha'...
[14:12:46]: Uploading all changes to Google Play...
	
[!] Google Api Error: releaseToHaltNotFound: Cannot halt release, no matching in progress release found.
Process exited with code 1
Process exited with code 1

We use fastlane from docker image if it makes any difference.

Yes I meant @kyledecot sorry