-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "feat: only run 1 time when not in scheduled job (#28)" (
- Loading branch information
Showing
10 changed files
with
102 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,71 @@ | ||
const isScheduled = !!process.env.SCHEDULED_JOB; | ||
|
||
// HMR will run 10 times in build plugin, so we should not start multiple instances of Rspack. | ||
// However, we still need to run multiple instances of Rspack when executing scheduled tasks for longer runtimes. | ||
const hmrRuns = isScheduled ? 10 : 1; | ||
|
||
export default { | ||
jobs: [ | ||
"10000_development-mode", | ||
"10000_development-mode_hmr", | ||
"10000_production-mode", | ||
"arco-pro_development-mode", | ||
"arco-pro_development-mode_intercept-plugin", | ||
"arco-pro_development-mode_hmr", | ||
"arco-pro_development-mode_hmr_intercept-plugin", | ||
"arco-pro_production-mode", | ||
"arco-pro_production-mode_intercept-plugin", | ||
"threejs_development-mode_10x", | ||
"threejs_development-mode_10x_hmr", | ||
"threejs_production-mode_10x" | ||
{ | ||
name: "10000_development-mode", | ||
runs: 10, | ||
compareMetrics: ["exec"] | ||
}, | ||
{ | ||
name: "10000_development-mode_hmr", | ||
runs: hmrRuns, | ||
compareMetrics: ["stats"] | ||
}, | ||
{ | ||
name: "10000_production-mode", | ||
runs: 10, | ||
compareMetrics: ["exec"] | ||
}, | ||
{ | ||
name: "arco-pro_development-mode", | ||
runs: 10, | ||
compareMetrics: ["exec"] | ||
}, | ||
{ | ||
name: "arco-pro_development-mode_intercept-plugin", | ||
runs: 10, | ||
compareMetrics: ["exec"] | ||
}, | ||
{ | ||
name: "arco-pro_development-mode_hmr", | ||
runs: hmrRuns, | ||
compareMetrics: ["stats"] | ||
}, | ||
{ | ||
name: "arco-pro_development-mode_hmr_intercept-plugin", | ||
runs: hmrRuns, | ||
compareMetrics: ["stats"] | ||
}, | ||
{ | ||
name: "arco-pro_production-mode", | ||
runs: 10, | ||
compareMetrics: ["exec"] | ||
}, | ||
{ | ||
name: "arco-pro_production-mode_intercept-plugin", | ||
runs: 10, | ||
compareMetrics: ["exec"] | ||
}, | ||
{ | ||
name: "threejs_development-mode_10x", | ||
runs: 10, | ||
compareMetrics: ["exec"] | ||
}, | ||
{ | ||
name: "threejs_development-mode_10x_hmr", | ||
runs: hmrRuns, | ||
compareMetrics: ["stats"] | ||
}, | ||
{ | ||
name: "threejs_production-mode_10x", | ||
runs: 10, | ||
compareMetrics: ["exec"] | ||
} | ||
], | ||
rspackDirectory: process.env.RSPACK_DIR | ||
}; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>rspack/benchmark</title> | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ export async function runCommand( | |
? { | ||
...process.env, | ||
...env | ||
} | ||
} | ||
: undefined | ||
}); | ||
if (hasOnData) { | ||
|