INNER CODE UNIT · Ruby

track_version_codes

wordpress-mobile/WordPress-Android · fastlane/lanes/promote.rb:378

  def track_version_codes(package_name:, track:)
    google_play_track_version_codes(
      package_name: package_name,
      track: track,
      json_key: UPLOAD_TO_PLAY_STORE_JSON_KEY
    )
  rescue StandardError => e
    # Raise rather than return []: an errored lookup must not read as an empty track.
    UI.user_error!("Unable to read the #{track} track version codes for #{package_name}: #{e.message}")
  end

  # Play intermittently 400s a call with "Google Api Error: ... This Edit has been deleted." Neither
  # the google-apis transport (400s aren't retried) nor supply's call_google_api recovers, and
  # recovery needs a fresh edit — so retry the whole begin_edit…commit/read block, not the single
  # call. Also guards against a concurrent Play edit from another job invalidating ours.
  def with_play_edit_retries(description, attempts: 3, wait: 15)
    tries = 0
    begin

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…