-
Notifications
You must be signed in to change notification settings - Fork 11
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
Latest validate missing label extension warning #546
Comments
Whew, okay, finally figured out the cause. Goodness, The change in behavior was put in place by 894024d where @jordanpadams removed the With this command, But in validate-3.0.2 and later, the warnings are gone. And the reason is: we never took the time to register targets to look over, so we're looking at an empty set of targets—which of course validate just fine. The fix might be as simple as putting |
Kudos for finding the root cause, @nutjob4life! |
I have my moments @viviant100 |
@nutjob4life great catch. as a quick intro, a couple of the goals of my refactoring besides the original bug fix was to (1) remove duplicate crawling of files / directories and (2) remove duplicate reads of the same file. but I may have gotten a little too aggressive with that in some cases as we are unraveling. Here the reason I changed this aspect of the code. Using
at the time I was refactoring, I thought that the code may have been crawling the same files/directories multiple times, and was no longer necessary. but per this bug, it may not be the case. I can't quite remember how deep in general, I think the code is super complicated in how it crawls, registers, and tracks files that are entering the command chains. it seems like in some cases, the code tries to validate and register files and directories as soon as they are crawled, but then the crawling also broken out and executed across multiple parts of the chains, which is super difficult to track. this should probably be ripped out and simplified to more easily see when files are coming in and being farmed out to command chains. long story short, maybe test dropping that code back in and see what happens? |
@al-niessner ☝️ in case you are interested |
@nutjob4life as a friend of mine likes to say, not just a hat rack 😄 |
I see the warnings back on 3.1.0-SNAPSHOT. |
@gxtchen we will take a look. as a note, please be sure to tag me and/or Thomas in your comments so we can track this. otherwise, I am pretty sure I will never see it |
actually @gxtchen are you saying this was tested successfully or unsuccessfully? |
🐛 Describe the bug identified during I&T
Earlier tags of validate, e.g. 2.3.0, included a warning message when the
--lblx-extension
flag was used and the file type (e.g.xml
orlblx
) was not found.At one point during earlier release cycles, only the warnings appeared, but ticket discussions indicated that an
ERROR
should be returned when the extension was not matched.The current release versions (
2.4.0
and3.0.2
) only display the following message:The missing label warnings disappeared. This ticket is to either acknowledge the warnings should not appear or to return them to the Validate report.
🥼 Related Test Case(s)
B13.0, VAL.4: #524
🔁 : Related issues
#521
#496
#482
➕ Additional Details
📜 To Reproduce
Steps to reproduce the behavior:
Using Validate 3.0.2 compared to Validate 2.3.0 (use dataset uploaded to 524):
🕵️ Expected behavior
The WARNING appears in addition to the ERROR.
📚 Version of Software Used
Validate 3.0.2
Validate 2.3.0
🩺 Test Data / Additional context
https://github.com/NASA-PDS/validate/files/9969122/testdata.zip (See validate#524)
🏞Screenshots
🖥 System Info
🦄 Related requirements
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: