Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* install and setup node and pnpm on self hosted runner * install pnpm first * configure package.json and lock file locations * run pnpm install before trying to setup playwright * install playwright dependencies * run dotnet tests when playwright fails * Only upload Playwright traces if password-protected * Try standalone pnpm setup * Fix condition syntax * Set up Node twice * Only password-protect Playwright results if they exist * Try setting Playwright timeout to 2 minutes * Reduce number of unneeded Playwright traces We don't need traces of successful tests, so let's try to reduce the size of the Playwright trace file we'll be uploading after the run. * Try different syntax for Playwright trace step GHA workflow example shows `if: ${{ always() }}` so let's try moving it inside the braces. * Fix one failing test The "page load 403 is redirected to home" test was pretty much always failing because we were failing to await the page load event correctly. * Try using no compression in 7z step Maybe using no compression will let 7z complete its step without running out of RAM. * Fix 7z CLI format, also do not use threading * Add TODO note re caching * Note another useful cache location * Fix if: syntax for rest of test * Always set up pnpm, not just on self-hosted The GHA ubuntu-latest runner doesn't have pnpm either. * Fix integration test name vars.TEST_SERVER_HOSTNAME is not available to the runner at the time the test run name is being set up, so replace it with inputs.environment. * GHA ubuntu-latest runner can't run sudo pnpm * Double total timeout minutes for test job Since some runs are passing 1 hour, we want to let them complete. * Reduce Playwright timeout to 1 minute This should give enough time for Playwright tests to complete even under load; experimental testing with a 2-minute timeout showed tests either finishing under 60s, or running all the way to the 2-minute timeout. * Fix syntax for step outcome * Upload Playwright traces even if prior steps fail * install wget as needed by ubuntu 22 image * change develop integration tests to use hg 6 instead of 3 to simplify dependencies * set run name the same as the job name * Keep all Playwright traces again * Set Playwright timeout back to default --------- Co-authored-by: Robin Munn <rmunn@pobox.com>
- Loading branch information