Update FIVE_SAFES_PROFILE_VERSION to 0.8.0 - #210
Open
manics wants to merge 1 commit into
Open
Conversation
Contributor
|
Thanks for the PR @manics ! The new error indicates that the RO-Crate metadata file you're testing isn't in UTF-8 encoding format - did the encoding get changed somehow when you downloaded the test files? (haven't tested the docker build locally but I know the original file is UTF-8 encoded) |
Author
|
I'm pretty sure the encoding is correct, and it works fine if I run the validator directly |
Contributor
|
Strange. I've just replicated this error on my side too:
Output: |
Contributor
|
Hi @manics (and @elichad!), the UTF-8 error is a false positive from an upstream bug in The issue is that:
if context.settings.metadata_only:
logger.debug(...)
return True
|
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.
Testing https://github.com/eScienceLab/rocrate-validator/blob/develop/tests/data/crates/valid/five-safes-crate-result/ro-crate-metadata.json (https://github.com/eScienceLab/rocrate-validator/raw/ddf10285cb1df2effde1032be0939eb11870db5d/tests/data/crates/valid/five-safes-crate-result/ro-crate-metadata.json) as suggested in #102 (comment) with
ghcr.io/esciencelab/ro-crate-validation-service-fivesafes-profile:2.0results in these validation errors:
With this PR the above validation errors go away, but I see a strange UTF-8 error- but maybe there's something weird with my docker build?
podman build --build-arg FIVE_SAFES_PROFILE_ VERSION=five-safes-0.8.0 --build-arg PROFILES_ARCHIVE_URL=https://github.com/eScienceLab/rocrate-va lidator/archive/refs/tags/five-safes-0.8.0.tar.gz --build-arg EXTRA_PROFILES_PATH=/app/extra-profil es -t ro-crate-validation-service .