Skip to content

Commit 76f0978

Browse files
authored
CI setup sync + Ruby 3.1 drop (#688)
1 parent e466447 commit 76f0978

16 files changed

+347
-89
lines changed

.github/workflows/ci_linux_alpine_x86_64_musl.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ concurrency:
2929

3030
on:
3131
pull_request:
32-
branches: [ main, master ]
33-
push:
34-
branches: [ main, master ]
32+
branches: [ main ]
3533
schedule:
3634
- cron: '0 1 * * *'
3735

@@ -50,8 +48,6 @@ jobs:
5048
fail-fast: false
5149
matrix:
5250
include:
53-
- ruby: '3.1'
54-
alpine_version: '3.21'
5551
- ruby: '3.2'
5652
alpine_version: '3.21'
5753
- ruby: '3.2'
@@ -153,7 +149,6 @@ jobs:
153149
- '3.4'
154150
- '3.3'
155151
- '3.2'
156-
- '3.1'
157152
include:
158153
- ruby: '3.4'
159154
coverage: 'true'
@@ -195,3 +190,20 @@ jobs:
195190
git config --global --add safe.directory /workspace && \
196191
bundle config set --local path vendor/bundle && \
197192
bundle install && bundle exec ruby -S rspec'
193+
194+
ci-success:
195+
name: CI Linux Alpine x86_64 musl Success
196+
runs-on: ubuntu-latest
197+
if: always()
198+
needs:
199+
- specs_install
200+
- build_precompiled
201+
- specs_precompiled
202+
steps:
203+
- name: Check all jobs passed
204+
if: |
205+
contains(needs.*.result, 'failure') ||
206+
contains(needs.*.result, 'cancelled') ||
207+
contains(needs.*.result, 'skipped')
208+
run: exit 1
209+
- run: echo "All CI checks passed!"

.github/workflows/ci_linux_alpine_x86_64_musl_complementary.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,10 @@ on:
4545
schedule:
4646
- cron: '0 5 */3 * *'
4747
workflow_dispatch:
48-
push:
49-
paths:
50-
- '.github/workflows/ci_linux_alpine_x86_64_musl_complementary.yml'
51-
branches: [ main, master ]
5248
pull_request:
5349
paths:
5450
- '.github/workflows/ci_linux_alpine_x86_64_musl_complementary.yml'
55-
branches: [ main, master ]
51+
branches: [ main ]
5652

5753
permissions:
5854
contents: read
@@ -110,8 +106,6 @@ jobs:
110106
alpine_version: '3.21'
111107
- ruby: '3.2'
112108
alpine_version: '3.21'
113-
- ruby: '3.1'
114-
alpine_version: '3.21'
115109
steps:
116110
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
117111
with:
@@ -194,7 +188,6 @@ jobs:
194188
- '3.4'
195189
- '3.3'
196190
- '3.2'
197-
- '3.1'
198191
runs-on: ubuntu-latest
199192
steps:
200193
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -262,3 +255,20 @@ jobs:
262255
echo "Running $file with Ruby ${{ matrix.ruby }} (precompiled)"; \
263256
bundle exec ruby "$file" || exit 1; \
264257
done'
258+
259+
ci-success:
260+
name: CI Linux Complementary Alpine x86_64 musl Success
261+
runs-on: ubuntu-latest
262+
if: always()
263+
needs:
264+
- specs_install
265+
- build_precompiled
266+
- specs_precompiled
267+
steps:
268+
- name: Check all jobs passed
269+
if: |
270+
contains(needs.*.result, 'failure') ||
271+
contains(needs.*.result, 'cancelled') ||
272+
contains(needs.*.result, 'skipped')
273+
run: exit 1
274+
- run: echo "All CI checks passed!"

.github/workflows/ci_linux_debian_x86_64_gnu.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ concurrency:
4141

4242
on:
4343
pull_request:
44-
branches: [ main, master ]
45-
push:
46-
branches: [ main, master ]
44+
branches: [ main ]
4745
schedule:
4846
- cron: '0 1 * * *'
4947

@@ -64,13 +62,9 @@ jobs:
6462
- '3.4'
6563
- '3.3'
6664
- '3.2'
67-
- '3.1'
6865
debian:
6966
- 'bookworm'
7067
- 'trixie'
71-
exclude:
72-
- ruby: '3.1'
73-
debian: 'trixie'
7468
include:
7569
- ruby: '3.4'
7670
coverage: 'true'
@@ -219,13 +213,9 @@ jobs:
219213
- '3.4'
220214
- '3.3'
221215
- '3.2'
222-
- '3.1'
223216
debian:
224217
- 'bookworm'
225218
- 'trixie'
226-
exclude:
227-
- ruby: '3.1'
228-
debian: 'trixie'
229219
include:
230220
- ruby: '3.4'
231221
coverage: 'true'
@@ -269,3 +259,20 @@ jobs:
269259
git config --global --add safe.directory /workspace && \
270260
bundle config set --local path vendor/bundle && \
271261
bundle install && bundle exec rspec'
262+
263+
ci-success:
264+
name: CI Linux Debian Multi-Version x86_64 GNU Success
265+
runs-on: ubuntu-latest
266+
if: always()
267+
needs:
268+
- specs_install
269+
- build_precompiled
270+
- specs_precompiled
271+
steps:
272+
- name: Check all jobs passed
273+
if: |
274+
contains(needs.*.result, 'failure') ||
275+
contains(needs.*.result, 'cancelled') ||
276+
contains(needs.*.result, 'skipped')
277+
run: exit 1
278+
- run: echo "All CI checks passed!"

.github/workflows/ci_linux_debian_x86_64_gnu_complementary.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,10 @@ on:
5151
schedule:
5252
- cron: '0 3 */3 * *'
5353
workflow_dispatch:
54-
push:
55-
paths:
56-
- '.github/workflows/ci_linux_debian_x86_64_gnu_complementary.yml'
57-
branches: [ main, master ]
5854
pull_request:
5955
paths:
6056
- '.github/workflows/ci_linux_debian_x86_64_gnu_complementary.yml'
61-
branches: [ main, master ]
57+
branches: [ main ]
6258

6359
permissions:
6460
contents: read
@@ -135,13 +131,9 @@ jobs:
135131
- '3.4'
136132
- '3.3'
137133
- '3.2'
138-
- '3.1'
139134
debian:
140135
- 'bookworm'
141136
- 'trixie'
142-
exclude:
143-
- ruby: '3.1'
144-
debian: 'trixie'
145137
runs-on: ubuntu-latest
146138
steps:
147139
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -253,13 +245,9 @@ jobs:
253245
- '3.4'
254246
- '3.3'
255247
- '3.2'
256-
- '3.1'
257248
debian:
258249
- 'bookworm'
259250
- 'trixie'
260-
exclude:
261-
- ruby: '3.1'
262-
debian: 'trixie'
263251
runs-on: ubuntu-latest
264252
steps:
265253
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -332,3 +320,20 @@ jobs:
332320
echo "Running $file with Ruby ${{ matrix.ruby }} on ${{ matrix.debian }} (precompiled)"; \
333321
bundle exec ruby "$file" || exit 1; \
334322
done'
323+
324+
ci-success:
325+
name: CI Linux Complementary Debian Multi-Version x86_64 GNU Success
326+
runs-on: ubuntu-latest
327+
if: always()
328+
needs:
329+
- specs_install
330+
- build_precompiled
331+
- specs_precompiled
332+
steps:
333+
- name: Check all jobs passed
334+
if: |
335+
contains(needs.*.result, 'failure') ||
336+
contains(needs.*.result, 'cancelled') ||
337+
contains(needs.*.result, 'skipped')
338+
run: exit 1
339+
- run: echo "All CI checks passed!"

.github/workflows/ci_linux_ubuntu_aarch64_gnu.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ concurrency:
4040

4141
on:
4242
pull_request:
43-
branches: [ main, master ]
44-
push:
45-
branches: [ main, master ]
43+
branches: [ main ]
4644
schedule:
4745
- cron: '0 4 * * *'
4846

@@ -64,7 +62,6 @@ jobs:
6462
- '3.4'
6563
- '3.3'
6664
- '3.2'
67-
- '3.1'
6865
- 'jruby-10.0'
6966
ubuntu-version: ['22.04', '24.04']
7067
include:
@@ -191,7 +188,6 @@ jobs:
191188
- '3.4'
192189
- '3.3'
193190
- '3.2'
194-
- '3.1'
195191
ubuntu-version: ['22.04', '24.04']
196192
include:
197193
- ruby: '3.4'
@@ -269,3 +265,20 @@ jobs:
269265
RDKAFKA_EXT_PATH: ${{ github.workspace }}/ext
270266
run: |
271267
bundle exec rspec
268+
269+
ci-success:
270+
name: CI Linux Ubuntu aarch64 GNU Success
271+
runs-on: ubuntu-latest
272+
if: always()
273+
needs:
274+
- specs_install
275+
- build_precompiled
276+
- specs_precompiled
277+
steps:
278+
- name: Check all jobs passed
279+
if: |
280+
contains(needs.*.result, 'failure') ||
281+
contains(needs.*.result, 'cancelled') ||
282+
contains(needs.*.result, 'skipped')
283+
run: exit 1
284+
- run: echo "All CI checks passed!"

.github/workflows/ci_linux_ubuntu_aarch64_gnu_complementary.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# WHY COMPLEMENTARY TESTING FOR AARCH64:
99
# - ARM64 precompiled binary testing is stable (rarely breaks from code changes)
10-
# - Edge Ruby versions (3.1, 3.5-preview, JRuby) need testing but shouldn't block PRs
10+
# - Edge Ruby versions (3.5-preview, JRuby) need testing but shouldn't block PRs
1111
# - Integration specs test OS library compatibility, which changes with system updates
1212
# - ARM64 architecture has specific compilation and linking considerations
1313
# - These tests catch regressions from external changes (system libs, Ruby updates)
@@ -22,7 +22,7 @@
2222
# - Validates that removing build tools doesn't break precompiled usage
2323
#
2424
# EXTENDED COMPATIBILITY TESTING:
25-
# - Edge case Ruby versions: 3.1, 3.5.0-preview1, JRuby-10.0 on ARM64
25+
# - Edge case Ruby versions: 3.5.0-preview1, JRuby-10.0 on ARM64
2626
# - Integration specs testing system library compatibility
2727
# - Both compilation and precompiled flows for comprehensive coverage
2828
# - Cross-platform compatibility validation for aarch64 architecture
@@ -46,14 +46,10 @@ on:
4646
schedule:
4747
- cron: '0 4 */3 * *'
4848
workflow_dispatch:
49-
push:
50-
paths:
51-
- '.github/workflows/ci_linux_ubuntu_aarch64_gnu_complementary.yml'
52-
branches: [ main, master ]
5349
pull_request:
5450
paths:
5551
- '.github/workflows/ci_linux_ubuntu_aarch64_gnu_complementary.yml'
56-
branches: [ main, master ]
52+
branches: [ main ]
5753

5854
permissions:
5955
contents: read
@@ -128,7 +124,6 @@ jobs:
128124
- '3.4'
129125
- '3.3'
130126
- '3.2'
131-
- '3.1'
132127
- 'jruby-10.0'
133128
ubuntu-version: ['22.04', '24.04']
134129
include:
@@ -210,7 +205,6 @@ jobs:
210205
- '3.4'
211206
- '3.3'
212207
- '3.2'
213-
- '3.1'
214208
ubuntu-version: ['22.04', '24.04']
215209

216210
runs-on: ubuntu-${{ matrix.ubuntu-version }}-arm
@@ -293,3 +287,20 @@ jobs:
293287
echo "Running $file with Ruby ${{ matrix.ruby }} (precompiled)";
294288
bundle exec ruby "$file" || exit 1;
295289
done
290+
291+
ci-success:
292+
name: CI Linux Complementary Ubuntu aarch64 GNU Success
293+
runs-on: ubuntu-latest
294+
if: always()
295+
needs:
296+
- specs_install
297+
- build_precompiled
298+
- specs_precompiled
299+
steps:
300+
- name: Check all jobs passed
301+
if: |
302+
contains(needs.*.result, 'failure') ||
303+
contains(needs.*.result, 'cancelled') ||
304+
contains(needs.*.result, 'skipped')
305+
run: exit 1
306+
- run: echo "All CI checks passed!"

.github/workflows/ci_linux_ubuntu_x86_64_gnu.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ concurrency:
4040

4141
on:
4242
pull_request:
43-
branches: [ main, master ]
44-
push:
45-
branches: [ main, master ]
43+
branches: [ main ]
4644
schedule:
4745
- cron: '0 1 * * *'
4846

@@ -64,7 +62,6 @@ jobs:
6462
- '3.4'
6563
- '3.3'
6664
- '3.2'
67-
- '3.1'
6865
- 'jruby-10.0'
6966
ubuntu-version: ['22.04', '24.04']
7067
include:
@@ -201,7 +198,6 @@ jobs:
201198
- '3.4'
202199
- '3.3'
203200
- '3.2'
204-
- '3.1'
205201
ubuntu-version: ['22.04', '24.04']
206202
include:
207203
- ruby: '3.4'
@@ -279,3 +275,20 @@ jobs:
279275
RDKAFKA_EXT_PATH: ${{ github.workspace }}/ext
280276
run: |
281277
bundle exec rspec
278+
279+
ci-success:
280+
name: CI Linux Ubuntu x86_64 GNU Success
281+
runs-on: ubuntu-latest
282+
if: always()
283+
needs:
284+
- specs_install
285+
- build_precompiled
286+
- specs_precompiled
287+
steps:
288+
- name: Check all jobs passed
289+
if: |
290+
contains(needs.*.result, 'failure') ||
291+
contains(needs.*.result, 'cancelled') ||
292+
contains(needs.*.result, 'skipped')
293+
run: exit 1
294+
- run: echo "All CI checks passed!"

0 commit comments

Comments
 (0)