chore(repo): skip daemon cleanup on grouped e2e tests (#8314)

This commit is contained in:
Miroslav Jonaš 2021-12-28 21:09:28 +01:00 committed by GitHub
parent 7fd7849729
commit a44abd39bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -171,6 +171,7 @@ jobs:
YARN_REGISTRY: http://localhost:4872 YARN_REGISTRY: http://localhost:4872
NX_VERBOSE_LOGGING: ${{ 'true' }} NX_VERBOSE_LOGGING: ${{ 'true' }}
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }} NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }}
NX_E2E_SKIP_DAEMON_CLEANUP: ${{ 'true' }}
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }} NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }}
- name: Setup tmate session - name: Setup tmate session

View File

@ -87,6 +87,7 @@ jobs:
YARN_REGISTRY: http://localhost:4872 YARN_REGISTRY: http://localhost:4872
NX_VERBOSE_LOGGING: ${{ 'true' }} NX_VERBOSE_LOGGING: ${{ 'true' }}
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }} NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }}
NX_E2E_SKIP_DAEMON_CLEANUP: ${{ 'true' }}
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }} NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }}
- name: Setup tmate session - name: Setup tmate session

View File

@ -291,7 +291,9 @@ export async function killPorts(port?: number): Promise<boolean> {
export async function cleanupProject() { export async function cleanupProject() {
if (isCI) { if (isCI) {
// Stopping the daemon is not required for tests to pass, but it cleans up background processes // Stopping the daemon is not required for tests to pass, but it cleans up background processes
runCLI('reset'); if (process.env.NX_E2E_SKIP_DAEMON_CLEANUP !== 'true') {
runCLI('reset');
}
try { try {
removeSync(tmpProjPath()); removeSync(tmpProjPath());
} catch (e) {} } catch (e) {}