feat(tests): overhaul staging test infrastructure and update fixtures#1392
feat(tests): overhaul staging test infrastructure and update fixtures#1392
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1392 +/- ##
==========================================
- Coverage 77.53% 77.53% -0.01%
==========================================
Files 225 225
Lines 14614 14613 -1
==========================================
- Hits 11331 11330 -1
Misses 3283 3283 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
.github/workflows/staging-tests.yaml
Outdated
| - name: Clean staging environment | ||
| run: make clean-staging TOKEN=${{ secrets.PYTHON_SDK_STG_API_KEY }} |
There was a problem hiding this comment.
| - name: Clean staging environment | |
| run: make clean-staging TOKEN=${{ secrets.PYTHON_SDK_STG_API_KEY }} | |
| - name: Clean staging environment | |
| run: make clean-staging | |
| env: | |
| TOKEN: ${{ secrets.PYTHON_SDK_STG_API_KEY }} |
Either use secrets in env or with.
44844f3 to
54e15b1
Compare
|
I analyzed why there were some of the bigger deletes in the fixtures The new pattern uses safe_delete() which only calls the delete, no verification list: This removes the final GET ...?page=0&size=500 call that verified the entity was gone. |
7a6168a to
b8b6a13
Compare
- Add staging test workflow and configuration - Overhaul test conftest and catalog test files for staging support - Add docker-compose env vars, clean_staging and upload_demo_layout scripts - Fix LLM provider patch to use InAttributes after spec change - Add alternativeDataSourceId to data source fixture - Fix docs CI (toml dep, stale artifacts, baseURL, Hugo caching) - Add docs API reference pre-rendering and tests - Add AIDA onboarding artifacts
b8b6a13 to
d2e0811
Compare
.github/workflows/staging-tests.yaml
Outdated
| - name: Install dependencies | ||
| run: uv sync --all-groups --locked |
There was a problem hiding this comment.
This is too broad. Consider checking out .github/workflows/rw-python-tests.yaml and unit-tests.
There was a problem hiding this comment.
Fixed to run: uv sync --group test --locked
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Added staging test support (PYTHON_DEX), which required rewrites in the test
infrastructure (dynamic PostgreSQL URL replacement instead of duplicating fixtures)
and a new CI workflow for pre-merge staging tests.
Changes by commit
1.
chore: regenerate API client from updated OpenAPI spec2.
feat(ci): add staging test infrastructure and harden test setupstaging-tests.yamlworkflow (triggered by label,/test-stagingcomment, or manual dispatch)conftest.pyfor dynamic data source URL replacement (staging vs local)clean_staging.pyandupload_demo_layout.pyhelper scriptsTOKEN=argumentInAttributesafter spec removedPatchAttributesalternativeDataSourceIdto data source fixture3.
chore: regenerate test cassettesTest plan
JIRA: DX-431
risk: low