Closed Bug 2085416 Opened 1 month ago Closed 29 days ago

[wpt-sync] Sync PR 63995 - Add `Cache-Control` headers for the test262 harness scripts

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63995 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63995
Details from upstream follow.

Shannon Booth <shannon.ml.booth@gmail.com> wrote:

Add Cache-Control headers for the test262 harness scripts

Every test262 test loads many common JavaScript files. Use
Cache-Control: max-age=3600 (like in resources/*.headers) so that long
runs don't fetch and compile them again for each test.

The vendored harness gets __dir__.headers files instead so that they
also cover harness files added by later test262 syncs.


Locally, this seems to cut CPU work per test262 test (running against ladybird) by about 15% - 20%.

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/593fa5ccfe8a https://hg.mozilla.org/integration/autoland/rev/9020d0672f02 [wpt PR 63995] - Add `Cache-Control` headers for the test262 harness scripts, a=testonly

Test result changes from PR not available.

Status: NEW → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.