Closed radiosci closed 1 year ago
@radiosci I was able to reproduce. I think this is one of those corner cases with bundles/collections in the same directory that can get a bit squirrelly. We will take a look.
In response to Jordan 's comment, I created directory BUNDLE in parallel with bundle_test.xml and moved the co-s-rss-1-sagr1-v10 data directory and the collection products into BUNDLE. Then, from the parent directory, I ran validate -t test -R pds4.bundle where validate defaults to validate 3.3.0-SNAPSHOT. The original SKIP and reference warning messages went away; but a new message appeared: "SKIP: file:/Users/rsimpson/Data/CAS/PDS4_new/test/BUNDLE/collection_test_158.xml INFO [info.integrity.unreferenced_file] Skipping file:/Users/rsimpson/Data/CAS/PDS4_new/test/BUNDLE/collection_test_158.xml due to collection not latest or does not sharing the same logical_identifier as the bundle target" There was no companion message about collection_test_pd2.xml. The original directory structure was chosen to simplify overlay of PDS4 artifacts on an existing PDS3 structure so that most data objects would not need to be replicated. We may be able to do something similar with the actual migration; but we need to understand how the SKIP messages arise so that we choose a structure that avoids them.
Checked for duplicates
No - I haven't checked
π Describe the bug
I have been using validate 3.3.0-SNAPSHOT to get around NaN error messages in files with binary fields. But this version of validate 'skips' the bundle product/label. I don't understand why, and I don't know how to avoid this result. Validate 3.2.0 does not skip the bundle label. There is also a second problem that I discovered while preparing the test data to document this report -- validate 3.3.0-SNAPSHOT also issues warnings that my collections are not found in any bundle within the target. Validate 3.2.0 issues no such warnings.
π΅οΈ Expected behavior
I expect the bundle label to be validated and that properly labeled collections pass reference integrity checks.
π To Reproduce
π₯ Environment Info
π Version of Software Used
validate 3.2.0 and 3.3.0-SNAPSHOT
π©Ί Test Data / Additional context
see test.tar.gz
π¦ Related requirements
π¦ #xyz
βοΈ Engineering Details
No response