Skip to content

Commit

Permalink
add --no-zygote option, #150
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 30, 2022
1 parent 277dcc3 commit a0295db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/server/ContinuousServerClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class ContinuousServerClient {
this.newClientWorker( workers, count++ );
}

// Check back in every 30 seconds to see if we need to restart any workers.
await sleep( 30000 );
// Check back in every 5 seconds to see if we need to restart any workers.
await sleep( 5000 );
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions js/server/puppeteerCTClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ process.on( 'SIGINT', () => process.exit() );

( async () => {

assert( process.argv[ 2 ], 'usage: node puppeteerHelpCT {{SOME_IDENTIFIER_HERE}}' );
assert( process.argv[ 2 ], 'usage: node puppeteerCTClient {{SOME_IDENTIFIER_HERE}}' );
const url = `https://bayes.colorado.edu/continuous-testing/aqua/html/continuous-loop.html?id=${process.argv[ 2 ]}`;
const error = await puppeteerLoad( url, {
waitAfterLoad: 15 * 60 * 1000, // 15 minutes
waitAfterLoad: .5 * 60 * 1000, // 15 minutes
allowedTimeToLoad: 120000,
puppeteerTimeout: 1000000000,

Expand All @@ -34,7 +34,10 @@ process.on( 'SIGINT', () => process.exit() );
'--enable-precise-memory-info',

// To prevent filling up `/tmp`, see https://github.com/phetsims/aqua/issues/145
`--user-data-dir=${process.cwd()}/../tmp/puppeteerUserData/`
`--user-data-dir=${process.cwd()}/../tmp/puppeteerUserData/`,

// Fork child processes directly to prevent orphaned chrome instances from lingering on bayes, https://github.com/phetsims/aqua/issues/150#issuecomment-1170140994
'--no-zygote', '--no-sandbox'
]
}
} );
Expand Down

0 comments on commit a0295db

Please sign in to comment.