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

issue warning if manifest id does not match uri #1785

Merged
merged 2 commits into from
May 10, 2024

Conversation

braingram
Copy link
Contributor

@braingram braingram commented May 8, 2024

Description

#1758 assumed that the uri used for a manifest matches the id in the manifest. This should be the case (as defined in the extension manifest schema). However this was not previously being checked. Both dkist and weldx downstream jobs show failures since both these packages use manifests with ids that do not match the uris. The dkist failure is due to use of sunpy manifests (which are fixed in main but are unreleased) and a PR is open for weldx to update the ids to match.

This PR detects the mismatch and instead of producing an exception issues a new warning AsdfManifestURIMismatchWarning with a message to file an issue with the package maintainers.

The weldx downstream job (which doesn't turn warnings into errors) shows the new warning:
https://github.com/asdf-format/asdf/actions/runs/9004808168/job/24738692670?pr=1785#step:10:714

A warning filter is added in this PR to the tox.ini to filter out the warning for the dkist downstream job since it's an issue with the sunpy manifests and will be fixed in the next major sunpy release.

Checklist:

  • pre-commit checks ran successfully
  • tests ran successfully
  • for a public change, a changelog entry was added
  • for a public change, documentation was updated
  • for any new features, unit tests were added

@braingram braingram force-pushed the manifest_extension_mismatch branch 4 times, most recently from f863ec6 to c872a3f Compare May 8, 2024 15:53
@braingram braingram marked this pull request as ready for review May 8, 2024 16:04
@braingram braingram requested a review from a team as a code owner May 8, 2024 16:04
@braingram braingram force-pushed the manifest_extension_mismatch branch from c872a3f to 5717f20 Compare May 10, 2024 13:51
@braingram braingram merged commit 1722dcf into asdf-format:main May 10, 2024
47 of 48 checks passed
@braingram braingram deleted the manifest_extension_mismatch branch May 10, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant