Skip to content

Action behavior inconsist with Github Action when first job fail #34821

Closed
@nienjiuntai

Description

@nienjiuntai

Description

When running multiple jobs in a workflow, the action status is mark failed as soon as first fail happend, this cause following problems

  1. remaining jobs can only be cancelled by rerun all jobs(only when there's no failure in an action show cancel buttom)
  2. remaining job status require refresh the website to update

This behavior is not consistant with Gitea v1.21.1(my previous version) and Github Action, following is the reproduce workflow

name: Gitea Action violate failing behavior demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
  Fail-Job:
    runs-on: ubuntu-latest
    steps:
      - name: fail the regression
        run: |
          exit 1
  Long-Running-Job:
    runs-on: ubuntu-latest
    steps:
      - name: wait for 5s then return 0
        run: |
          sleep 5

Gitea Version

1.24.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Running workflow with Github Action
Image

Running workflow with Gitea Action v1.24.2, after first job fail, the cancel icon change to rerun all, and the remaining job status only update when refresh UI
Image

Git Version

No response

Operating System

Centos

How are you running Gitea?

Self-hosted with release binary

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions