Skip to content

Commit dd808c0

Browse files
committed
add py version to system tests
1 parent aa910d1 commit dd808c0

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

.github/workflows/experiment.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,6 @@ jobs:
138138
echo "::error::Tests failed after 3 attempts. This is a hard failure."
139139
exit 1
140140
141-
# ==========================================
142-
# 5. SYSTEM TESTS
143-
# ==========================================
144141
# ==========================================
145142
# 5. SYSTEM TESTS
146143
# ==========================================
@@ -155,13 +152,6 @@ jobs:
155152
python: ["3.11"]
156153
steps:
157154
- uses: actions/checkout@v4
158-
- id: 'auth'
159-
name: 'Authenticate to Google Cloud'
160-
uses: 'google-github-actions/auth@v2'
161-
with:
162-
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
163-
service_account: ${{ secrets.WIF_SERVICE_ACCOUNT }}
164-
165155
- uses: astral-sh/setup-uv@v5
166156
with:
167157
python-version: ${{ matrix.python }}
@@ -171,13 +161,9 @@ jobs:
171161
- name: Execute System Tests
172162
env:
173163
RUN_SYSTEM_TESTS: "true"
174-
# ADDED: Inject the required environment variables for the tests
175-
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} # Update to match your legacy YAML's secret name
176164
run: |
177165
cd ${{ matrix.package }}
178166
export NOX_DEFAULT_VENV_BACKEND=uv
179-
180-
# FIXED: Append the exact matrix version to stop Nox from running all versions sequentially
181167
uvx --with 'nox[uv]' nox -s system-${{ matrix.python }}
182168
183169
# ==========================================

test.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Ensure you are on the sandbox branch
2+
git checkout experiment-testing-infra
3+
4+
# Loop through the first 15 packages and inject an actual test file
5+
for dir in $(find packages -mindepth 1 -maxdepth 1 -type d | head -n 15); do
6+
# Ensure the target directory exists
7+
mkdir -p "${dir}/tests/unit"
8+
9+
# Inject the passing test
10+
cat << 'EOF' > "${dir}/tests/unit/test_scale_validation.py"
11+
def test_fan_out_execution():
12+
"""Verify L5 Fan-Out architecture executes successfully."""
13+
assert True
14+
EOF
15+
done
16+
17+
# Commit and push the massive execution test
18+
git add packages/
19+
git commit -m "test: inject dummy unit tests across 15 packages to verify concurrent execution"
20+
git push origin ci-architecture-prototype

0 commit comments

Comments
 (0)