diff --git a/.openAPI/components.yaml b/.openAPI/components.yaml index 87ed299..6f97ec1 100644 --- a/.openAPI/components.yaml +++ b/.openAPI/components.yaml @@ -167,26 +167,6 @@ responses: type: boolean features: $ref: '#/properties/sw_features' - # maskableIcon: - # type: object - # properties: - # score: - # type: boolean - # splashScreen: - # type: object - # properties: - # score: - # type: boolean - # themedOmnibox: - # type: object - # properties: - # score: - # type: boolean - # viewport: - # type: object - # properties: - # score: - # type: boolean artifacts: type: object properties: diff --git a/.vscode/launch.json b/.vscode/launch.json index 953da67..101689b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,7 +12,7 @@ "name": "Connect to Func node debugger", "type": "node", "request": "attach", - "port": 9229 + "port": 5858 } ] } \ No newline at end of file diff --git a/Report/index.ts b/Report/index.ts index 79b1942..6e83dcb 100644 --- a/Report/index.ts +++ b/Report/index.ts @@ -17,8 +17,8 @@ import childProcess, { ChildProcess, exec, spawn } from 'child_process'; const __dirname = dirname(fileURLToPath(import.meta.url)); // const _root = `${__dirname}/../..`; -const AZURE_FUNC_TIMEOUT = 1.5 * 60 * 1000; -const SPAWN_TIMEOUT = AZURE_FUNC_TIMEOUT - 10 * 1000; +const AZURE_FUNC_TIMEOUT = 2 * 60 * 1000; +const SPAWN_TIMEOUT = AZURE_FUNC_TIMEOUT - 15 * 1000; const httpTrigger: AzureFunction = async function ( context: Context, @@ -97,10 +97,6 @@ const lighthouse = (params: string[]): { child: ChildProcess; promise: Promise { - - // child.on('message', chunk => { - // output = JSON.stringify(chunk); - // }); child.stdout?.on('data', chunk => { output+=chunk; }); @@ -108,9 +104,6 @@ const lighthouse = (params: string[]): { child: ChildProcess; promise: Promise { resolveFunc(output); }); - // child.on('error', err => { - // output = err.toString(); - // }); }), }; }; @@ -144,9 +137,6 @@ const audit = async ( [url, desktop ? 'desktop' : 'mobile'] ); - // @ts-ignore - // spawnResult = await execute(url, desktop ? 'desktop' : 'mobile'); - const spawnTimeout = setTimeout(() => { killProcess(spawnResult?.child?.pid); timeoutError = true;