Skip to content

test ci - #6579

Closed
rafaelespinoza wants to merge 2 commits into
avelino:mainfrom
rafaelespinoza:ci-fix_auto_merge-test
Closed

test ci#6579
rafaelespinoza wants to merge 2 commits into
avelino:mainfrom
rafaelespinoza:ci-fix_auto_merge-test

Conversation

@rafaelespinoza

Copy link
Copy Markdown
Contributor
  • ci: verify all PR checks before triggering auto-merge
    Fixes CI failures in TestDuplicatedLinks, TestAlpha #6550.

    The auto-merge job in pr-quality-check.yaml relies on native
    needs gates, which only evaluate jobs inside the same workflow file.
    Consequently, failures in external workflows (such as tests.yaml)
    were not visible to this job, allowing PRs to auto-merge despite failing
    tests.

    This change adds a pre-check step using gh pr checks that:

    1. Verifies that the evaluated HEAD commit matches the current commit.
      Intended to address race conditions that may occur due to new pushes.
    2. Filters out the active workflow run using github.run_id.
    3. Verifies all external PR checks are in a passing state (SUCCESS,
      SKIPPED, or NEUTRAL).
  • mv verify script to scripts/ dir

Fixes avelino#6550.

The `auto-merge` job in `pr-quality-check.yaml` relies on native
`needs` gates, which only evaluate jobs inside the same workflow file.
Consequently, failures in external workflows (such as `tests.yaml`)
were not visible to this job, allowing PRs to auto-merge despite failing
tests.

This change adds a pre-check step using `gh pr checks` that:

1. Verifies that the evaluated HEAD commit matches the current commit.
   Intended to address race conditions that may occur due to new pushes.
2. Filters out the active workflow run using `github.run_id`.
3. Verifies all external PR checks are in a passing state (SUCCESS,
   SKIPPED, or NEUTRAL).
@github-actions

Copy link
Copy Markdown

Automated Quality Checks

Skipped — this PR does not modify README.md, so package quality checks do not apply.

This is expected for maintenance, documentation, or workflow PRs.

@rafaelespinoza
rafaelespinoza deleted the ci-fix_auto_merge-test branch August 14, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI failures in TestDuplicatedLinks, TestAlpha

1 participant