Skip to content

Commit 9f518bd

Browse files
committed
feat: add integration test CI and resource limits
- Add integration-tests job in GitHub Actions (runs on PRs only) - Add explicit resource requests/limits to all workflow templates - convert-geozarr: 6Gi/10Gi memory, 2/4 CPU - validate: 2Gi/4Gi memory, 1/2 CPU - register-stac: 1Gi/2Gi memory, 500m/1 CPU - augment-stac: 1Gi/2Gi memory, 500m/1 CPU Prevents pod eviction and enables predictable scheduling
1 parent 32bfef4 commit 9f518bd

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,29 @@ jobs:
5252
with:
5353
files: ./coverage.xml
5454
fail_ci_if_error: false
55+
56+
integration-tests:
57+
runs-on: ubuntu-latest
58+
if: github.event_name == 'pull_request'
59+
strategy:
60+
matrix:
61+
python-version: ["3.11"]
62+
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- name: Set up Python ${{ matrix.python-version }}
67+
uses: actions/setup-python@v5
68+
with:
69+
python-version: ${{ matrix.python-version }}
70+
71+
- name: Install uv
72+
uses: astral-sh/setup-uv@v3
73+
with:
74+
version: "latest"
75+
76+
- name: Install dependencies
77+
run: uv sync --all-extras
78+
79+
- name: Run integration tests
80+
run: uv run pytest tests/integration/ -v --tb=short

workflows/template.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ spec:
7777
image: ghcr.io/eopf-explorer/data-pipeline:{{workflow.parameters.pipeline_image_version}}
7878
imagePullPolicy: Always
7979
command: [bash, -c]
80+
resources:
81+
requests:
82+
memory: "6Gi"
83+
cpu: "2"
84+
limits:
85+
memory: "10Gi"
86+
cpu: "4"
8087
args:
8188
- |
8289
set -euo pipefail
@@ -172,6 +179,13 @@ spec:
172179
image: ghcr.io/eopf-explorer/data-pipeline:{{workflow.parameters.pipeline_image_version}}
173180
imagePullPolicy: Always
174181
command: [bash]
182+
resources:
183+
requests:
184+
memory: "2Gi"
185+
cpu: "1"
186+
limits:
187+
memory: "4Gi"
188+
cpu: "2"
175189
source: |
176190
set -euo pipefail
177191
@@ -218,6 +232,13 @@ spec:
218232
image: ghcr.io/eopf-explorer/data-pipeline:{{workflow.parameters.pipeline_image_version}}
219233
imagePullPolicy: Always
220234
command: [bash]
235+
resources:
236+
requests:
237+
memory: "1Gi"
238+
cpu: "500m"
239+
limits:
240+
memory: "2Gi"
241+
cpu: "1"
221242
source: |
222243
set -euo pipefail
223244
@@ -252,6 +273,14 @@ spec:
252273
image: ghcr.io/eopf-explorer/data-pipeline:{{workflow.parameters.pipeline_image_version}}
253274
imagePullPolicy: Always
254275
command: [bash]
276+
resources:
277+
requests:
278+
memory: "1Gi"
279+
cpu: "500m"
280+
limits:
281+
memory: "2Gi"
282+
cpu: "1"
283+
source: |
255284
source: |
256285
set -euo pipefail
257286

0 commit comments

Comments
 (0)