Skip to content
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

Fix for stale references in DIST-S1 ISO XML #604

Merged
merged 3 commits into from
Mar 6, 2025
Merged

Fix for stale references in DIST-S1 ISO XML #604

merged 3 commits into from
Mar 6, 2025

Conversation

RKuttruff
Copy link
Contributor

@RKuttruff RKuttruff commented Mar 6, 2025

Description

Affected Issues

Testing

  • Unit tests passing both locally & on dev-pge
  • Int tests for changed PGEs running on Jenkins (sandbox job 404 - passed)

@RKuttruff RKuttruff self-assigned this Mar 6, 2025
Copy link
Collaborator

@collinss-jpl collinss-jpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified fix in the sandbox pipeline, so I think this is good to go. Just found one typo and a suggestion to simplify the regex we're using.

Also just FYI, you don't have to utilize the sandbox pipeline to run the integration test for a branch. The actual Integration Test pipeline can (and should) be used, since it will make it easier to find results from any given run (rather than having to remember and specify a specific build number)

match_result = self._granule_filename_re.match(basename(geotiff_product))

if match_result is None:
# This really should not happen due to bassing the _validate_outputs function but check anyway
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bassing -> passing

r'(?P<creation_ts>(?P<cre_year>\d{4})(?P<cre_month>\d{2})(?P<cre_day>\d{2})T'
r'(?P<cre_hour>\d{2})(?P<cre_minute>\d{2})(?P<cre_second>\d{2})Z)_(?P<sensor>S1[AC]?)_'
r'(?P<spacing>30)_(?P<product_version>v\d+[.]\d+))')
_product_id_pattern = (r'(?P<id>(?P<project>OPERA)_(?P<level>L3)_(?P<product_type>DIST(-ALERT)?)-(?P<source>S1)_'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that we can simplify this regex a bit, since I don't think we'll have a need for granular access to the parsed timestamps, meaning we could remove the ?<acq_hour/minute/second> and ?P<cre_hour/minute/second> and just keep the full capture for ?p<acquisition_ts> and ?p<creation_ts>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trimmed it down quite nicely, thanks

@RKuttruff
Copy link
Contributor Author

Also just FYI, you don't have to utilize the sandbox pipeline to run the integration test for a branch. The actual Integration Test pipeline can (and should) be used, since it will make it easier to find results from any given run (rather than having to remember and specify a specific build number)

Thanks, I mistakenly thought it was filtered to release/* branches like the release pipeline

@RKuttruff RKuttruff merged commit 16e2224 into main Mar 6, 2025
@RKuttruff RKuttruff deleted the 600-dist-s1 branch March 6, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Stale references to "identification" dictionary in DIST-S1 ISO template
2 participants