fastlane-plugin-firebase_test_lab icon indicating copy to clipboard operation
fastlane-plugin-firebase_test_lab copied to clipboard

Fastlane/Ruby Gem Dependency Issue: google-cloud-storage

Open graemerycyk opened this issue 5 years ago • 19 comments

Hey,

I am moving our testing over to Firebase and set up our Fastlane with with plugin the backend of last week, but looks like there is is dependency issues.

We are running fastlane_version "2.113.0"

The error when running the lane for Firebase is below:

Error loading plugin 'fastlane-plugin-firebase_test_lab': Unable to activate fastlane-plugin-firebase_test_lab-1.0.2, because google-cloud-storage-1.15.0 conflicts with google-cloud-storage (~> 1.13.0)

Myself and one of our devs have looked at many different ways to solve this, but to no avail.

Any chance this can be looked into?

Cheers,

Grae

graemerycyk avatar Jan 15 '19 10:01 graemerycyk

@grycyk Dependency google-cloud-storage is now updated in latest release 1.0.3, see #59

MartyCatawiki avatar Jan 24 '19 10:01 MartyCatawiki

@MartyCatawiki just a heads up seeing a similar issue again this time with Fastlane 2.116.0

but now with, slightly different version issue, see below

Error loading plugin 'fastlane-plugin-firebase_test_lab': Unable to activate fastlane-plugin-firebase_test_lab-1.0.4, because google-cloud-storage-1.16.0 conflicts with google-cloud-storage (~> 1.15.0)

graemerycyk avatar Feb 13 '19 18:02 graemerycyk

We are looking into this right now (myself and another one of our devs), to find a fix for us right now, but not sure what happening yet. If we find out something i'll post our findings.

graemerycyk avatar Feb 13 '19 18:02 graemerycyk

I got it too, did you find anything to solve? @grycyk

dungntm-teko avatar Jul 26 '19 02:07 dungntm-teko

any updates on this?

mschinis avatar Sep 27 '19 13:09 mschinis

Any updates?

khomchyk avatar Oct 28 '19 15:10 khomchyk

We are looking into this right now (myself and another one of our devs), to find a fix for us right now, but not sure what happening yet. If we find out something i'll post our findings.

Is there any update? @MartyCatawiki

Ravi448 avatar Dec 10 '19 07:12 Ravi448

@Ravi448 I think this question should be asked to @grycyk . And @powerivq is the maintainer of this project, i hope he can help or make ownership to the others

MartyCatawiki avatar Dec 10 '19 09:12 MartyCatawiki

Just ran into this issue again:

Error loading plugin 'fastlane-plugin-firebase_test_lab': Unable to activate fastlane-plugin-firebase_test_lab-1.0.5, because google-cloud-storage-1.25.1 conflicts with google-cloud-storage (~> 1.15.0)

AFAIK we never found a solution to this, but I to clarify my comment @MartyCatawiki & @Ravi448 (quote below) I meant to say was we were looking for a work around to this issue, but we never did and I have ran into this again today.

We are looking into this right now (myself and another one of our devs), to find a fix for us right now, but not sure what happening yet. If we find out something i'll post our findings.

graemerycyk avatar Jan 21 '20 10:01 graemerycyk

@grycyk Follow below steps to resolve the issue

  1. Install plugin using my forked repo : https://github.com/Ravi448/fastlane-plugin-firebase_test_lab
  2. run fastlane install_plugins to make sure everything is installed correctly, If this command fails then run bundle exec fastlane install_plugins
  3. Run bundle exec fastlane firebase_test

If you are using CI/CD to build, please make sure to commit Gemfile and Gemfile.lock

It'll work.

Ravi448 avatar Jan 21 '20 10:01 Ravi448

Not sure if it will fix it but decided to make a PR to solve this: #70 if this works it should close #69 also.

graemerycyk avatar Jan 21 '20 10:01 graemerycyk

@grycyk It'll work for you I believe. It worked for me!

Ravi448 avatar Jan 21 '20 11:01 Ravi448

I see you just removed the dependency instead of a version bump, that what I have done in that PR.

graemerycyk avatar Jan 21 '20 11:01 graemerycyk

Bump. Anyone still getting this issue? It's conflicting with a newer version of GCS.

Error loading plugin 'fastlane-plugin-firebase_test_lab': Unable to activate fastlane-plugin-firebase_test_lab-1.0.5, because google-cloud-storage-1.25.1 conflicts with google-cloud-storage (~> 1.15.0)

farhanf avatar Feb 11 '20 02:02 farhanf

afaik my PR (https://github.com/fastlane/fastlane-plugin-firebase_test_lab/pull/70) has fixed this, we just need a new release of the plugin but perhaps you can install this from my branch??

graemerycyk avatar Feb 14 '20 20:02 graemerycyk

You're right that did fix it. Ended up cloning and applying the same fix you did. Using fastlane from inside Gitlab CI runner so I have to provide gems with local path anyway.

Now my issue is that the build products (zip file) from fastlane scan with the build_for_testing flag is not being accepted by Test Lab. But if I upload the same zip using the Firebase console GUI it works and performs the test? Not sure what the issue is here, any guidance appreciated.

farhanf avatar Feb 15 '20 01:02 farhanf

Current version of Fastlane (2.185.1) requires google-cloud-storage (~> 1.31)

Bundler could not find compatible versions for gem "google-cloud-storage":
  In Gemfile:
    fastlane was resolved to 2.185.1, which depends on
      google-cloud-storage (~> 1.31)

    fastlane-plugin-firebase_test_lab was resolved to 1.0.2, which depends on
      google-cloud-storage (~> 1.13.0)

billibala avatar Jun 23 '21 09:06 billibala

Current version of Fastlane (2.185.1) requires google-cloud-storage (~> 1.31)

Bundler could not find compatible versions for gem "google-cloud-storage":
  In Gemfile:
    fastlane was resolved to 2.185.1, which depends on
      google-cloud-storage (~> 1.31)

    fastlane-plugin-firebase_test_lab was resolved to 1.0.2, which depends on
      google-cloud-storage (~> 1.13.0)

@billibala The guys already changed it on master, but still not published a new version yet. See this issue.

MartyCatawiki avatar Jun 23 '21 11:06 MartyCatawiki

Is this released? I'm having the same issue now, it seems the file on master was updated but when I use this command fastlane add_plugin firebase_test_lab, the version it installed still has this problem.

nhhai avatar Sep 07 '21 08:09 nhhai