Skip to content

PR from dependabot can be merged before all checks have passed #1833

@OptimumCode

Description

@OptimumCode

The initial discussion started here when dependabot PR was incompatible with code in one of the implementations but still was automatically merged.

The CI workflow contains automerge job that tries to merge the PR once the ci has passed. However, there are also build and pre-commit-hook jobs that can fail. And the PR should not be merged in this case.

We should find a way to make sure ALL checks are green. The protection rules for branches could be used here but the build job is optional (only if something was changed inside the implementation folder). This can cause problems in other PRs which do not modify the implementations.

The most obvious solution would be to move the build job execution (it is in images workflow) inside the ci workflow. However, there might be other ways - we should investigate them and if there is not other way, try to reorganize the images and ci workflows (probably make images callable from other workflows)

Metadata

Metadata

Assignees

No one assigned

    Labels

    internalNon-user-facing improvements

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions