Add HAF app testing templates

Summary

  • Add reusable CI templates for HAF-dependent applications
  • Provides composable building blocks for sync jobs, tavern tests, and change detection
  • Documented in docs/haf-app-testing-templates.md

Templates Added

Change Detection

  • .haf_app_detect_changes - Detects if only tests/docs changed

Sync Job Components

  • .haf_app_sync_variables - Common directory/compose variables
  • .haf_app_sync_setup - Docker login and git safe.directory
  • .haf_app_fetch_haf_cache - Simple HAF cache lookup
  • .haf_app_smart_cache_lookup - Advanced with QUICK_TEST and AUTO_SKIP_SYNC
  • .haf_app_copy_datadir - Copy datadir and fix ownership
  • .haf_app_copy_blockchain - Copy block_log
  • .haf_app_sync_shutdown - Checkpoint, logs, compose down
  • .haf_app_sync_save_cache - Save to local and NFS
  • .haf_app_sync_save_cache_conditional - Only saves if not cache hit
  • .haf_app_sync_cleanup - after_script cleanup
  • .haf_app_sync_artifacts - Artifacts config

Tavern Test Components

  • .tavern_test_variables, .tavern_install_deps, .tavern_run_tests, .tavern_test_artifacts

Test plan

  • reputation_tracker migrated and pipeline passing
  • balance_tracker migrated and pipeline passing

Merge request reports

Loading