-
Notifications
You must be signed in to change notification settings - Fork 89
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
CI fails for order of rendered HTML directives #234
Comments
Digging deeper... Inspecting the test run that the branch ran on the PR, we can see this set of deps: attrs==21.4.0,bleach==4.1.0,cffi==1.15.0,cmarkgfm==0.8.0,docutils==0.18.1,iniconfig==1.1.1,packaging==21.3,pluggy==1.0.0,py==1.11.0,pycparser==2.21,Pygments==2.11.2,pyparsing==3.0.7,pytest==7.1.1,readme-renderer @ file:///home/runner/work/readme_renderer/readme_renderer/.tox/.tmp/package/1/readme_renderer-34.0.tar.gz,six==1.16.0,tomli==2.0.1,webencodings==0.5.1 The only one that stands out is The first entry on that page is:
Leading to mozilla/bleach#566 - which also explains why it was picked for a major release, since it technically breaks backwards compat, which it has here. Question: This project expresses at least bleach 2.1.0 - if we were to update the tests to match the current 5.x behavior, would we need to bump that as well? |
Thanks for catching this. I think this is a small enough "breaking change" that we don't need to restrict ourselves to Perhaps we could also introduce a constraints file when installing test dependencies to add constraints like this, which won't have significant user-facing changes if different versions are installed, but would make our tests fail? |
Incoming PR. 🎉
Before fixing the tests, I took a look at this - it wasn't something I'd done before, so thanks for the link! Looks like the tox support is still marked as experimental - https://tox.wiki/en/latest/example/basic.html#depending-on-requirements-txt-or-defining-constraints It's possible that tox has a bug here, or that our installation order expectations is different, since we express install deps in |
With bleach 5.0.0, attribute order has changed to be preserved from the origin, rather than alphabetized for consistency. These tests failed due to the output change. Closes: pypa#234 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
With bleach 5.0.0, attribute order has changed to be preserved from the origin, rather than alphabetized for consistency. These tests failed due to the output change. Closes: pypa#234 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
With bleach 5.0.0, attribute order has changed to be preserved from the origin, rather than alphabetized for consistency. These tests failed due to the output change. Closes: #234 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
After #231 was merged, the main branch tests fail due to the order of the HTML directives used.
See https://github.com/pypa/readme_renderer/runs/6064288793?check_suite_focus=true#step:5:27
Here's the list of installed deps:
And the failure seen (abbreviated):
and
As we can see in both examples, the attribute of either the
input
orimg
tag has been changed from the expected test order, thus failing.The "easy fix" is to update the test case's expectations, but I'd like to understand why it failed in the first place, when no other (apparent) changes were made.
The text was updated successfully, but these errors were encountered: