question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Post Gems cache remains running indefinitely, does not respect timeout-minutes

See original GitHub issue

Steps to reproduce

  1. Add deploy step to Ruby project that uses actions/cache:
      - name: Gem cache
        id: gem-cache
        timeout-minutes: 15
        uses: actions/cache@v1.0.3
        with:
          path: vendor/bundle
          key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
          restore_keys: |
            ${{ runner.os }}-gem-
  1. Add deploy step that triggers GAE deploy, e.g. using actions-hub/gcloud@273.0.0

What happens

  1. Post Gem cache step remains running indefinitely even after all other steps finish successfully, e.g. more than an hour:

Screenshot 2019-12-17 at 14 04 02

  1. timeout-minutes of the step is not respected

What should happen

  1. No error should happen
  2. If task hangs, timeout-minutes should be respected

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joshmgrosscommented, Apr 2, 2020

👋 hashFiles has been updated on the runner to correctly handle symlink loops (see actions/runner#234).

@ain do you still see this issue?

1reaction
aincommented, Dec 17, 2019

UPDATE: issue occured over a background process following Gem cache step.

When the process got killed, Post Gem cache succeeded.

Read more comments on GitHub >

github_iconTop Results From Across the Web

hashfiles() expression function needs to handle symlink loop ...
When user has symlink loop in the folder they trying to hash, ... Post Gems cache remains running indefinitely, does not respect ......
Read more >
Gem install hangs indefinitely - ruby - Stack Overflow
If gem install is hanging, it's most likely a network, proxy, or firewall issue on your end. You can investigate by issuing your...
Read more >
The best way to manage a Ruby application's gems - Bundler
First, it says that bundler should look for gems declared in the Gemfile at ... rack-cache still depends on rack , bundler will...
Read more >
Understanding How Rbenv, RubyGems And Bundler Work ...
Bundler restricts access to gems installed but not specified in our Gemfile ... it ensures that only the dependencies specified in our Gemfile...
Read more >
7 Github Actions Tricks I Wish I Knew Before I Started
Not only that, it will also trigger for any push to the branch that is initiating the pull request. This is a good...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found