Skip to content

Assorted fixes to improve test stability#2

Merged
TimvdLippe merged 9 commits intoTimvdLippe:pending-preload-response-candidatefrom
jdm:pending-preload-response-candidate
Jan 4, 2026
Merged

Assorted fixes to improve test stability#2
TimvdLippe merged 9 commits intoTimvdLippe:pending-preload-response-candidatefrom
jdm:pending-preload-response-candidate

Conversation

@jdm
Copy link
Copy Markdown

@jdm jdm commented Jan 4, 2026

  1. Submit timing information before firing DOM events that can observe it
  2. Add missing request clients to requests
  3. Report the correct URL for resource timing entries for fetch() requests
  4. Ensure the sender is not dropped before the complete response is sent over it
  5. Fix a WPT test bug.

All browsers except Firefox fail the Loading fetch (same-origin) with link (same-origin) and Loading fetch (anonymous) with link (anonymous) should reuse the preloaded response subtests in preload-resource-match.https.html (https://wpt.fyi/results/preload/preload-resource-match.https.html?label=master&label=experimental&aligned&q=%2Fpreload%2Fpreload-resource-match.https.html). This is caused by incorrect test code; when a <link crossorigin=anonymous> or <link> makes a request, they will never use the omit CORS mode (https://html.spec.whatwg.org/multipage/urls-and-fetching.html#create-a-potential-cors-request). The fetch() usage in the test needs to account for that, otherwise the preload entry can never be reused.

expected: FAIL

[Loading font (anonymous) with link (use-credentials) should discard the preloaded response]
expected: FAIL
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These failures are servo#41660

Copy link
Copy Markdown
Owner

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thank you!

@TimvdLippe TimvdLippe merged commit 75609fb into TimvdLippe:pending-preload-response-candidate Jan 4, 2026
20 of 21 checks passed
TimvdLippe pushed a commit that referenced this pull request Mar 25, 2026
This partially reverts 017b12a. The
intermittent issues should be resolved now.

./mach build --release results in ~3GiB of sccache size locally. Since
we build multiple configurations (with crown, tests, profiles) we will
easily hit the 10GiB cache limit even with just one architecture. Hence,
it doesn't make sense to add sccache to more workflows, at least not
before we decide to buy more cache or not.
This should hopefully make the macos-arm64 workflows faster. Locally the
speed-up on clean builds is significant.

Testing: [mach try (no existing
cache)](https://github.com/jschwe/servo/actions/runs/23507308462/job/68418624068),
[mach try
#2](https://github.com/jschwe/servo/actions/runs/23508733572/job/68423715413)
- i.e. 34 minutes vs. 19 minutes total runtime, and 30 m vs 15 m build
time (with ideal conditions for the caching)

Signed-off-by: Jonathan Schwender <[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.

2 participants