Skip to content

Treat captured blob resources as local in offline export tests - #3974

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-40207154799-exports
Oct 25, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-40207154799-exports

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The offline export checks now distinguish captured blob: resource loads from requests outside the exported file, matching the existing historical CSS export check. The runtime already builds these URLs from resource bodies embedded in the export; loading them does not contact a host.

#3937 removed unconditional request interception from unrouted test pages. That exposed the blob requests to Playwright's request listener, so two export tests in run 40207154799 reported local resources as external. This preserves that change's intent and the export's offline behavior.

Both claimed tests failed on current main with the run's blob URL diagnostics and pass after this change. As a causal control, adding an unrelated no-op route made the original assertions pass too. The preceding run 40204656921's junit records both passing.

@leaf-agent
leaf-agent merged commit ec5688c into main Oct 25, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-40207154799-exports branch October 25, 2026 16:40
leaf-agent added a commit that referenced this pull request Oct 27, 2026
The offline playground export test counted embedded `blob:` resource
loads as requests outside the exported file. Classify them as local
alongside `data:` resources, matching the other export checks corrected
in #3974. Requests to external hosts still fail the assertion; the three
playgrounds still exercise their offline controls and disabled
submission.

#3937 removed unconditional request interception from unrouted test
pages, exposing these loads to the request listener. This preserves that
change's intent and changes no exported behavior.

All three parametrized cases fail on current main with the reported blob
diagnostics and pass with this correction (`uv run pytest
tests/journeys/test_render_export.py::test_playground_examples_keep_their_offline_interaction_mode
-q -n0`: 3 passed). The preceding scheduled run 40186470627 records
these cases passing; run 40311120380 records the reported failures on
Linux and macOS.

Closes #4242 — automated triage

Co-authored-by: leaf-agent <[email protected]>
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.

1 participant