-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: adding sarif file extension validation support #217
base: main
Are you sure you want to change the base?
Conversation
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.
@arthurflame Looks good! Please take care of the golint-ci findings and resolve conflicts from the dependency changes in main
* moved defer out of the for loop * wrapping error using %w
* modified Test_FileSystemFinderDuplicateFiles to check for a different length of files in a directory * updated validate_test.go to include sarif files in testData * added loadFile function to read the contents of sample files in test/fixtures/ instead of creating lengthy variables * removed embed package since it wasn't used * added comments
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.
@arthurflame Only at 86% code coverage
Hey, not sure how to increase test coverage at this point. |
Hi @arthurflame - you're just missing several lines of your coverage because you're not testing all the failure conditions. Check the coverage report and see what lines you're missing:
|
Hey, Awesome, thanks for the tip! |
Running Referring to this error: |
Have been sitting on this for a while. Prior to Test_CLI in Could it be a race condition? Also, a rather strange behaviour that I've seen while trying to address this problem. Would greatly appreciate any help. |
Thanks for the analysis @arthurflame - I'll take a look |
I was able to fix the tests locally by forcing the tests to run sequentially rather than in parallel. I believe running in parallel with output files was causing the issue. If you update the https://github.com/Boeing/config-file-validator/blob/main/.github/workflows/go.yml#L101 to include |
Perfect, thank you very much for taking a look. |
Unfortunately, adding -parallel={1,2} doesn't do the trick, tests are still failing on the runners. Thanks! |
As discussed in this PR #183:
schema
is specifiedContent of .sarif files was taken from these samples.