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.

Support timeout-minutes in composite-actions

See original GitHub issue

Describe the enhancement We would like to see timeout-minutes supported on steps in composite actions

Code Snippet If applicable, add a code snippet.

name: terraform-cache

inputs:
  working-directory:
    description: Directory to run terraform in
    required: false
    default: ""

runs:
  using: composite
  steps:
    - name: Cache Terraform
      uses: actions/cache@v3
      timeout-minutes: 2
      with:
        path: ${{ runner.temp }}/.terraform.d/plugin-cache
        key: ${{ runner.os }}-terraform-${{ inputs.working-directory }}-${{ hashFiles('**/.terraform.lock.hcl') }}
        restore-keys: |
          ${{ runner.os }}-terraform-${{ inputs.working-directory }}-
          ${{ runner.os }}-terraform-

Additional information Occasionally actions like actions/cache bug out (see https://github.com/actions/cache/issues/810 etc) and run for the default timeout time (6 hours) which causes unnecessary costs and extra work as CI will be left running and needs to be aborted and re-run. With the possibility to set timeout-minutes on steps in composite actions this damage could be limited and have actions finish in a timely manner even if the cache action fails.

I see from previous ADRs 0549 and 1144 that timeout-minutes are to be considered in the future and last mention it was waited with due to little buzz about this feature missing, so heres some buzz 🐝 🙂


NOTE: if the feature request has been agreed upon then the assignee will create an ADR. See docs/adrs/README.md

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:87
  • Comments:9

github_iconTop GitHub Comments

10reactions
PavanMudigondaTRcommented, Sep 8, 2022

+1000 behalf of all of our Developers and Automation Engineers who need this badly !

8reactions
asottile-sentrycommented, Jan 24, 2023

please stop commenting +1, many of us are subscribed to receive updates on this issue

  • if you want to see it happen, click the +1 react on the original issue
  • if you want to be notified about changes to this issue click the [subscribe] button on the right
  • but please please stop commenting +1, some of us are interested in updates to this and not comment spam
Read more comments on GitHub >

github_iconTop Results From Across the Web

runner/docs/adrs/0549-composite-run-steps.md at main
A composite action in its entirety is a job. You can set both timeout-minutes for the whole composite action or its steps as...
Read more >
Composite Run Steps GitHub Actions error
We don't support setting conditionals, continue-on-error, timeout-minutes, "uses", and secrets on individual steps within a composite action ...
Read more >
GitHub Actions timeout parameter | Scientific Computing
We often set a “pip” timeout of 1 or 2 minutes to ensure the CI is using wheels instead of compiling from source,...
Read more >
GitHub Actions - Composite Run Steps FIRST LOOK - YouTube
Book a 1:1 Consultation with CoderDave: https://geni.us/cdconsult SUPPORT THE CHANNEL Buy me a coffee: ...
Read more >
Getting Started with Github Actions: An In-Depth Technical ...
I set retries to 3 times, which means that the step will be retried up to 3 times if it fails. I also...
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