Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long execution on Linux #47

Open
mig35 opened this issue May 27, 2020 · 2 comments
Open

Long execution on Linux #47

mig35 opened this issue May 27, 2020 · 2 comments

Comments

@mig35
Copy link

mig35 commented May 27, 2020

Hi, thanks for the awesome plugin!

I have a question. I'm using fastlane to deploy my flutter project and it looks like fastlane is doing too much work in ubuntu comparing to mac-os.

If I run my code in ubuntu it takes about 6 minutes for my project, while on mac-os only 1.5 minute.

The yml file is here:

 - name: Cache Fastlane
        id: cache-fastlane
        uses: actions/cache@v1
        with:
          path: 'vendor/bundle'
          key: ${{ runner.os }}-fastlane
- uses: maierj/[email protected]
        with:
          lane: 'deploy_internal'
          subdirectory: 'android'
          bundle-install-path: 'vendor/bundle'

This is true because before my lane it is installing a lot of things for ubuntu:

Executing lane deploy_internal on Linux.
Moving to subdirectory android
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:29: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:30: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:29: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:30: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecated
Successfully installed slack-notifier-2.3.2
Successfully installed atomos-0.1.3
Successfully installed CFPropertyList-3.0.2
Successfully installed claide-1.0.3
Successfully installed colored2-3.1.2
Successfully installed nanaimo-0.2.6
Successfully installed xcodeproj-1.16.0
Successfully installed rouge-2.0.7
Successfully installed xcpretty-0.3.0
Successfully installed terminal-notifier-2.0.0
Successfully installed unicode-display_width-1.7.0
Successfully installed terminal-table-1.8.0
Successfully installed plist-3.5.0
Successfully installed public_suffix-2.0.5
......
......
Done installing documentation for slack-notifier, atomos, CFPropertyList, claide, colored2, nanaimo, xcodeproj, rouge, xcpretty, terminal-notifier, unicode-display_width, terminal-table, plist, public_suffix, addressable, multipart-post, word_wrap, tty-screen, tty-cursor, tty-spinner, babosa, colored, highline, commander-fastlane, excon, unf_ext, unf, domain_name, http-cookie, faraday, faraday-cookie_jar, faraday_middleware, fastimage, gh_inspector, json, mini_magick, multi_xml, rubyzip, security, xcpretty-travis-formatter, dotenv, naturally, simctl, jwt, declarative-option, declarative, uber, representable, retriable, mini_mime, multi_json, signet, memoist, os, googleauth, httpclient, google-api-client, google-cloud-env, google-cloud-errors, google-cloud-core, digest-crc, google-cloud-storage, emoji_regex, jmespath, aws-partitions, aws-eventstream, aws-sigv4, aws-sdk-core, aws-sdk-kms, aws-sdk-s3, fastlane after 270 seconds
71 gems installed

Can you help how to solve this?

@mig35 mig35 changed the title Long execution Long execution on Linux May 27, 2020
@maierj
Copy link
Owner

maierj commented May 31, 2020

Have you tried to check the output value cache-hit of the cache action? It indicates, if there was a match for the cache key.
You could insert a step between the cache step and the fastlane step that just echos this value, e.g.

- name: Cache Fastlane
  id: cache-fastlane
  uses: actions/cache@v1
  with:
    path: 'vendor/bundle'
    key: ${{ runner.os }}-fastlane
- name: Debug cache
  run: echo "Cache-Hit: ${{ steps.cache-fastlane.outputs.cache-hit }}"
- uses: maierj/[email protected]
  with:
    lane: 'deploy_internal'
    subdirectory: 'android'
    bundle-install-path: 'vendor/bundle'

@mig35
Copy link
Author

mig35 commented Jul 10, 2020

hey @maierj ,
sorry for a really long delay - was out of the project, but now returned

Run actions/cache@v1
  with:
    path: vendor/bundle
    key: Linux-fastlane
  env:
    JAVA_HOME: /opt/hostedtoolcache/jdk/12.0.2/x64
    JAVA_HOME_12.0.2_x64: /opt/hostedtoolcache/jdk/12.0.2/x64
    FLUTTER_HOME: /opt/hostedtoolcache/flutter/1.17.4-stable/x64
Cache not found for input keys: Linux-fastlane.
Run echo "Cache-Hit "
  echo "Cache-Hit "
  shell: /bin/bash -e ***0***
  env:
    JAVA_HOME: /opt/hostedtoolcache/jdk/12.0.2/x64
    JAVA_HOME_12.0.2_x64: /opt/hostedtoolcache/jdk/12.0.2/x64
    FLUTTER_HOME: /opt/hostedtoolcache/flutter/1.17.5-stable/x64
Cache-Hit 
Post job cleanup.
/bin/tar -cz -f /home/runner/work/_temp/9297a40a-5957-4da2-9543-627586a3a283/cache.tgz -C /home/runner/work/training-flutter/training-flutter/vendor/bundle .
/bin/tar: /home/runner/work/training-flutter/training-flutter/vendor/bundle: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
[warning]Tar failed with error: The process '/bin/tar' failed with exit code 2

The interesting thing that I haven't run bundle install anywhere, but I thought this is a part of fastlane-action, wasn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants