-
Notifications
You must be signed in to change notification settings - Fork 547
fix: xmlschema log msg #2546
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
fix: xmlschema log msg #2546
Conversation
Signed-off-by: ayush_gitk <[email protected]>
Signed-off-by: ayush_gitk <[email protected]>
I don't know why long tests are failing but flake tests are failing because the line |
For flake8, there's a few possible fixes, but I think we'll want to use one of these two: We can explicitly ignore the warning with some explanation as to why we're doing so: # This downgrades a message during module loading.
logging.getLogger("xmlschema").setLevel(logging.WARNING)
import xmlschema # noqa: E402 or we can do some if construction to fake out flake8: # This downgrades a message during module loading.
if True: # Strange construction for pep8 compliance.
logging.getLogger("xmlschema").setLevel(logging.WARNING)
import xmlschema I don't particularly think one is a better solution than the other, but aesthetically I guess I like having the two lines together in a code block, so I'll put the second one in as a fix you can just accept if you want. |
The linux tests should be fixable by updating the branch to main, the windows tests I'm still working on getting a working fix merged. |
This hasn't been changed in a week, so I'm going to go ahead and accept my edit, update the branch to address the CI failures, and re-run the tests. It should fully pass this time. |
Codecov Report
@@ Coverage Diff @@
## main #2546 +/- ##
==========================================
- Coverage 81.89% 77.55% -4.34%
==========================================
Files 598 598
Lines 9874 9877 +3
Branches 1354 1355 +1
==========================================
- Hits 8086 7660 -426
- Misses 1433 1907 +474
+ Partials 355 310 -45
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Sorry @terriko ,was caught up in my exams so forgot about it. Thanks for making the changes and I'll be more regular from now. |
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.
Looks like this is ready to merge -- there were some test fails, but they were unrelated to this PR (looks like there was a network issue on 3.9 short test, but the long tests passed on linux and all passed on windows)
Signed-off-by: ayush_gitk [email protected]
fixes #2530
The logger level is being set to
logging.WARNING
for 'xmlschema' so to suppress any INFO or DEBUG message that comes during using thecve-bin-tool
.