Phase 3: Add/improve reusable YAML blocks

Summary

Phase 3 of CI consolidation - creating reusable YAML blocks.

Changes

.haf_app_wait_for_postgrest (updated):

  • Add DinD DNS resolution fix using getent hosts docker
  • Add --max-time 5 to curl to prevent indefinite hangs
  • Add diagnostic output on timeout

This fixes the PostgREST connection issue seen in reputation_tracker tests where curl resolved docker to a different IP than other tools.

.cleanup_stale_cache (new):

  • Template for cleaning up cache directories with permission issues
  • Tests writability before operations
  • Uses sudo fallback for cleanup

Phase 3 Status

Template Status
.fetch_cache_manager Already exists
.haf_app_wait_for_postgres Already exists
.haf_app_wait_for_postgrest Updated (this MR)
.cleanup_stale_cache Added (this MR)
.cleanup_cache_manual_template Already exists
.cleanup_old_cache_template Already exists

Merge request reports

Loading