-
Notifications
You must be signed in to change notification settings - Fork 710
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
Gating ctest on Fedora latest is failing on a ssg python module test #10417
Comments
I've found a difference in the pip package
Fails on 2.6
We can mitigate the problem by installing the older version instead |
Version 2.6 of this package triggers ComplianceAsCode#10417 which blocks PRs to get merged. This fix is a temporary solution to unblock PRs.
Version 2.6 of this package triggers ComplianceAsCode#10417 which blocks PRs to get merged. This fix is a temporary solution to unblock PRs.
Mitigate xmldiff package upgrade problem. #10417
The change in 2.6 has affected our project. https://github.com/Shoobx/xmldiff/blob/0caf0f136982fa66498e9c77c97faf517ef4a544/CHANGES.rst @jan-cerny maybe you will understand better what's going on with the tests. But I suspect it's the namespace thing, the namespace of an sample xml and what is loaded by build_yaml.py:Rule.to_xml_element might be different and is causing the issue when doing the diff. To reproduce the issue you just need to install xmldiff v2.6.
|
Great investigation! Yes, it's indeed the namespaces!
They aren't different. I have checked it, I have extracted the files that are compared and I have seen both "real" and "expected' file have the same and correct namespace. I have found that the ValueError Exception doesn't come directly from xmldiff but instead from register_namespace from So the problem is specifically in the way how namespace prefixes are named. I was able to sucessfully fix/workaround the traceback posted on the top of the issue by this:
I guess that the other tracebacks in the test job output can be fixed in a similar way. However, I'm not sure if we should do this fix or if this is a bug in the |
Yes, it sounds like we should report it to https://github.com/Shoobx/xmldiff/ at least to make them aware and potentially explain if we are wrong if that's the case. |
I have opened issue in xmldiff: Shoobx/xmldiff#108 |
@ggbecker they are quick, they have released a new version 2.6.1 that probably fixes it: https://pypi.org/project/xmldiff/ |
We need to test with this new package and remove the workaround that installs the 2.5 package |
This package was broken on 2.6.0 but there is a new 2.6.1 that should fix the issue with namespaces. Related to: ComplianceAsCode#10417
This package was broken on 2.6.0 but there is a new 2.6.1 that should fix the issue with namespaces. Related to: ComplianceAsCode#10417
It appears the test started failing by itself, no changes made in the code could indicate something like this. I'll continue investigating. It fails only on latest Fedora container. Other distros seem to be ok.
This could be related #10411 but the gating for that pull request worked just fine in this same gating test.For example, from: https://github.com/ComplianceAsCode/content/actions/runs/4600335639/jobs/8126802809
we have
The text was updated successfully, but these errors were encountered: