Skip to content

Ensure pull requests do not run redundant GitHub Actions workflows #11310

Description

@andyfeller

Overview

Both the Lint and Unit and Integration Tests workflows run on push and pull_request events. Unfortunately, these workflows run 2 sets of jobs on pull requests because the push event trigger is not restricted to trunk branch.

For example, the checks from #11306 demonstrates 7 redundant checks including build, integration-tests, and lint are performed:

Image

Reasons for not having redundant GitHub Actions workflow runs on PRs:

  • reduce wasted compute resources
  • remove potential problems caused by errors from redundant jobs
  • improve clarity of PR status
  • improve user experience of PR reviews

During discussion with maintainers, other maintainers agreed it was still valuable for these workflows to run when push to trunk branch happen especially for changes made outside of PRs.

Expected outcome

  • Aforementioned workflows only run once during pull requests
  • Aforementioned workflows run on pushes to trunk branch

Activity

  1. self-assigned this
    on Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions