Closed jeffremer closed 5 years ago
Did this work before with the version of fastlane you were using, then suddenly not working any more (with the same version)? Or did this only break when updating to a newer fastlane version?
@janpio on version 2.118.1 our CI builds started recently failing because latest_testflight_build_number
started reporting the version number as 1
when in fact it was 16408
. I imagine this is due to #14521 - before that was reported it worked. So I tried updating to 2.120.0 and the CI build got a little further but I ran into this problem.
@jeffremer Heyyyy 👋 Just as a heads up that Spaceship::TestFlight
will be undergoing A LOT of changes soon 😊 Spaceship::TestFlight
uses the old private APIs that are being sunset so we will be migrating over to the new official App Store Connect API.
What this means for fastlane is that Spaceship::TestFlight
will be probably end up being mostly removed because it is not possible to retrofit the new App Store Connect API model relationships and architecture into how Spaceship::TestFlight
was designed.
So during this process we were able to retrofit some of what the classes that were heavily used but its not great since we are missing some of the data. And I think that is what you are running into here.
In #14523, we did actually retrofit the response for Spaceship::TestFlight::Build.latest
and it looks like some of the data that doesn't fit into the old model is actually causing this build_id
error. build_id
doesn't exist anymore in the way it used to so we might need to put even more of a crutch in this for now 😬 So I can take a look at that
BUT, I am working on a prototype right now that will essentially but what you are looking are doing with Spaceship::TestFlight::Build
but instead it will be for Spaceship::ConnectAPI::Build
. I'm hoping I can get this done in real soon because I would like to transfer off of the private APIs and onto the official App Store Connect APIs.
That being said, I can try to put together a setup like you have to that we can keep your flow working in the mean time 😬
Thanks for the update @joshdholtz - anything to keep us going in the meantime would be much appreciated. 👍
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
@fastlane-bot this hasn't been resolved.
BUT, I am working on a prototype right now that will essentially but what you are looking are doing with
Spaceship::TestFlight::Build
but instead it will be forSpaceship::ConnectAPI::Build
. I'm hoping I can get this done in real soon because I would like to transfer off of the private APIs and onto the official App Store Connect APIs.
@joshdholtz any update on this? 🙏
Not sure if it's helpful at all, but it's not just the build information whats_new
. Setting the export_compliance
and beta_review_info
info also fails with the same error.
Still a problem for me
Any updates on this? It's still asking for a non-existing param...
This is still not fixed in 2.126.0
irb(main):057:0> require "spaceship"
irb(main):058:0> Spaceship::Tunes.login(username)
irb(main):059:0> Spaceship::Tunes.select_team(team_id: itc_team_id)
irb(main):060:0> app = Spaceship::Tunes::Application.find(bundle_identifier)
irb(main):061:0> conf.echo = true
=> true
irb(main):062:0> app.builds
Traceback (most recent call last):
14: from <redacted>/irb:23:in `<main>'
13: from <redacted>/irb:23:in `load'
12: from <redacted>/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
11: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/base.rb:286:in `inspect'
10: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/base.rb:296:in `inspect_value'
9: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/base.rb:296:in `map'
8: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/base.rb:297:in `block in inspect_value'
7: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/test_flight/build.rb:183:in `beta_review_info'
6: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/test_flight/build.rb:141:in `reload'
5: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/test_flight/build.rb:105:in `find'
4: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/test_flight/client.rb:47:in `get_build'
3: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/test_flight/client.rb:340:in `assert_required_params'
2: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/test_flight/client.rb:340:in `each'
1: from <redacted>/ruby/gems/2.6.0/gems/fastlane-2.126.0/spaceship/lib/spaceship/test_flight/client.rb:342:in `block in assert_required_params'
NameError (`build_id' is a required parameter)
On top of that client requesting /provider
s (plural), but api was moved(?) to /provider
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with fastlane
and feel free to tackle this issue yourself :muscle:
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
New Issue Checklist
Issue Description
Spaceship::TestFlight::Build - NameError: `build_id' is a required parameter
When interacting with an instance of Spaceship::TestFlight::Build in our Fastfile and trying to update the build information with the
whats_new
parameter, or in fact calling almost any method on the build, it reports an error: NameError: `build_id' is a required parameter.This looks most similar to #12110 which has since been closed. In that issue the original reporter was trying to interact with a build that was still processing, however our build is done processing and continues to report this error. I'm aware of #14521 and updating to version 2.120.0 solved the issue where we couldn't fetch the latest TestFlight build, but trying to interact with the build at all doesn't work.
Command executed
The relevant portion of our Fastfile looks like this…
Where
BASE_BUNDLE_ID
is our app's bundle ID andwhat_to_test
is a helper function that simply formats a changelog.Complete output when running fastlane, including the stack trace and command used
Environment
✅ fastlane environment ✅
### Stack | Key | Value | | --------------------------- | ------------------------------------------- | | OS | 10.14.4 | | Ruby | 2.3.1 | | Bundler? | false | | Git | git version 2.17.1 | | Installation Source | ~/.rbenv/versions/2.3.1/bin/fastlane | | Host | Mac OS X 10.14.4 (18E226) | | Ruby Lib Dir | ~/.rbenv/versions/2.3.1/lib | | OpenSSL Version | OpenSSL 1.0.2o 27 Mar 2018 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 10.2 | ### System Locale | Variable | Value | | | -------- | ----------- | - | | LANG | en_US.UTF-8 | ✅ | | LC_ALL | | | | LANGUAGE | | | ### fastlane files: The Fastfile has been abbreviated to the relevant lane.`./fastlane/Fastfile`
```ruby fastlane_require 'fileutils' fastlane_require 'spaceship' # Fastfile # # @author Jeff Remer`./fastlane/Appfile`
```ruby app_identifier REDACTED team_name "Strava" team_id REDACTED ```Loaded gems
| Gem | Version | | ------------------------- | ------------ | | did_you_mean | 1.0.0 | | slack-notifier | 2.3.2 | | atomos | 0.1.3 | | claide | 1.0.2 | | colored2 | 3.1.2 | | nanaimo | 0.2.6 | | xcodeproj | 1.8.1 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | terminal-notifier | 2.0.0 | | terminal-table | 1.8.0 | | multipart-post | 2.0.0 | | word_wrap | 1.0.0 | | public_suffix | 2.0.5 | | babosa | 1.0.2 | | colored | 1.2 | | highline | 1.7.10 | | commander-fastlane | 4.4.6 | | excon | 0.62.0 | | 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 | | mini_magick | 4.5.1 | | rubyzip | 1.2.2 | | security | 0.1.3 | | xcpretty-travis-formatter | 1.0.0 | | tty-cursor | 0.6.1 | | tty-spinner | 0.9.0 | | tty-screen | 0.6.5 | | faraday | 0.15.4 | | json | 2.2.0 | | io-console | 0.4.5 | | CFPropertyList | 3.0.0 | | mini_portile2 | 2.3.0 | | nokogiri | 1.8.4 | | plist | 3.5.0 | | google-cloud-env | 1.0.5 | | google-cloud-core | 1.3.0 | | uber | 0.1.0 | | declarative | 0.0.10 | | declarative-option | 0.1.0 | | representable | 3.0.4 | | signet | 0.11.0 | | httpclient | 2.8.3 | | google-api-client | 0.23.9 | | digest-crc | 0.4.1 | | google-cloud-storage | 1.16.0 | | memoist | 0.16.0 | | googleauth | 0.6.7 | | faraday_middleware | 0.13.1 | | fastimage | 2.1.5 | | bundler | 1.16.3 | | unicode-display_width | 1.5.0 | | addressable | 2.6.0 | | retriable | 3.1.2 | | mime-types | 3.2.2 | | mime-types-data | 3.2018.0812 | | multi_json | 1.13.1 | | jwt | 2.1.0 | | os | 1.0.0 | | psych | 2.0.17 | | xml-simple | 1.1.5 | | fastlane-plugin-bugsnag | 1.4.1 |