Repository navigation
ci(nightly): bound the Census downloads and the real-data job; check a null assessment through the overlay #1550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -65,6 +65,7 @@ jobs: | |||||
| needs: changed | ||||||
| if: needs.changed.outputs.run == 'true' | ||||||
| runs-on: ubuntu-latest | ||||||
| timeout-minutes: 60 | ||||||
| outputs: | ||||||
| tested: ${{ steps.data.outputs.ok }} | ||||||
| steps: | ||||||
|
|
@@ -73,7 +74,10 @@ jobs: | |||||
| - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2 | ||||||
| with: | ||||||
| save-if: false | ||||||
| - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 | ||||||
| # Restored and saved as separate steps: the combined action would save a set missing a file | ||||||
| # whose download failed, and an exact hit is never saved again. | ||||||
| - id: cache | ||||||
| uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 | ||||||
| with: | ||||||
| path: workflow-data | ||||||
| key: workflow-data-census-2024-1 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Existing
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No |
||||||
|
|
@@ -87,14 +91,20 @@ jobs: | |||||
| while read -r sum url; do | ||||||
| file="${url##*/}" | ||||||
| if ! echo "$sum $file" | sha256sum -c --status 2>/dev/null; then | ||||||
| curl -sSfL --retry 3 -o "$file" "$url" || { echo "::warning::could not download $url"; ok=false; continue; } | ||||||
| curl -sSfL --retry 3 --retry-max-time 600 --connect-timeout 30 --max-time 300 -o "$file" "$url" || { echo "::warning::could not download $url"; ok=false; continue; } | ||||||
| echo "$sum $file" | sha256sum -c || { echo "::error::$file has changed: update its checksum and check the test"; exit 1; } | ||||||
| fi | ||||||
| done <<'LIST' | ||||||
| e635ccb4f3035f8fa19b76352a63c89b893f57d0b96ecd5b713754141184bd3d https://www2.census.gov/geo/tiger/TIGER2024/TRACT/tl_2024_47_tract.zip | ||||||
| 38cdd818f50248f67fabf4baf4b82df4ed6110dcaafebcbe4d4f9a389bb47ab8 https://www2.census.gov/geo/docs/maps-data/data/gazetteer/2024_Gazetteer/2024_gaz_tracts_47.txt | ||||||
| LIST | ||||||
| echo "ok=$ok" >> "$GITHUB_OUTPUT" | ||||||
| - name: Keep the Census files | ||||||
| if: steps.data.outputs.ok == 'true' && steps.cache.outputs.cache-hit != 'true' | ||||||
| uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 | ||||||
| with: | ||||||
| path: workflow-data | ||||||
| key: workflow-data-census-2024-1 | ||||||
| - name: Run the workflow tests on them | ||||||
| if: steps.data.outputs.ok == 'true' | ||||||
| env: | ||||||
|
|
@@ -104,8 +114,9 @@ jobs: | |||||
| report: | ||||||
| name: Report | ||||||
| needs: [changed, rust, workflows] | ||||||
| # A cancelled run is neither a failure nor a fix. | ||||||
| if: always() && github.event_name == 'schedule' && needs.changed.outputs.run == 'true' && needs.rust.result != 'cancelled' && needs.workflows.result != 'cancelled' | ||||||
| # A cancelled run is neither a failure nor a fix. A job that ran out of time ends cancelled too, | ||||||
| # but the run isn't: that is a failure. | ||||||
| if: ${{ !cancelled() && github.event_name == 'schedule' && needs.changed.outputs.run == 'true' }} | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| issues: write | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.