-
Notifications
You must be signed in to change notification settings - Fork 557
test(client-snapshots): restore update scripts #25756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
c32947c
6b1cc11
9637161
8f9dc27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -51,6 +51,7 @@ export enum Mode { | |||||
| } | ||||||
|
|
||||||
| export interface IWorkerArgs { | ||||||
| name: string; | ||||||
| folder: string; | ||||||
| mode: Mode; | ||||||
| snapFreq?: number; | ||||||
|
|
@@ -137,7 +138,12 @@ export async function processOneNode(args: IWorkerArgs) { | |||||
| // replayArgs.overlappingContainers = 1; | ||||||
|
|
||||||
| try { | ||||||
| const start = performance.now(); | ||||||
| const errors = await new ReplayTool(replayArgs).Go(); | ||||||
| const end = performance.now(); | ||||||
| console.log( | ||||||
| `${args.name} processed with ${errors.length} errors in ${((end - start) / 1000).toFixed(2)} seconds`, | ||||||
| ); | ||||||
| if (errors.length !== 0) { | ||||||
| throw new Error(`Errors\n ${errors.join("\n")}`); | ||||||
| } | ||||||
|
|
@@ -185,12 +191,13 @@ export async function processContent(mode: Mode, concurrently = true) { | |||||
| testSummaries = true; | ||||||
| } | ||||||
|
|
||||||
| const data: IWorkerArgs = { | ||||||
| const data = { | ||||||
| name: node.name, | ||||||
| folder, | ||||||
| mode, | ||||||
| snapFreq, | ||||||
| testSummaries, | ||||||
| }; | ||||||
| } as const satisfies IWorkerArgs; | ||||||
|
||||||
| } as const satisfies IWorkerArgs; | |
| } satisfies IWorkerArgs; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, an immutable object can't be spread? Sure seems like it can.
Uh oh!
There was an error while loading. Please reload this page.