From 2de41c98835fd0e97845f0626dc4b98c0df9e811 Mon Sep 17 00:00:00 2001 From: ggman12 Date: Thu, 12 Feb 2026 12:01:13 -0500 Subject: [PATCH] update historical. To check tar and fail fast if any maps fail --- .github/workflows/historical-adsb.yaml | 27 ++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/historical-adsb.yaml b/.github/workflows/historical-adsb.yaml index 456d500..596833a 100644 --- a/.github/workflows/historical-adsb.yaml +++ b/.github/workflows/historical-adsb.yaml @@ -81,8 +81,22 @@ jobs: - name: Create tar of extracted data run: | cd data/output - tar -cf extracted_data.tar *-planes-readsb-prod-0.tar_0 icao_manifest_*.txt 2>/dev/null || echo "Some files may not exist" - ls -lah extracted_data.tar || echo "No tar created" + echo "=== Disk space before tar ===" + df -h . + echo "=== Files to tar ===" + ls -lah *-planes-readsb-prod-0.tar_0 icao_manifest_*.txt 2>/dev/null || echo "No files found" + + # Create tar with explicit error checking + if ls *-planes-readsb-prod-0.tar_0 1>/dev/null 2>&1; then + tar -cvf extracted_data.tar *-planes-readsb-prod-0.tar_0 icao_manifest_*.txt + echo "=== Tar file created ===" + ls -lah extracted_data.tar + # Verify tar integrity + tar -tf extracted_data.tar > /dev/null && echo "Tar integrity check passed" || { echo "Tar integrity check FAILED"; exit 1; } + else + echo "ERROR: No extracted directories found, cannot create tar" + exit 1 + fi - name: Upload extracted data uses: actions/upload-artifact@v4 @@ -97,7 +111,7 @@ jobs: needs: [generate-matrix, adsb-extract] runs-on: ubuntu-24.04-arm strategy: - fail-fast: false + fail-fast: true matrix: chunk: ${{ fromJson(needs.generate-matrix.outputs.chunks) }} icao_chunk: [0, 1, 2, 3] @@ -134,7 +148,12 @@ jobs: run: | cd data/output if [ -f extracted_data.tar ]; then - tar -xf extracted_data.tar + echo "=== Tar file info ===" + ls -lah extracted_data.tar + echo "=== Verifying tar integrity ===" + tar -tf extracted_data.tar > /dev/null || { echo "ERROR: Tar file is corrupted"; exit 1; } + echo "=== Extracting ===" + tar -xvf extracted_data.tar rm extracted_data.tar echo "has_data=true" >> "$GITHUB_OUTPUT" echo "=== Contents of data/output ==="