[GH-ISSUE #1865] Concurrent job not being cancelled when there's a failure #906

Closed
opened 2026-03-01 21:47:19 +03:00 by kerem · 5 comments
Owner

Originally created by @thejcannon on GitHub (Jun 14, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1865

Bug report info

act version:            0.2.45
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 64
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:           
        /home/josh/.actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.18.10
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:         
        Build settings:
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.45 -X main.commit=f1df2ca5d6b315935cf9bb0d2a989175adf4e894 -X main.date=2023-05-01T02:18:49Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         f1df2ca5d6b315935cf9bb0d2a989175adf4e894
                vcs.time:             2023-05-01T02:18:34Z
                vcs.modified:         false
Docker Engine:
        Engine version:        24.0.2
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu 20.04.6 LTS
        OS type:               linux
        OS version:            20.04
        OS arch:               x86_64
        OS kernel:             5.15.0-73-generic
        OS CPU:                64
        OS memory:             128638 MB
        Security options:
                name=apparmor
                name=seccomp,profile=builtin

Command used with act

`act -W .github/workflows/test.yml`

Describe issue

When two jobs are running concurrently, and one fails, the other should be cancelled, but isn't.

github.com/thejcannon/ghatest@369bbae443/.github/workflows/test.yml

Workflow content

name: I'm a test

on:
  workflow_dispatch:

jobs:
  test:
    strategy:
      matrix:
        include: [{"maybe_sleep": "sleep 20"}, {"maybe_sleep": ""}]
    runs-on: ubuntu-20.04
    steps:
      - run: |
          ${{ matrix.maybe_sleep }}
          exit 1

Relevant log output

See this run: https://github.com/thejcannon/ghatest/actions/runs/5269596481/workflow

Additional information

No response

Originally created by @thejcannon on GitHub (Jun 14, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1865 ### Bug report info ```plain text act version: 0.2.45 GOOS: linux GOARCH: amd64 NumCPU: 64 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: /home/josh/.actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.18.10 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -compiler: gc -ldflags: -s -w -X main.version=0.2.45 -X main.commit=f1df2ca5d6b315935cf9bb0d2a989175adf4e894 -X main.date=2023-05-01T02:18:49Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: f1df2ca5d6b315935cf9bb0d2a989175adf4e894 vcs.time: 2023-05-01T02:18:34Z vcs.modified: false Docker Engine: Engine version: 24.0.2 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 20.04.6 LTS OS type: linux OS version: 20.04 OS arch: x86_64 OS kernel: 5.15.0-73-generic OS CPU: 64 OS memory: 128638 MB Security options: name=apparmor name=seccomp,profile=builtin ``` ### Command used with act ```sh `act -W .github/workflows/test.yml` ``` ### Describe issue When two jobs are running concurrently, and one fails, the other _should_ be cancelled, but isn't. ### Link to GitHub repository https://github.com/thejcannon/ghatest/blob/369bbae44349122082ac5af0282d7c7e7030b3dd/.github/workflows/test.yml ### Workflow content ```yml name: I'm a test on: workflow_dispatch: jobs: test: strategy: matrix: include: [{"maybe_sleep": "sleep 20"}, {"maybe_sleep": ""}] runs-on: ubuntu-20.04 steps: - run: | ${{ matrix.maybe_sleep }} exit 1 ``` ### Relevant log output See this run: https://github.com/thejcannon/ghatest/actions/runs/5269596481/workflow ### Additional information _No response_
kerem 2026-03-01 21:47:19 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 12, 2023):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:1851096868 --> @github-actions[bot] commented on GitHub (Dec 12, 2023): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@thejcannon commented on GitHub (Dec 12, 2023):

No bot! no! Don't do that!

<!-- gh-comment-id:1851224226 --> @thejcannon commented on GitHub (Dec 12, 2023): No bot! no! Don't do that!
Author
Owner

@github-actions[bot] commented on GitHub (Jun 10, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2156915676 --> @github-actions[bot] commented on GitHub (Jun 10, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@thejcannon commented on GitHub (Jun 10, 2024):

Not as stale as you'd like, Mr. Robot...

<!-- gh-comment-id:2157000377 --> @thejcannon commented on GitHub (Jun 10, 2024): Not as stale as you'd like, Mr. Robot...
Author
Owner

@github-actions[bot] commented on GitHub (Dec 8, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2525353470 --> @github-actions[bot] commented on GitHub (Dec 8, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#906
No description provided.