Skip to content

GitHub Actions: Find and implement fail-fast strategy #1248

Closed

Description

@lukpueh

Description of issue or feature request:

#1242 added a GitHub Actions based CI workflow, which runs all configured builds in parallel, ignoring each others build results. However, GitHub Actions provides an option (i.e. fail-fast), to abort all builds if any build fails. This option might be useful for specific build relationships, where one failing build is likely to entail other failing builds.

Current behavior:
fail-fast: false

Expected behavior:
Consider fail-fast: true (default) but with specific conditions, e.g. prioritize lint build and abort any other build if that one fails.

Activity

  1. lukpueh commented on Jan 12, 2021

    @lukpueh
    MemberAuthor

    Another way to do this would be to make lint and test builds different jobs and configure needs: [<lint job>] on the test job.

  2. added
    good first issue
    on Mar 16, 2022
  3. added
    github_actions
    on Apr 20, 2022
  4. shabeebk commented on Feb 5, 2023

    @shabeebk
    Contributor

    I have made some changes in the GitHub actions file to achieve the below intentions.

    1. Run the lint job as the first job in the matrix.
    2. Fail all of the follow-up jobs if lint fails.
    3. Allow failure of other jobs is lint passed.

    Please review the PR. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    github_actionsgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions