Repository navigation
859 lines (816 loc) · 33.7 KB
/
Copy pathbranch-e2e.yml
File metadata and controls
859 lines (816 loc) · 33.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
name: Branch E2E Checks
# Jobs load the images this run builds from workflow artifacts instead of a
# registry, so fork PRs run E2E with their read-only token.
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
workflow_dispatch: {}
permissions: {}
# Labeling a PR with anything but an E2E label starts a run that skips every
# job. Give that run its own group so it cannot cancel a real one.
concurrency:
group: >-
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}${{
github.event.action == 'labeled' && !startsWith(github.event.label.name, 'test:e2e')
&& format('-{0}', github.run_id) || '' }}
cancel-in-progress: true
jobs:
pr_metadata:
name: Resolve PR metadata
runs-on: ubuntu-latest
permissions: {}
outputs:
should_run: ${{ steps.labels.outputs.should_run }}
sha: ${{ steps.labels.outputs.sha }}
run_integration: ${{ steps.labels.outputs.run_core_e2e }}
run_core_e2e: ${{ steps.labels.outputs.run_core_e2e }}
run_kubernetes_ha_e2e: ${{ steps.labels.outputs.run_kubernetes_ha_e2e }}
run_kubernetes_credential_drivers_e2e: ${{ steps.labels.outputs.run_kubernetes_credential_drivers_e2e }}
run_continuity_e2e: ${{ steps.labels.outputs.run_continuity_e2e }}
run_any_e2e: ${{ steps.labels.outputs.run_any_e2e }}
steps:
- id: labels
env:
EVENT_NAME: ${{ github.event_name }}
EVENT_ACTION: ${{ github.event.action }}
EVENT_LABEL: ${{ github.event.label.name }}
LABELS_JSON: ${{ toJSON(github.event.pull_request.labels.*.name) }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
DISPATCH_SHA: ${{ github.sha }}
shell: bash
run: |
set -euo pipefail
should_run=true
case "$EVENT_NAME" in
pull_request)
sha="$PR_HEAD_SHA"
if [ "$EVENT_ACTION" = labeled ] && [[ "$EVENT_LABEL" != test:e2e* ]]; then
should_run=false
fi
run_core_e2e="$(jq -r 'index("test:e2e") != null' <<< "$LABELS_JSON")"
run_kubernetes_ha_e2e="$(jq -r 'index("test:e2e-kubernetes") != null' <<< "$LABELS_JSON")"
run_kubernetes_credential_drivers_e2e="$(jq -r 'index("test:e2e-kubernetes") != null' <<< "$LABELS_JSON")"
run_continuity_e2e="$(jq -r 'index("test:e2e:continuity") != null' <<< "$LABELS_JSON")"
;;
*)
sha="$DISPATCH_SHA"
run_core_e2e=true
run_kubernetes_ha_e2e=false
run_kubernetes_credential_drivers_e2e=false
run_continuity_e2e=true
;;
esac
if [ "$should_run" = false ]; then
run_core_e2e=false
run_kubernetes_ha_e2e=false
run_kubernetes_credential_drivers_e2e=false
run_continuity_e2e=false
fi
if [ "$run_core_e2e" = "true" ] || [ "$run_kubernetes_ha_e2e" = "true" ] || [ "$run_kubernetes_credential_drivers_e2e" = "true" ]; then
run_any_e2e=true
else
run_any_e2e=false
fi
{
echo "should_run=$should_run"
echo "sha=$sha"
echo "run_core_e2e=$run_core_e2e"
echo "run_kubernetes_ha_e2e=$run_kubernetes_ha_e2e"
echo "run_kubernetes_credential_drivers_e2e=$run_kubernetes_credential_drivers_e2e"
echo "run_continuity_e2e=$run_continuity_e2e"
echo "run_any_e2e=$run_any_e2e"
} >> "$GITHUB_OUTPUT"
version:
needs: [pr_metadata]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_any_e2e == 'true'
permissions:
contents: read
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
cargo: ${{ steps.version.outputs.cargo }}
deb_version: ${{ steps.version.outputs.deb_version }}
rpm_version: ${{ steps.version.outputs.rpm_version }}
rpm_release: ${{ steps.version.outputs.rpm_release }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.pr_metadata.outputs.sha }}
fetch-depth: 0
persist-credentials: false
- name: Compute version
id: version
run: |
cargo="$(python3 tasks/scripts/release.py get-version --cargo)"
deb_version="$(python3 tasks/scripts/release.py get-version --dev --deb)"
rpm_version="$(python3 tasks/scripts/release.py get-version --dev --rpm-version)"
rpm_release="$(python3 tasks/scripts/release.py get-version --dev --rpm-release)"
{
echo "cargo=$cargo"
echo "deb_version=$deb_version"
echo "rpm_version=$rpm_version"
echo "rpm_release=$rpm_release"
} >> "$GITHUB_OUTPUT"
build-binaries-linux:
needs: [pr_metadata, version]
permissions:
contents: read
uses: ./.github/workflows/build-binaries-linux.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
cargo-version: ${{ needs.version.outputs.cargo }}
experimental: true
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
build-binaries-macos:
needs: [pr_metadata, version]
permissions:
contents: read
uses: ./.github/workflows/build-binaries-macos.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
cargo-version: ${{ needs.version.outputs.cargo }}
experimental: true
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
build-gateway-plain:
name: openshell-gateway driver-free (${{ matrix.triple }})
needs: [pr_metadata, version]
if: needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
contents: read
strategy:
matrix:
include:
- triple: x86_64-unknown-linux-gnu
runner: ubuntu-24.04
- triple: aarch64-unknown-linux-gnu
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ needs.pr_metadata.outputs.sha }}
- uses: ./.github/actions/setup-nix
with:
prepare-shell: "true"
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: ./.github/actions/build-rust-binary
with:
package: openshell-gateway
binary: openshell-gateway
artifact-name: openshell-gateway-plain-${{ matrix.triple }}
triple: ${{ matrix.triple }}
cargo-version: ${{ needs.version.outputs.cargo }}
extra-cargo-flags: --no-default-features
# The conformance program, built once per architecture for the host lanes.
# It lives in its own workspace and is not released, so it is not part of
# build-binaries-linux.yml.
build-conformance:
name: openshell-conformance (${{ matrix.triple }})
needs: [pr_metadata]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_any_e2e == 'true'
permissions:
contents: read
strategy:
matrix:
include:
- triple: x86_64-unknown-linux-musl
runner: ubuntu-24.04
- triple: aarch64-unknown-linux-musl
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ needs.pr_metadata.outputs.sha }}
- uses: ./.github/actions/setup-nix
with:
prepare-shell: "true"
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: ./.github/actions/setup-rust
with:
cache-key: binaries-v2-openshell-conformance-${{ matrix.triple }}
save-cache: ${{ github.ref == 'refs/heads/main' }}
- name: Build openshell-conformance
shell: nix develop -c bash -euo pipefail {0}
env:
# Build into the root target directory, which setup-rust caches.
CARGO_TARGET_DIR: ${{ github.workspace }}/target
TRIPLE: ${{ matrix.triple }}
run: |
cargo build --release --locked --target "$TRIPLE" \
--manifest-path tests/suites/conformance/Cargo.toml \
--bin openshell-conformance
binary="target/$TRIPLE/release/openshell-conformance"
# The program must run on any lane host.
tasks/scripts/verify-static-binary.sh "$binary"
# Fails if the program has no tests linked.
"$binary" list
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: openshell-conformance-${{ matrix.triple }}
path: target/${{ matrix.triple }}/release/openshell-conformance
compression-level: 0
retention-days: 5
if-no-files-found: error
# The test bundles of the tmachine E2E suites rows that don't run
# openshell-conformance, built once per run instead of in every row (see
# e2e-suites.yml). The rows only run on amd64, so only the x86_64 guest
# target is built. Each bundle holds its whole family; a row picks its
# package at run time. Rust Cache (rust-cache.yml) saves the cache on main;
# keep the env and build commands aligned with its e2e-bundles job.
build-e2e-bundles:
name: E2E suite bundles (x86_64-unknown-linux-musl)
needs: [pr_metadata]
if: needs.pr_metadata.outputs.run_integration == 'true'
permissions:
contents: read
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ needs.pr_metadata.outputs.sha }}
- uses: ./.github/actions/setup-nix
with:
prepare-shell: "true"
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: ./.github/actions/setup-rust
with:
cache-key: e2e-bundles-v1-x86_64-unknown-linux-musl
- name: Build the bundles
env:
# One target directory for every family, so later families reuse
# testkit-ready and the dependencies the first one built. It is the
# root target directory, which setup-rust caches.
CARGO_TARGET_DIR: ${{ github.workspace }}/target
# Every row downloads the bundles. Line tables keep backtraces
# readable at a third of the size of full debuginfo.
CARGO_PROFILE_DEV_DEBUG: line-tables-only
run: |
set -euo pipefail
# Retry dependency preparation, then build once.
nix build --no-link .#openshell-test-runner || nix build --no-link .#openshell-test-runner
for family in features drivers/podman; do
nix run .#openshell-test-runner -- build \
--family "$family" --out "artifacts/e2e-bundles/${family//\//-}"
done
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: openshell-e2e-bundle-features-x86_64-unknown-linux-musl
path: artifacts/e2e-bundles/features
retention-days: 5
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: openshell-e2e-bundle-drivers-podman-x86_64-unknown-linux-musl
path: artifacts/e2e-bundles/drivers-podman
retention-days: 5
if-no-files-found: error
build-external-drivers:
name: ${{ matrix.binary }} (${{ matrix.triple }})
needs: [pr_metadata, version]
if: needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
contents: read
strategy:
matrix:
include:
- package: openshell-driver-docker
binary: openshell-driver-docker
triple: x86_64-unknown-linux-gnu
runner: ubuntu-24.04
- package: openshell-driver-podman
binary: openshell-driver-podman
triple: x86_64-unknown-linux-gnu
runner: ubuntu-24.04
- package: openshell-driver-kubernetes
binary: openshell-driver-kubernetes
triple: x86_64-unknown-linux-gnu
runner: ubuntu-24.04
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ needs.pr_metadata.outputs.sha }}
- uses: ./.github/actions/setup-nix
with:
prepare-shell: "true"
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: ./.github/actions/build-rust-binary
with:
package: ${{ matrix.package }}
binary: ${{ matrix.binary }}
triple: ${{ matrix.triple }}
cargo-version: ${{ needs.version.outputs.cargo }}
build-vm-driver-linux:
needs: [pr_metadata, version, build-binaries-linux]
if: needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
contents: read
uses: ./.github/workflows/build-vm-driver-linux.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
cargo-version: ${{ needs.version.outputs.cargo }}
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
build-vm-driver-macos:
needs: [pr_metadata, version, build-binaries-linux, build-binaries-macos]
if: needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
contents: read
uses: ./.github/workflows/build-vm-driver-macos.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
cargo-version: ${{ needs.version.outputs.cargo }}
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
build-images:
needs: [pr_metadata, build-binaries-linux]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_any_e2e == 'true'
permissions:
contents: read
packages: write
uses: ./.github/workflows/build-images.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
image-tag: ${{ needs.pr_metadata.outputs.sha }}
push-images: false
build-deb:
name: Build Debian packages
needs: [pr_metadata, version, build-binaries-linux, build-vm-driver-linux]
if: needs.pr_metadata.outputs.run_integration == 'true'
permissions:
contents: read
uses: ./.github/workflows/deb-package.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
deb-version: ${{ needs.version.outputs.deb_version }}
build-rpm:
name: Build RPM packages
needs: [pr_metadata, version, build-binaries-linux]
if: needs.pr_metadata.outputs.run_integration == 'true'
permissions:
actions: read
contents: read
uses: ./.github/workflows/rpm-package.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
rpm-version: ${{ needs.version.outputs.rpm_version }}
rpm-release: ${{ needs.version.outputs.rpm_release }}
cargo-version: ${{ needs.version.outputs.cargo }}
# Test inputs don't depend on the packages, so build them while the packages
# build instead of in prepare-integration.
build-tmachine-test-inputs:
name: Build tmachine test inputs
needs: [pr_metadata]
if: needs.pr_metadata.outputs.run_integration == 'true'
permissions:
contents: read
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ needs.pr_metadata.outputs.sha }}
- uses: ./.github/actions/setup-nix
- name: Build test archives
run: |
# Retry dependency preparation, then generate artifacts once.
nix build --no-link .#build-artifacts-test-archives || nix build --no-link .#build-artifacts-test-archives
nix run .#build-artifacts-test-archives
- name: Build test workload images
run: |
# Retry dependency preparation, then generate artifacts once.
nix build --no-link .#build-artifacts-test-images || nix build --no-link .#build-artifacts-test-images
nix run .#build-artifacts-test-images
- name: Package Helm chart
run: |
# Retry dependency preparation, then generate artifacts once.
nix build --no-link .#build-artifacts-helm || nix build --no-link .#build-artifacts-helm
nix run .#build-artifacts-helm
- name: Upload tmachine test inputs
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: openshell-tmachine-test-inputs
path: artifacts
compression-level: 0
retention-days: 5
if-no-files-found: error
prepare-integration:
needs: [pr_metadata, build-binaries-linux, build-images, build-deb, build-rpm, build-tmachine-test-inputs, build-external-drivers]
if: needs.pr_metadata.outputs.run_integration == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/prepare-integration-inputs.yml
with:
source-sha: ${{ needs.pr_metadata.outputs.sha }}
deb-artifact-name: deb-linux-amd64
rpm-artifact-name: rpm-linux-x86_64
test-inputs-artifact-name: openshell-tmachine-test-inputs
external-drivers: true
# Run driver-independent conformance tests.
conformance-integration:
needs: [prepare-integration, build-conformance]
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-suites.yml
with:
family: conformance
prebuilt: true
external-drivers: true
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
# Run the testkit feature suites (tests/suites/features) on tmachine. The
# environments and suites are listed in e2e-suites.yml.
feature-specific-integration:
needs: [prepare-integration, build-e2e-bundles]
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-suites.yml
with:
family: features
prebuilt: true
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
# Run the testkit driver suites (tests/suites/drivers) on tmachine. The
# environments and suites are listed in e2e-suites.yml.
driver-specific-integration:
needs: [prepare-integration, build-e2e-bundles]
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-suites.yml
with:
family: drivers
prebuilt: true
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
# Run the continuity suites (tests/suites/continuity) on tmachine: state
# seeded before a disruption, such as a gateway restart or an upgrade from the
# latest release, must survive it. The label adds to test:e2e, whose builds it
# reuses.
continuity-integration:
needs: [pr_metadata, prepare-integration]
if: needs.pr_metadata.outputs.run_integration == 'true' && needs.pr_metadata.outputs.run_continuity_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-suites.yml
with:
family: continuity
upgrade-source: true
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
# Run the Podman e2e suite on tmachine against the packaged gateway.
podman-e2e-integration:
needs: prepare-integration
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/integration-runner.yml
with:
category: driver-specific
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
test-matrix: >-
[
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"e2e-podman"}
]
docker-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-docker-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
runner: ubuntu-24.04-arm
podman-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-podman-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
suite-matrix: >-
[{"suite":"ci","runner":"ubuntu-26.04","podman_major":"5","podman_package_version":"5.7.0+ds2-3build1","conmon_package_version":"2.1.13+ds1-2","cmd":"mise run --no-deps --skip-deps e2e:podman:ci"}]
podman-additional-ca-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-podman-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
suite-matrix: >-
[{"suite":"additional-ca","runner":"ubuntu-26.04","podman_major":"5","podman_package_version":"5.7.0+ds2-3build1","conmon_package_version":"2.1.13+ds1-2","cmd":"OPENSHELL_E2E_PODMAN_TEST=additional_ca mise run --no-deps --skip-deps e2e:podman"}]
vm-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-vm-driver-linux]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-vm-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
vm-additional-ca-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-vm-driver-linux]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-vm-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
suite-name: additional-ca
test-name: additional_ca
podman-external-driver-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-gateway-plain, build-external-drivers, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-podman-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
gateway-artifact: openshell-gateway-plain-x86_64-unknown-linux-gnu
external-driver-binary: openshell-driver-podman
suite-matrix: >-
[{"suite":"external-driver","runner":"ubuntu-26.04","podman_major":"5","podman_package_version":"5.7.0+ds2-3build1","conmon_package_version":"2.1.13+ds1-2","cmd":"mise run --no-deps --skip-deps e2e:podman:external-driver"}]
vm-external-driver-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-gateway-plain, build-vm-driver-linux]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-vm-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
gateway-artifact: openshell-gateway-plain-x86_64-unknown-linux-gnu
suite-name: external-driver
e2e-task: e2e:vm:external-driver
kubernetes-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
strategy:
fail-fast: false
matrix:
include:
- agent_sandbox_api: v1beta1
agent_sandbox_version: v1.0.3
job_name: Kubernetes E2E (Rust smoke, Agent Sandbox v1beta1)
test_name: ""
- agent_sandbox_api: v1alpha1
agent_sandbox_version: v0.4.6
job_name: Kubernetes E2E (Rust smoke, Agent Sandbox v1alpha1)
test_name: ""
- agent_sandbox_api: v1beta1
agent_sandbox_version: v0.5.0
job_name: Kubernetes E2E (additional destination CA, Agent Sandbox v1beta1)
test_name: additional_ca
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-kubernetes-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
job-name: ${{ matrix.job_name }}
agent-sandbox-version: ${{ matrix.agent_sandbox_version }}
test-name: ${{ matrix.test_name }}
kubernetes-app-listener-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
strategy:
fail-fast: false
matrix:
include:
- topology: dedicated
delivery: push
takeover: graceful
name: dedicated push
- topology: dedicated
delivery: poll
takeover: graceful
name: dedicated poll
- topology: shared
delivery: push
takeover: graceful
name: shared graceful takeover
- topology: shared
delivery: push
takeover: abrupt
name: shared abrupt takeover
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-kubernetes-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
job-name: Kubernetes app listener (${{ matrix.name }})
e2e-task: e2e:kubernetes:app-listener
enforce-network-policy: true
listener-topology: ${{ matrix.topology }}
listener-delivery: ${{ matrix.delivery }}
listener-takeover: ${{ matrix.takeover }}
kubernetes-workspace-managed-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-kubernetes-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
job-name: Kubernetes E2E (workspace managed mode)
e2e-task: e2e:kubernetes:workspace-managed
kubernetes-external-driver-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-gateway-plain, build-external-drivers, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-kubernetes-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
job-name: Kubernetes E2E (external compute driver)
e2e-task: e2e:kubernetes:external-driver
gateway-artifact: openshell-gateway-plain-x86_64-unknown-linux-gnu
external-driver-binary: openshell-driver-kubernetes
cluster-images: sandbox supervisor
kubernetes-workspace-operator-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-kubernetes-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
job-name: Kubernetes E2E (workspace operator mode)
e2e-task: e2e:kubernetes:workspace-operator
kubernetes-tracing-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-kubernetes-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
job-name: Kubernetes E2E (trace export)
e2e-task: e2e:kubernetes:tracing
kubernetes-ha-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_ha_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-kubernetes-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
job-name: Kubernetes HA E2E (Rust smoke)
extra-helm-values: deploy/helm/openshell/ci/values-high-availability.yaml
external-postgres-secret: openshell-ha-pg
test-name: kubernetes_ha_rebalancing
kubernetes-features: e2e,e2e-host-gateway,e2e-kubernetes,e2e-kubernetes-ha
use-envoy-gateway: true
kubernetes-credential-drivers-e2e:
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_credential_drivers_e2e == 'true'
permissions:
actions: read
contents: read
packages: read
uses: ./.github/workflows/e2e-kubernetes-test.yml
with:
checkout-ref: ${{ needs.pr_metadata.outputs.sha }}
prebuilt-conformance: true
image-tag: ${{ needs.pr_metadata.outputs.sha }}
job-name: Kubernetes Credential Drivers E2E
e2e-task: e2e:kubernetes:credential-drivers
core-e2e-result:
name: Core E2E result
needs:
- pr_metadata
- build-binaries-macos
- build-vm-driver-macos
- conformance-integration
- feature-specific-integration
- driver-specific-integration
- podman-e2e-integration
- docker-e2e
- podman-e2e
- podman-additional-ca-e2e
- vm-e2e
- vm-additional-ca-e2e
- podman-external-driver-e2e
- vm-external-driver-e2e
- kubernetes-e2e
- kubernetes-app-listener-e2e
- kubernetes-external-driver-e2e
- kubernetes-workspace-managed-e2e
- kubernetes-workspace-operator-e2e
- kubernetes-tracing-e2e
if: always() && needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: ./.github/actions/check-job-results
with:
results: ${{ toJSON(needs) }}
kubernetes-ha-e2e-result:
name: Kubernetes HA E2E result
needs: [pr_metadata, build-binaries-macos, kubernetes-ha-e2e]
if: always() && needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_ha_e2e == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: ./.github/actions/check-job-results
with:
results: ${{ toJSON(needs) }}
kubernetes-credential-drivers-e2e-result:
name: Kubernetes Credential Drivers E2E result
needs: [pr_metadata, build-binaries-macos, kubernetes-credential-drivers-e2e]
if: always() && needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_credential_drivers_e2e == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: ./.github/actions/check-job-results
with:
results: ${{ toJSON(needs) }}