Skip to content

Commit 6a4ebb9

Browse files
yehudit1987Yehudit KeridoCopilotrootfs
authored
feat: Add aibrix profile for E2E testing framework (#688)
* feat: Add aibrix profile for E2E testing framework Signed-off-by: Yehudit Kerido <[email protected]> * Update e2e/profiles/aibrix/profile.go Co-authored-by: Copilot <[email protected]> Signed-off-by: yehudit1987 <[email protected]> --------- Signed-off-by: Yehudit Kerido <[email protected]> Signed-off-by: yehudit1987 <[email protected]> Co-authored-by: Yehudit Kerido <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Huamin Chen <[email protected]>
1 parent 1c8c932 commit 6a4ebb9

File tree

6 files changed

+830
-82
lines changed

6 files changed

+830
-82
lines changed

.github/workflows/integration-test-k8s.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ jobs:
1313
integration-test:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 60
16+
strategy:
17+
fail-fast: false # Continue testing other profiles even if one fails
18+
matrix:
19+
profile: [ai-gateway, aibrix]
1620

1721
steps:
1822
- name: Check out the repo
@@ -61,11 +65,11 @@ jobs:
6165
run: |
6266
make build-e2e
6367
64-
- name: Run Integration E2E tests
68+
- name: Run Integration E2E tests (${{ matrix.profile }})
6569
id: e2e-test
6670
run: |
6771
set +e # Don't exit on error, we want to capture the result
68-
make e2e-test E2E_PROFILE=ai-gateway E2E_VERBOSE=true E2E_KEEP_CLUSTER=false
72+
make e2e-test E2E_PROFILE=${{ matrix.profile }} E2E_VERBOSE=true E2E_KEEP_CLUSTER=false
6973
TEST_EXIT_CODE=$?
7074
echo "test_exit_code=${TEST_EXIT_CODE}" >> $GITHUB_OUTPUT
7175
exit ${TEST_EXIT_CODE}
@@ -74,7 +78,7 @@ jobs:
7478
if: always()
7579
uses: actions/upload-artifact@v4
7680
with:
77-
name: test-reports
81+
name: test-reports-${{ matrix.profile }}
7882
path: |
7983
test-report.json
8084
test-report.md
@@ -123,25 +127,26 @@ jobs:
123127
fi
124128
125129
# Add additional context
126-
cat >> $GITHUB_STEP_SUMMARY << 'EOF'
130+
cat >> $GITHUB_STEP_SUMMARY << EOF
127131
128132
---
129133
130134
### 📚 Additional Resources
131135
136+
- **Profile:** \`${{ matrix.profile }}\`
132137
- **Trigger:** ${{ github.event_name }}
133-
- **Branch:** `${{ github.ref_name }}`
134-
- **Commit:** `${{ github.sha }}`
138+
- **Branch:** \`${{ github.ref_name }}\`
139+
- **Commit:** \`${{ github.sha }}\`
135140
- **Workflow Run:** [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
136141
- [E2E Test Framework Documentation](https://github.com/${{ github.repository }}/tree/main/e2e)
137-
- [AI Gateway Profile](https://github.com/${{ github.repository }}/tree/main/e2e/profiles/ai-gateway)
142+
- [${{ matrix.profile }} Profile](https://github.com/${{ github.repository }}/tree/main/e2e/profiles/${{ matrix.profile }})
138143
139144
### 📦 Artifacts
140145
141146
- **test-report.json** - Detailed test results in JSON format
142147
- **test-report.md** - Human-readable test report
143148
- **semantic-router-logs.txt** - Complete semantic-router pod logs
144-
- All artifacts are retained for 30 days
149+
- All artifacts are retained for 30 days as \`test-reports-${{ matrix.profile }}\`
145150
EOF
146151
else
147152
echo "⚠️ Test report file not found!" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)