Skip to content

Commit d6becc8

Browse files
committed
Merge queue enabled
1 parent 315732a commit d6becc8

File tree

2 files changed

+52
-184
lines changed

2 files changed

+52
-184
lines changed

.github/merge-queue.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# GitHub Merge Queue Configuration for master-gmq branch
2+
# This file configures merge queue behavior for the master-gmq branch
3+
4+
merge_queue:
5+
# Required status checks that must pass before merging
6+
required_status_checks:
7+
- acceptance
8+
- check_generated_code
9+
- docker_image_amd64
10+
- examples_orms
11+
- lint
12+
- local_roachtest
13+
- local_roachtest_fips
14+
- linux_amd64_build
15+
- linux_amd64_fips_build
16+
- unit_tests
17+
18+
# Merge method to use
19+
merge_method: merge
20+
21+
# Maximum number of PRs that can be in the queue at once
22+
max_entries_to_build: 10
23+
24+
# Maximum number of PRs that can be built concurrently
25+
max_entries_to_merge: 5
26+
27+
# Minimum number of entries to batch together (1 means no batching)
28+
min_entries_for_update: 1
29+
30+
# Allow draft PRs in merge queue
31+
allow_draft_prs: false
32+
33+
# Automatically add PRs that meet criteria
34+
auto_merge_enabled: false
35+
36+
# Branch protection settings for the queue
37+
branch_protection:
38+
# Require branches to be up to date before merging
39+
strict: false
40+
41+
# Required status checks
42+
contexts:
43+
- acceptance
44+
- check_generated_code
45+
- docker_image_amd64
46+
- examples_orms
47+
- lint
48+
- local_roachtest
49+
- local_roachtest_fips
50+
- linux_amd64_build
51+
- linux_amd64_fips_build
52+
- unit_tests

.github/workflows/github-actions-essential-ci-gmq.yml

Lines changed: 0 additions & 184 deletions
Original file line numberDiff line numberDiff line change
@@ -168,190 +168,6 @@ jobs:
168168
echo "🔨 Building Linux AMD64 FIPS..."
169169
sleep 3
170170
echo "✅ Linux AMD64 FIPS build passed!"
171-
unit_tests:
172-
runs-on: ubuntu-latest
173-
timeout-minutes: 5
174-
steps:
175-
- uses: actions/checkout@v4
176-
with:
177-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
178-
- name: compute metadata
179-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
180-
- name: flaky test simulation
181-
uses: ./.github/actions/flaky-test-sim
182-
with:
183-
failure-rate: ${{ env.FLAKY_FAILURE_RATE }}
184-
test-name: "unit tests"
185-
- name: dummy unit tests
186-
run: |
187-
echo "🧪 Running unit tests..."
188-
sleep 3
189-
echo "✅ Unit tests passed!"name: GitHub Actions Essential CI (Master-gmq)
190-
on:
191-
merge_group:
192-
pull_request:
193-
types: [opened, reopened, synchronize]
194-
branches:
195-
- "master-gmq"
196-
push:
197-
branches:
198-
- "master-gmq"
199-
- "staging"
200-
- "trying"
201-
- "gmq-merge/**" # Support push-triggered mode for gmq Merge Queue
202-
workflow_dispatch:
203-
concurrency:
204-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
205-
cancel-in-progress: true
206-
207-
env:
208-
FLAKY_FAILURE_RATE: 10 # 10% chance of failure for non-stable branches
209-
jobs:
210-
acceptance:
211-
runs-on: ubuntu-latest
212-
timeout-minutes: 5
213-
steps:
214-
- uses: actions/checkout@v4
215-
with:
216-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
217-
- name: compute metadata
218-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
219-
- name: flaky test simulation
220-
uses: ./.github/actions/flaky-test-sim
221-
with:
222-
failure-rate: ${{ env.FLAKY_FAILURE_RATE }}
223-
test-name: "acceptance tests"
224-
- name: dummy acceptance tests
225-
run: |
226-
echo "🧪 Running acceptance tests..."
227-
sleep 3
228-
echo "✅ Acceptance tests passed!"
229-
check_generated_code:
230-
runs-on: ubuntu-latest
231-
timeout-minutes: 5
232-
steps:
233-
- uses: actions/checkout@v4
234-
with:
235-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
236-
- name: compute metadata
237-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
238-
- name: flaky test simulation
239-
uses: ./.github/actions/flaky-test-sim
240-
with:
241-
failure-rate: ${{ env.FLAKY_FAILURE_RATE }}
242-
test-name: "generated code check"
243-
- name: dummy check generated code
244-
run: |
245-
echo "🔍 Checking generated code..."
246-
sleep 3
247-
echo "✅ Generated code check passed!"
248-
docker_image_amd64:
249-
runs-on: ubuntu-latest
250-
timeout-minutes: 5
251-
steps:
252-
- uses: actions/checkout@v4
253-
with:
254-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
255-
- name: compute metadata
256-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
257-
- name: flaky test simulation
258-
uses: ./.github/actions/flaky-test-sim
259-
with:
260-
failure-rate: ${{ env.FLAKY_FAILURE_RATE }}
261-
test-name: "docker tests"
262-
- name: dummy docker tests
263-
run: |
264-
echo "🐳 Running docker tests..."
265-
sleep 3
266-
echo "✅ Docker tests passed!"
267-
examples_orms:
268-
runs-on: ubuntu-latest
269-
timeout-minutes: 5
270-
steps:
271-
- uses: actions/checkout@v4
272-
with:
273-
path: cockroach
274-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
275-
- name: compute metadata
276-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
277-
- name: dummy ORM tests
278-
run: |
279-
echo "🔗 Running ORM examples tests..."
280-
sleep 3
281-
echo "✅ ORM tests passed!"
282-
lint:
283-
runs-on: ubuntu-latest
284-
timeout-minutes: 5
285-
steps:
286-
- uses: actions/checkout@v4
287-
with:
288-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
289-
submodules: true
290-
- name: compute metadata
291-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
292-
- name: dummy lint tests
293-
run: |
294-
echo "🧹 Running lint tests..."
295-
sleep 3
296-
echo "✅ Lint tests passed!"
297-
local_roachtest:
298-
runs-on: ubuntu-latest
299-
timeout-minutes: 5
300-
steps:
301-
- uses: actions/checkout@v4
302-
with:
303-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
304-
submodules: true
305-
- name: compute metadata
306-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
307-
- name: dummy local roachtests
308-
run: |
309-
echo "🚀 Running local roachtests..."
310-
sleep 3
311-
echo "✅ Local roachtests passed!"
312-
local_roachtest_fips:
313-
runs-on: ubuntu-latest
314-
timeout-minutes: 5
315-
steps:
316-
- uses: actions/checkout@v4
317-
with:
318-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
319-
submodules: true
320-
- name: compute metadata
321-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
322-
- name: dummy FIPS roachtests
323-
run: |
324-
echo "🔒 Running FIPS roachtests..."
325-
sleep 3
326-
echo "✅ FIPS roachtests passed!"
327-
linux_amd64_build:
328-
runs-on: ubuntu-latest
329-
timeout-minutes: 5
330-
steps:
331-
- uses: actions/checkout@v4
332-
with:
333-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
334-
- name: compute metadata
335-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
336-
- name: dummy build
337-
run: |
338-
echo "🔨 Building Linux AMD64..."
339-
sleep 3
340-
echo "✅ Linux AMD64 build passed!"
341-
linux_amd64_fips_build:
342-
runs-on: ubuntu-latest
343-
timeout-minutes: 5
344-
steps:
345-
- uses: actions/checkout@v4
346-
with:
347-
ref: ${{ github.event.pull_request.head.sha || github.ref }}
348-
- name: compute metadata
349-
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
350-
- name: dummy FIPS build
351-
run: |
352-
echo "🔨 Building Linux AMD64 FIPS..."
353-
sleep 3
354-
echo "✅ Linux AMD64 FIPS build passed!"
355171
unit_tests:
356172
runs-on: ubuntu-latest
357173
timeout-minutes: 5

0 commit comments

Comments
 (0)