mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: fix flakiness dashboard for projects with no metadata (#12426)
This commit is contained in:
parent
5efd7fb356
commit
4a1878e00e
@ -2,3 +2,8 @@
|
||||
|
||||
This directory contains source code for the Azure function that we use to aggregate test reports.
|
||||
The data is consumed by https://devops.aslushnikov.com/flakiness2.html
|
||||
|
||||
To publish function:
|
||||
- install [Azure Functions Core Tools version 3.x.](https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cmacos%2Ccsharp%2Cportal%2Cbash#v2).
|
||||
- install Azure CLI && login via `az login`
|
||||
- run `func azure functionapp publish folio-flakiness-dashboard --javascript`
|
||||
|
||||
@ -36,6 +36,7 @@ function compressReports(reports) {
|
||||
const projectNameToMetadata = new Map();
|
||||
if (report.config && report.config.projects) {
|
||||
for (const project of report.config.projects) {
|
||||
project.metadata = project.metadata || {};
|
||||
if (project.metadata.headful === false)
|
||||
delete project.metadata.headful;
|
||||
if (project.metadata.mode === 'default')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user