From dd8f8b7ad654c83843dca8b19c9159a07aab3ea2 Mon Sep 17 00:00:00 2001 From: Jakob Jensen Date: Sat, 31 Jan 2026 16:32:30 +0100 Subject: [PATCH] chore: document and ignore data inconsistency --- .github/workflows/health-check-integrity.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/health-check-integrity.yaml b/.github/workflows/health-check-integrity.yaml index 501b716b2..5cb044519 100644 --- a/.github/workflows/health-check-integrity.yaml +++ b/.github/workflows/health-check-integrity.yaml @@ -117,12 +117,22 @@ jobs: run: | cd api/emission/co2 + cat << EOF > .ignore-grep + 2025/11/21/DK1.json has incorrect duration: 82500 + 2025/11/23/DK1.json has incorrect duration: 3300 + 2025/11/21/DK2.json has incorrect duration: 82500 + 2025/11/23/DK2.json has incorrect duration: 3300 + EOF + find 2??? -type f -mindepth 3 -maxdepth 3 -name "${{ matrix.zone }}.json" | sort | tail -n +2 | head -n-1 | while read file; do duration=$(jq '[.[].timestamp] | max as $max | min as $min | $max - $min' < $file) if [ $duration != 86100 ]; then echo "$file has incorrect duration: $duration" fi - done | tee ../../../${{ matrix.zone }} + done | tee ../../../${{ matrix.zone }}.raw + echo "--- filtered output below ---" + cat ../../../${{ matrix.zone }}.raw | (grep -vf .ignore-grep || true) > ../../../${{ matrix.zone }} + - uses: actions/upload-artifact@v6 with: name: emission-${{ matrix.zone }}