Repository navigation
Make the metadata stage work without the network - #230
Draft
chris-thomas-ga wants to merge 2 commits into
Draft
chris-thomas-ga wants to merge 2 commits into
chris-thomas-ga wants to merge 2 commits into
Conversation
The metadata stage queried the CDSE burst catalogue again after RTC had
finished, so a throttled or stalled request discarded the RTC run. Stage 1
now writes {scene}_burst_info.json to the out folder and the metadata stage
reads it, falling back to the CDSE only if the file is missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… fetch STAC validation (on by default) fetched about 10 extension schemas from stac-extensions.github.io after RTC, with no timeout. Vendor the extension schemas and their remote refs under sar_pipeline/data/stac_schemas and pre-fill the pystac validator cache before validating. Also add a timeout to the static-layer STAC request used with --link-static-layers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Draft for now as the burst info part overlaps with #225, which reads the stage 3 burst info from the SAFE instead. If that goes in I'll drop the first commit and keep the STAC schema one.
Description
The metadata and upload stage runs after RTC, so any network failure there throws away the whole run.
{scene}_burst_info.jsonin the results folder, and stage 3 reads that instead of querying CDSE again. It falls back to CDSE if the file isn't there.--validate-stac(on by default) fetched about 10 extension schemas from stac-extensions.github.io in every job, with no timeout. These are now vendored undersar_pipeline/data/stac_schemas/and preloaded into pystac's validator.Most of the diff is the vendored schema JSON.
Testing
tests/sar_pipeline/test_burst_info_json.pyandtests/sar_pipeline/test_offline_stac_validation.py. The latter validates with the network blocked, and checks that an invalid item still fails.Type of change