Repository navigation
Description
Coming from opensearch-project/.github#368
TL;DR
- While working on [PROPOSAL] Automate merging of branch version bump PRs opensearch-build#5501 that aims at auto-merging pull requests for version increment PRs for releases, it was observed that the only check "required" by all the plugin repositories is "code review by codeowners". If the PR is approved, the auto-merge feature of GitHub considers it good to go and merges the pull requests.
- Rather than creating a custom CI validation check, we are utilizing GitHub's built-in "required checks" feature in repository settings to enforce CI passing as a merge requirement.
- This approach ensures better code quality through automated validation and reduces potential issues during distribution integration testing.
Action Item:
Please add a comment to this issue with a comprehensive list of all workflows that should pass before a PR is eligible for merging.
Note that without the required checks passing, developers will not be able to merge the pull requests no matter what.
The comment should include a detailed breakdown of individual checks within each workflow, highlighting their granularity. For example, specify checks for different operating systems (e.g., Linux, Windows, macOS) and Java/node versions (e.g. 21, 24). For instance, setting only the Linux build with Java 24 a required check, rather than enforcing all possible matrix combinations.
This granular approach will allow developers to tailor the required checks to their project's needs, balancing thorough validation with practical development workflows.
Check out any PR on core repositories or check out the
to see what the contributor experience would look like.
Who will be able to bypass the required check:
Only the organization admins.
We have an issue open to also add maintainers in the by-pass list. Please add your thoughts if required.
What if the workflows are different for different branches?
The required checks are set in the RULESET/branches tab of github repository settings. These settings can be enabled as default (applies to all branches) or pattern specific branches.
Check it out in your fork (settings > rules > rulesets > New rule > Require status checks to pass > Add checks)
What if the required workflow is not longer valid (example linux jdk-24 changed to linux jdk-25) ?
In that case, please tag @opensearch-project/admin in the Pull Request making the change and the required checks will be updated in the repo settings.
Check list
- Added a comment to this issue with the list of all the "required" CI checks that needs to pass before a PR is eligible to be merged.
- Checks have been enabled (Will be take care by opensearch-project/admin)
- Verified that checks are working as expected
Please let me know if you have any questions. Thanks!
Activity
Swiddis commentedon Sep 9, 2025
I think the answer to this heavily depends on whether we'll be allowed to bypass them or not. It looks like the discussion is tending to "no," in which case almost no checks qualify, and we don't want to auto-merge version bumps so we can audit CI breakage. But if it's a "yes" then almost all checks qualify. ref: opensearch-project/.github#356 (comment)
As a tentative answer, I nominate the checks I put up for using in the merge queue: https://github.com/opensearch-project/sql/pull/4216/files. (ref: opensearch-project/.github#381)
If you really need automerge and are unwilling to enable required check bypass, I'd much prefer this be done by a bot/application/userscript that just checks the CI itself, instead of changing required check admin settings for this. Something like this will probably be necessary to rerun CI in dependency order anyway, since e.g. SQL's version bump CI won't pass until core, job scheduler, and geospatial all merge their own version bumps.
gaiksaya commentedon Oct 9, 2025
We are trying not to reinvent the wheel by checking the status that github would already do for us. If everything passes, the auto-merge would merge the PR as soon as checks are green. If checks are failing, the bot would re-run in timely manner. If merge queue is doing the job for us in this repo, that works as well. We just need some gatekeeping in such a way that when auto-merge is enabled, CI checks should be required not just code reviews.
Thanks!
gaiksaya commentedon Oct 16, 2025
Requesting the maintainers again to please take the required action as soon as possible. If you believe, the checks are already in place please close this issue.
Thanks!
qianheng-aws commentedon Apr 1, 2026
@gaiksaya Thanks for this proposal!
It should check these CIs before merging version bump PR: