Repository navigation
101 lines (88 loc) · 3.11 KB
/
Copy pathe2e-podman-test.yml
File metadata and controls
101 lines (88 loc) · 3.11 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
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: Podman E2E Test
on:
workflow_call:
inputs:
image-tag:
required: true
type: string
checkout-ref:
required: false
type: string
default: ""
gateway-artifact:
required: false
type: string
default: ""
prebuilt-conformance:
required: false
type: boolean
default: false
external-driver-binary:
required: false
type: string
default: ""
suite-matrix:
required: true
type: string
permissions:
actions: read
contents: read
packages: read
jobs:
e2e:
name: E2E (rust-podman-${{ matrix.suite }}, ${{ matrix.runner }})
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(inputs.suite-matrix) }}
env:
IMAGE_TAG: ${{ inputs.image-tag }}
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENSHELL_REGISTRY: ghcr.io/ai-openshell/openshell
OPENSHELL_SANDBOX_RUNTIME_IMAGE: ${{ format('ghcr.io/ai-openshell/openshell/sandbox:{0}', inputs.image-tag) }}
OPENSHELL_SUPERVISOR_IMAGE: ${{ format('ghcr.io/ai-openshell/openshell/supervisor:{0}', inputs.image-tag) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.checkout-ref || github.sha }}
persist-credentials: false
- uses: ./.github/actions/setup-e2e-cli
with:
conformance: ${{ inputs.prebuilt-conformance }}
- uses: ./.github/actions/setup-e2e-gateway
with:
artifact-name: ${{ inputs.gateway-artifact }}
- if: inputs.external-driver-binary != ''
uses: ./.github/actions/setup-e2e-driver
with:
binary: ${{ inputs.external-driver-binary }}
- uses: ./.github/actions/setup-e2e-podman
with:
podman-major: ${{ matrix.podman_major }}
podman-package-version: ${{ matrix.podman_package_version }}
conmon-package-version: ${{ matrix.conmon_package_version }}
- uses: ./.github/actions/load-e2e-images
with:
images: sandbox supervisor
engine: podman
- name: Log in to GHCR
run: echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
- name: Run tests
run: ${{ matrix.cmd }}
- name: Print AppArmor denials
if: always()
run: sudo dmesg | grep -E 'apparmor=.*DENIED|profile="unprivileged_userns"' | tail -100 || true
- name: Fail on pasta SIGTERM AppArmor denial
if: always()
run: |
set -euo pipefail
denials="$(sudo dmesg | grep -E 'profile="pasta".*requested_mask="receive".*signal=term.*peer="podman"' || true)"
if [ -n "${denials}" ]; then
echo "::error::pasta denied Podman's SIGTERM; Podman will use its SIGKILL fallback"
printf '%s\n' "${denials}"
exit 1
fi