actions / actions/toolkit

No timeout for stuck command

Open
#839 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

I created a basic ExpressJS server and was using Github Actions for the very first time, and in the jobs, I created two steps, one to install the dependencies: npm install and another to run the server: npm start. And since the command is not producing any output for long, I expect this to be terminated anyhow after a certain timeout. But it is running indefinitely (31 mins and counting).

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repo
  2. Try running workflow manually

Expected behavior
Any command which is kinda stuck, which means not producing any output or change should be terminated after a specific period of time. More precisely, there should be a timeout for every command.

Screenshots
Screenshot 2021-06-08 at 3 15 40 PM

If this happens on a number of workflows, it may give birth to downtime for Github Actions.
I've stopped mine 🙂.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by cloning the repository and running the workflow manually with npm install followed by npm start; observe the command that produces no output. Define and verify timeout behavior for stuck commands, including the expected handling of long-running server processes.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.