Parcel update and CI improvements (#136830)

* 🆙 product

* 🆙 parcel/watcher

* 🆙 parcel/watcher

* tests - separate remote logs from others

* store server logs too

* more tweaks

* fix name

* error when 10s passed
This commit is contained in:
Benjamin Pasero
2021-11-10 08:13:56 +01:00
committed by GitHub
parent 42f10bb643
commit bef4dba21f
15 changed files with 33 additions and 17 deletions

View File

@@ -128,6 +128,7 @@ export async function spawn(options: SpawnOptions): Promise<Code> {
const env = { ...process.env };
const codePath = options.codePath;
const logsPath = path.join(repoPath, '.build', 'logs', options.remote ? 'smoke-tests-remote' : 'smoke-tests');
const outPath = codePath ? getBuildOutPath(codePath) : getDevOutPath();
const args = [
@@ -142,7 +143,7 @@ export async function spawn(options: SpawnOptions): Promise<Code> {
'--disable-workspace-trust',
`--extensions-dir=${options.extensionsPath}`,
`--user-data-dir=${options.userDataDir}`,
`--logsPath=${path.join(repoPath, '.build', 'logs', 'smoke-tests')}`,
`--logsPath=${logsPath}`,
'--driver', handle
];
@@ -170,6 +171,7 @@ export async function spawn(options: SpawnOptions): Promise<Code> {
}
env['TESTRESOLVER_DATA_FOLDER'] = remoteDataDir;
env['TESTRESOLVER_LOGS_FOLDER'] = path.join(logsPath, 'server');
}
const spawnOptions: cp.SpawnOptions = { env };