Skip to content

ci : add gatekeeper workflow for manual approval on non-master branches#33

Merged
ggerganov merged 1 commit into
masterfrom
gg/ci-gatekeeper
May 22, 2026
Merged

ci : add gatekeeper workflow for manual approval on non-master branches#33
ggerganov merged 1 commit into
masterfrom
gg/ci-gatekeeper

Conversation

@ggerganov
Copy link
Copy Markdown
Member

Overview

Add a reusable gatekeeper.yml workflow that gates CI runs on non-master branches behind a manual approval step via the ci-manual environment. On the master branch, the gatekeeper is a no-op (auto-approve).

The main build.yml is wired through the gatekeeper as the first example. Remaining workflow files will be wired in follow-up PRs.

How it works

  • Master branch: gatekeeper-auto job runs immediately — no delay
  • Non-master branches: gatekeeper-review job pauses and waits for manual approval from a reviewer assigned to the ci-manual environment

All downstream jobs use needs: [gatekeeper] so nothing runs until the gatekeeper clears.

Setup required

The ci-manual environment must be created in Settings → Environments with at least one required reviewer before non-master CI runs can proceed.

Requirements

- Add reusable gatekeeper.yml workflow with two paths:
  - Auto-approve on master branch
  - Require 'ci-manual' environment approval on non-master branches
- Wire build.yml through the gatekeeper as first example

Assisted-by: llama.cpp:local pi
@CISC
Copy link
Copy Markdown
Member

CISC commented May 21, 2026

Oh, nice.

@ggerganov
Copy link
Copy Markdown
Member Author

Yeah, I think we can even split the gatekeepers into sections (e.g. main, cuda, metal, etc.) and have different teams assigned to approve those.

@ggerganov ggerganov marked this pull request as ready for review May 22, 2026 07:33
@ggerganov ggerganov requested a review from a team as a code owner May 22, 2026 07:33
@ggerganov ggerganov merged commit b3d27c7 into master May 22, 2026
34 of 37 checks passed
@ggerganov
Copy link
Copy Markdown
Member Author

The auto-approve of the gatekeeper on master worked: https://github.com/ggml-org/tmp/actions/runs/26274760334/job/77336260892

@ggerganov
Copy link
Copy Markdown
Member Author

I will start implementing the gatekeepers in the main repo.

@CISC
Copy link
Copy Markdown
Member

CISC commented May 22, 2026

I will start implementing the gatekeepers in the main repo.

Great, with the added affinity we should be able to do more targeted workflow runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants