Repository navigation
chore(release): attach the NWS zone dataset from publish.sh - #450
Merged
Merged
Conversation
The local zone dataset (#316) is not committed and is not part of cap_alerts.zip: it is published as a second asset on the code release that first lists its SHA-256 in KNOWN_ZONE_DATA, and the integration downloads it only when a user asks. publish.sh could only upload the zip, so the asset would have been a manual gh call on every release that carries one. publish.sh <version> --zone-data <file> now attaches it under the fixed name cap_alerts.nws_zones.jsonl.gz. The file's hash is looked up in nws_zone_data.py at the commit being tagged, before the tag exists, so a file the reader would refuse stops the run with nothing to undo. On a release that already exists each asset is attached only if missing. Without the flag the script does what it did before. Assisted-by: Claude:claude-fable-5-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The zone dataset for #316 isn't committed and isn't in
cap_alerts.zip. It goes out as a second asset on the code release that first lists its SHA-256 inKNOWN_ZONE_DATA, andpublish.shcould only upload the zip. This adds the flag, so the asset isn't a manualgh release uploadeach time.What it does
cap_alerts.nws_zones.jsonl.gzwhatever the built file is called, the same name asZONE_DATA_FILENAME.nws_zone_data.pyat the commit being tagged, before the tag exists. A file the reader would refuse stops the run with nothing to undo.CONTRIBUTING.mdgets a paragraph on the flag and the build and check steps to run first.What I tested
Rebuilt the April dataset today from the five shapefiles with
--tail-eps 0.02 --gzip. It came out as c985ed4f again,check_zone_dataset.pypassed all ten questions, andverify_zone_dataloads it. The hash check in the script accepts that file against main and refuses a junk one. I have NOT run a real publish with the flag, CI doesn't exercise this script, so the first alpha cut with it is the real test.@systems-monitor for your information, this is how the asset from #449 gets onto a release. Nothing needed from you.
Assisted-by: Claude:claude-fable-5-2