mirror of
https://github.com/PlaneQuery/OpenAirframes.git
synced 2026-07-28 12:38:47 +02:00
update historical. To check tar and fail fast if any maps fail
This commit is contained in:
@@ -81,8 +81,22 @@ jobs:
|
|||||||
- name: Create tar of extracted data
|
- name: Create tar of extracted data
|
||||||
run: |
|
run: |
|
||||||
cd data/output
|
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"
|
echo "=== Disk space before tar ==="
|
||||||
ls -lah extracted_data.tar || echo "No tar created"
|
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
|
- name: Upload extracted data
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -97,7 +111,7 @@ jobs:
|
|||||||
needs: [generate-matrix, adsb-extract]
|
needs: [generate-matrix, adsb-extract]
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
chunk: ${{ fromJson(needs.generate-matrix.outputs.chunks) }}
|
chunk: ${{ fromJson(needs.generate-matrix.outputs.chunks) }}
|
||||||
icao_chunk: [0, 1, 2, 3]
|
icao_chunk: [0, 1, 2, 3]
|
||||||
@@ -134,7 +148,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd data/output
|
cd data/output
|
||||||
if [ -f extracted_data.tar ]; then
|
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
|
rm extracted_data.tar
|
||||||
echo "has_data=true" >> "$GITHUB_OUTPUT"
|
echo "has_data=true" >> "$GITHUB_OUTPUT"
|
||||||
echo "=== Contents of data/output ==="
|
echo "=== Contents of data/output ==="
|
||||||
|
|||||||
Reference in New Issue
Block a user