Skip to content

Commit dde8244

Browse files
committed
checkpoint
1 parent 158224f commit dde8244

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3022
-3
lines changed

.github/workflows/e2e_tests.yaml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,31 +115,55 @@ jobs:
115115
kubectl create clusterrolebinding sdk-user-service-reader --clusterrole=service-reader --user=sdk-user
116116
kubectl create clusterrole port-forward-pods --verb=create --resource=pods/portforward
117117
kubectl create clusterrolebinding sdk-user-port-forward-pods-binding --clusterrole=port-forward-pods --user=sdk-user
118+
kubectl create clusterrole pod-creator-full --verb=get,list,watch,create,delete --resource=pods
119+
kubectl create clusterrolebinding sdk-user-pod-creator-full --clusterrole=pod-creator-full --user=sdk-user
120+
kubectl create clusterrole pod-logs --verb=get --resource=pods/log
121+
kubectl create clusterrolebinding sdk-user-pod-logs --clusterrole=pod-logs --user=sdk-user
122+
kubectl create clusterrole configmap-creator --verb=get,list,create,delete --resource=configmaps
123+
kubectl create clusterrolebinding sdk-user-configmap-creator --clusterrole=configmap-creator --user=sdk-user
118124
kubectl config use-context sdk-user
119125
120-
- name: Run e2e tests
126+
- name: Run e2e tests (legacy)
121127
run: |
122128
export CODEFLARE_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }}
123129
echo "CODEFLARE_TEST_OUTPUT_DIR=${CODEFLARE_TEST_OUTPUT_DIR}" >> $GITHUB_ENV
124130
125131
set -euo pipefail
126132
pip install poetry
127133
poetry install --with test,docs
128-
echo "Running e2e tests..."
134+
echo "Running legacy e2e tests..."
129135
poetry run pytest -v -s ./tests/e2e/ -m 'kind and nvidia_gpu' > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output.log 2>&1
130136
env:
131137
GRPC_DNS_RESOLVER: "native"
132138

139+
- name: Run e2e_v2 tests
140+
run: |
141+
export CODEFLARE_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }}
142+
set -euo pipefail
143+
echo "Running e2e_v2 tests..."
144+
# Run tier1 tests for Kind platform
145+
poetry run pytest -v -s ./tests/e2e_v2/ -m 'kind and tier1' > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_e2e_v2_output.log 2>&1 || true
146+
echo "e2e_v2 tests completed"
147+
env:
148+
GRPC_DNS_RESOLVER: "native"
149+
continue-on-error: true # Allow legacy tests to run even if v2 fails during migration
150+
133151
- name: Switch to kind-cluster context to print logs
134152
if: always() && steps.deploy.outcome == 'success'
135153
run: kubectl config use-context kind-cluster
136154

137155
- name: Print Pytest output log
138156
if: always() && steps.deploy.outcome == 'success'
139157
run: |
140-
echo "Printing Pytest output logs"
158+
echo "Printing Pytest output logs (legacy e2e)"
141159
cat ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output.log
142160
161+
- name: Print e2e_v2 Pytest output log
162+
if: always() && steps.deploy.outcome == 'success'
163+
run: |
164+
echo "Printing e2e_v2 Pytest output logs"
165+
cat ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_e2e_v2_output.log || echo "No e2e_v2 output found"
166+
143167
- name: Print CodeFlare operator logs
144168
if: always() && steps.deploy.outcome == 'success'
145169
run: |

tests/e2e_v2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# E2E Test Suite v2
2+
# Restructured pytest-based E2E tests for CodeFlare SDK

tests/e2e_v2/cluster_management/__init__.py

Whitespace-only changes.

tests/e2e_v2/cluster_management/configuration/__init__.py

Whitespace-only changes.

tests/e2e_v2/cluster_management/configuration/test_advanced.py

Whitespace-only changes.

tests/e2e_v2/cluster_management/configuration/test_heterogeneous.py

Whitespace-only changes.

tests/e2e_v2/cluster_management/configuration/test_images.py

Whitespace-only changes.

tests/e2e_v2/cluster_management/configuration/test_resources.py

Whitespace-only changes.

tests/e2e_v2/cluster_management/configuration/test_volumes.py

Whitespace-only changes.

tests/e2e_v2/cluster_management/creation/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)