Skip to content

Check published site themes against composed CSS - #1304

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-36299599829-theme
Sep 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-36299599829-theme

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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 main before 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 to main.

Refs #1283. That issue tracks other nightly failures and remains open.

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.
@max-sixty
max-sixty merged commit b273453 into main Sep 27, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-36299599829-theme branch September 27, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants