devops: follow-up with installation tests on flakienss dashbaord (#14015)

- upload more installation tests to the dashboard
- use json reporter on CI
This commit is contained in:
Andrey Lushnikov 2022-05-07 10:17:07 -06:00 committed by GitHub
parent d711734d38
commit bc9ef1c76e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -136,6 +136,9 @@ jobs:
if: matrix.os != 'ubuntu-latest'
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run itest
if: matrix.os == 'ubuntu-latest'
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
if: always()
shell: bash
headful_linux:
name: "Headful Linux"

View file

@ -19,12 +19,17 @@ import type { PlaywrightTestConfig } from '@playwright/test';
import { config as loadEnv } from 'dotenv';
loadEnv({ path: path.join(__dirname, '..', '..', '.env') });
const outputDir = path.join(__dirname, '..', '..', 'test-results');
const config: PlaywrightTestConfig = {
globalSetup: path.join(__dirname, 'globalSetup'),
outputDir,
testIgnore: '**\/fixture-scripts/**',
timeout: 5 * 60 * 1000,
retries: 0,
reporter: process.env.CI ? 'dot' : [['list'], ['html', { open: 'on-failure' }]],
reporter: process.env.CI ? [
['dot'],
['json', { outputFile: path.join(outputDir, 'report.json') }],
] : [['list'], ['html', { open: 'on-failure' }]],
forbidOnly: !!process.env.CI,
workers: 1,
projects: [