mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-21 11:40:34 -10:00
Automatic update from web-platform-tests [reporting][wpt] Isolate stashed reports Several `reporting/` tests use the same wptserve stash entry (report ID `d0d517bf-891b-457a-b970-8b2b2c81a0bf` [0]). If at least two such tests are unlucky enough to run in parallel, the first one to poll `report.py` will cannibalize all of the reports and get too many, while the others will get too few. Fix this by regenerating different IDs for all but one of the tests. For the external WPTs that embed on `middle-frame.https.sub.html`, plumb the report ID to `same-origin-report.https.sub.html` as a query parameter, where it can be substituted into the `Reporting-Endpoints` response header [1]. Continue using hardcoded IDs instead of randomly generated ones so that reports can be matched with their tests. [0]: https://source.chromium.org/search?q=d0d517bf-891b-457a-b970-8b2b2c81a0bf%20f:wpt%20&ss=chromium%2Fchromium%2Fsrc [1]: https://web-platform-tests.org/writing-tests/server-pipes.html#sub Bug: 338470458 Test: run_web_tests.py external/wpt/reporting wpt_internal/reporting --fully-parallel -j 36 Change-Id: I46d4d9de954d853615b067725a136a65a6df622b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5922396 Reviewed-by: Ian Clelland <[email protected]> Commit-Queue: Jonathan Lee <[email protected]> Cr-Commit-Position: refs/heads/main@{#1367116} -- wpt-commits: 3e0163f8505cac8a369aab811179cc9dc0f60ebe wpt-pr: 48570
17 lines
584 B
HTML
17 lines
584 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Utility page which embeds a reporting page on the chosen host</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
const searchParams = new URLSearchParams(window.location.search);
|
|
const host = searchParams.get('host') || '{{hosts[][]}}';
|
|
const reportID = searchParams.get('reportID') || '';
|
|
const frame = document.createElement('iframe');
|
|
frame.src = `https://${host}:{{ports[https][0]}}/reporting/resources/same-origin-report.https.sub.html?reportID=${reportID}`;
|
|
document.body.appendChild(frame);
|
|
</script>
|
|
</body>
|
|
</html>
|