Skip to content

Commit 549ecab

Browse files
KFLUXINFRA-3694 Add CI to validate tekton-kueue CEL expressions
Add a GitHub Actions workflow and Python test script that validates the tekton-kueue CEL configuration for internal-staging and internal-production. Tests run the actual tekton-kueue container via Podman to verify mutations produce correct queue-name labels, priority classes, and resource annotations for signing pipeline rate-limiting. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 92ab92a commit 549ecab

2 files changed

Lines changed: 538 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test Tekton-Kueue Configuration
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
paths:
7+
- 'components/kueue/**'
8+
- 'hack/test-tekton-kueue-config.py'
9+
- '.github/workflows/test-tekton-kueue-config.yaml'
10+
11+
jobs:
12+
test-tekton-kueue-config:
13+
name: Test Tekton-Kueue CEL expressions
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python 3
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install Python dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install PyYAML
28+
29+
- name: Install Podman
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y podman
33+
34+
- name: Check prerequisites
35+
run: |
36+
python hack/test-tekton-kueue-config.py --check-setup
37+
38+
- name: Run Tekton-Kueue configuration tests
39+
run: |
40+
python hack/test-tekton-kueue-config.py --verbose
41+
42+
- name: Report success
43+
if: success()
44+
run: |
45+
echo "✅ All Tekton-Kueue CEL expression tests passed successfully"

0 commit comments

Comments
 (0)