refactor: migrate to Phase 4 DinD test templates
Summary
Migrate test jobs to use Phase 4 DinD templates from common-ci-configuration, replacing 160+ lines of inline scripting with composable templates.
Before vs After
Before: 168 lines of inline bash in .test-with-docker-compose
After: 8 lines extending .haf_app_dind_complete_test
Changes
-
Variable aliases - Added
APP_SYNC_CACHE_TYPE,APP_CACHE_KEY,HAF_APP_SCHEMAfor template compatibility -
Replaced
.test-with-docker-compose- Now extends.haf_app_dind_complete_testfrom common-ci -
Test jobs unchanged -
regression-test,setup-scripts-test,performance-test,pattern-testinherit new behavior
Templates Used
| Template | Purpose |
|---|---|
.haf_app_dind_complete_test |
Complete test job (combines all below) |
.haf_app_dind_extract_cache |
Cache extraction with blockchain handling |
.haf_app_dind_compose_startup |
Create ci.env and start compose |
.haf_app_dind_wait_for_services |
Wait for PostgreSQL/PostgREST with DNS fix |
.haf_app_dind_compose_teardown |
Log collection and cleanup |
Dependencies
Currently points to feat/phase4-dind-test-templates branch. Update to develop after MR !150 is merged.
Test plan
- All test jobs pass (regression-test, setup-scripts-test, performance-test, pattern-test)
- Verify cache extraction works correctly
- Verify PostgreSQL and PostgREST service waits work
- Verify log collection on job completion