I have for weeks now used the GitHub -hosted GitHub actions runner, but since my Playwright tests can take up to an hour to complete, i have started trying out self-hosted GitHub actions runner using a free tier VM from Microsoft Azure to save on the 3000 free minutes of GitHub actions time i get per month…
After running 3 tests out of 273 tests, the VM crashes after running at 100% CPU for a while (see screenshot).
My current playwright.config.ts results in 1 worker.
Has anyone else experience with this issue?
import { defineConfig } from '@playwright/test';
import * as path from 'path';
export default defineConfig({
testDir: './tests',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: 3,
workers: '50%',
use: {
navigationTimeout: 30000,
actionTimeout: 15000,
viewport: { width: 1280, height: 720 },
trace: 'off',
browserName: 'chromium',
launchOptions: {
args: ['--no-sandbox', '--disable-setuid-sandbox']
}
},
reporter: [
['html', { outputFolder: path.resolve(__dirname, 'playwright-report'), open: 'never' }],
['list']
],
timeout: 120000
});
Source: Read More