Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][ci] Don't allow merging PR without successful result #22563

Merged
merged 1 commit into from Apr 23, 2024

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Apr 23, 2024

Motivation

Currently it's possible to merge a PR when it hasn't been approved at all and no tests have run. This was previously possible when a draft PR had been approved and then made ready to review. Another case was that where the PR had skipped running the build because of not being approved or having the ready-to-test label and then being approved before the tests where run. The reason for this is that the required job "Pulsar CI checks completed" got skipped in this case.

Modifications

  • Fix the rules for Pulsar CI checks completed build step in the workflow.
  • Continue to skip the step for cancelled scheduled jobs for other repositories than apache/pulsar.
  • Add some comments to explain the logic
  • Explicitly require preconditions build step to succeed

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 3.3.0 milestone Apr 23, 2024
@lhotari lhotari self-assigned this Apr 23, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Apr 23, 2024
@BewareMyPower BewareMyPower merged commit 358c7cc into apache:master Apr 23, 2024
61 of 63 checks passed
Technoboy- pushed a commit to Technoboy-/pulsar that referenced this pull request Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants