Repository navigation
e2e: an iframe load cut off by the test's own navigation is not a browser problem - #56
Merged
Merged
Conversation
…wser problem main run 47333414898 failed app-build-ai:137 with ERR_ABORTED on the preview probe. The story reloaded 6 ms after the preview iframe started loading. The collector judged the aborted iframe document only by whether its frame was already detached when the failure event arrived; when it was not, the failure was paired by URL with the page's fetch cancellations and took the report of a preview probe of the same URL. - The navigation scope covers an iframe's document load; the page's own load stays judged. - Only fetch reads are paired with the page's cancellation reports.
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.
Problem
mainrun 47333414898 (e0b4fba, a comment-only change) failedapp-build-ai.mock.spec.ts:137withThe PR run of the same change passed. This is a third cause, separate from #54.
Cause
From the failing trace: the second builder tab's preview iframe started loading its document at 82924.75 ms, and the story's
reload()began at 82931 ms, 6 ms later. The iframe load was cut off (status 200,net::ERR_ABORTED,sec-fetch-dest: iframe).The collector handled that failure as follows:
fetchcalls. The preview probefetchuses the same URL, so the iframe took one probe's report (4 aborted GETs, 3 reports) and a probe was left as the reported problem.Whether step 2 holds depends on event order, hence the intermittent failure.
Change (
e2e/support/browser-problems.ts)fetchrequests are paired with the page's cancellation reports, which onlyfetchproduces.README describes both rules.
Verification
navigationDiscarded(4 of 6 runs had one), never against the probes.typecheck:e2e: clean.Not reproduced: the exact failing order (failure event before detach) could not be forced locally; before the change the same story passed 3 of 3 here. The cause is read from the CI trace.