fetch_ml/scripts/release/prepare.sh
Jeremie Fraeys 8b75f71a6a
refactor: reorganize scripts into categorized structure
Consolidate 26+ scattered scripts into maintainable hierarchy:

New Structure:
- ci/          CI/CD validation (checks.sh, test.sh, verify-paths.sh)
- dev/         Development workflow (smoke-test.sh, manage-artifacts.sh)
- release/     Release preparation (cleanup.sh, prepare.sh, sanitize.sh, verify.sh, verify-checksums.sh)
- testing/     Test infrastructure (unchanged)
- benchmarks/  Performance tools (track-performance.sh)
- maintenance/ System cleanup (unchanged)
- lib/         Shared functions (unchanged)

Key Changes:
- Unified 6 cleanup-*.sh scripts into release/cleanup.sh with targets
- Merged smoke-test-native.sh into dev/smoke-test.sh --native flag
- Renamed scripts to follow lowercase-hyphen convention
- Moved root-level scripts to appropriate categories
- Updated all Makefile references
- Updated scripts/README.md with new structure

Script count: 26 → 17 (35% reduction)

Breaking Changes:
- Old paths no longer exist, update any direct script calls
- Use make targets (e.g., make ci-checks) for stability
2026-02-18 17:56:59 -05:00

30 lines
770 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
cd "$PROJECT_ROOT"
echo "========================================"
echo "FetchML Release Preparation"
echo "========================================"
echo ""
# Run all cleanup phases
"${SCRIPT_DIR}/cleanup-docker.sh"
"${SCRIPT_DIR}/cleanup-podman.sh"
"${SCRIPT_DIR}/cleanup-secrets.sh"
"${SCRIPT_DIR}/sanitize-configs.sh"
"${SCRIPT_DIR}/cleanup-testdata.sh"
"${SCRIPT_DIR}/cleanup-logs.sh"
"${SCRIPT_DIR}/cleanup-state.sh"
# Run verification
echo ""
"${SCRIPT_DIR}/verify-release.sh"
echo ""
echo "========================================"
echo "Release preparation complete!"
echo "========================================"