Repository navigation
Check published site themes against composed CSS - #1304
Merged
Merged
Conversation
The site check compared raw package CSS with the published theme. Widget package rules are now confined during composition, so that byte-for-byte substring is no longer a valid delivery check. Compare each product page's vendored theme with the output of the layer composer for the site's selected packages instead. Refs #1283.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The nightly site test fails because it looks for each package's raw CSS as a literal substring of the published theme. Leaf now confines widget package selectors when it composes that theme, so the published CSS is correct but the raw substring is absent. This changes the test to compare each product page's theme with the layer composer's output for the site's selected packages.
The failed main run reports this case among its browser failures. The case still failed on current
mainbefore this change and passes after it (uv run pytest -q -o addopts='' tests/test_site.py::test_product_pages_vendor_the_composed_theme). Four other representative cases from that run passed locally after fixes already merged tomain.Refs #1283. That issue tracks other nightly failures and remains open.