GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: reduce WPT concurrency · nodejs/node@54607bf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • common
      • wpt.js
    • wpt
      • test-timers.js
      • testcfg.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/wpt.js‎

Copy file name to clipboardExpand all lines: test/common/wpt.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,10 @@ const limit = (concurrency) => {
468468
};
469469

470470
class WPTRunner {
471-
constructor(path) {
471+
constructor(path, { concurrency = os.availableParallelism() - 1 || 1 } = {}) {
472472
this.path = path;
473473
this.resource = new ResourceLoader(path);
474+
this.concurrency = concurrency;
474475

475476
this.flags = [];
476477
this.globalThisInitScripts = [];
@@ -595,7 +596,7 @@ class WPTRunner {
595596
async runJsTests() {
596597
const queue = this.buildQueue();
597598

598-
const run = limit(os.availableParallelism());
599+
const run = limit(this.concurrency);
599600

600601
for (const spec of queue) {
601602
const content = spec.getContent();
Collapse file

‎test/wpt/test-timers.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-timers.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
const { WPTRunner } = require('../common/wpt');
44

5-
const runner = new WPTRunner('html/webappapis/timers');
5+
const runner = new WPTRunner('html/webappapis/timers', { concurrency: 1 });
66

77
runner.runJsTests();
Collapse file

‎test/wpt/testcfg.py‎

Copy file name to clipboardExpand all lines: test/wpt/testcfg.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
import testpy
44

55
def GetConfiguration(context, root):
6-
return testpy.ParallelTestConfiguration(context, root, 'wpt')
6+
return testpy.SimpleTestConfiguration(context, root, 'wpt')

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.