-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use xmlvalidate to validate SIP manifests #64
Conversation
097b581
to
1aa1951
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
==========================================
+ Coverage 53.59% 54.06% +0.47%
==========================================
Files 30 29 -1
Lines 2103 2090 -13
==========================================
+ Hits 1127 1130 +3
+ Misses 907 891 -16
Partials 69 69 ☔ View full report in Codecov by Sentry. |
af248d5
to
11e9c98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice, thanks @djjuhasz! Just one comment about the Docker image.
- Install libxml2-utils in the preprocessing-worker Docker image to provide xmllint, which is required by https://github.com/artefactual-sdps/temporal-activities/tree/main/xmlvalidate - Update Python version 3.13 - Download and build the latest development version of bagit-python to to get the fixes made since the v1.8.1 release, and for compatibility with Python 3.13 - Update the Dockerfile syntax version to the latest version of 1.x - Add stdout & stderr output to error message when running the Python metadata validation script (`xsdval.py`) to aid debugging
11e9c98
to
3ad31d4
Compare
Fixes #39 Switch from the internal `ValidateMetadata` activity which calls a Python (xsdval.py) script to the `temporal-activities/xmlvalidate` activity. xmlvalidate calls the xmllint C program to validate the SIP manifest file against the XSD schema files included in the SIP. - Import github.com/artefactual-sdps/temporal-activities/xmlvalidate - Switch to xmlvalidate with the xmllint validator for validating the SIP metadata file - Remove the internal "validate metadata" activivity - Remove the sampledata directory containing the `xsdval.py` script, Arelda XSD files, and sample SIP - Remove Python, python-bagit and lxml from the Docker image
3ad31d4
to
919f17f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice, thanks @djjuhasz!
Fixes #39
Switch from the internal "validate metadata" activity which calls a
Python (xsdval.py) script to the
temporal-activities/xmlvalidate
module. xmlvalidate calls the xmllint C program to validate the SIP
manifest file against the XSD schema files included in the SIP.
SIP metadata file
xsdval.py
script,Arelda XSD files, and sample SIP