2020-11-23 15:02:04 -08:00
|
|
|
# Flakiness Dashboard Backend
|
|
|
|
|
|
|
|
|
|
This directory contains source code for the Azure function that we use to aggregate test reports.
|
2023-11-01 17:28:30 +01:00
|
|
|
The data is consumed by https://devops.playwright.dev/flakiness.html
|
2022-03-01 02:21:00 -07:00
|
|
|
|
2023-11-01 17:28:30 +01:00
|
|
|
## Publish
|
|
|
|
|
|
2025-01-22 16:33:19 +01:00
|
|
|
- Install [Azure Functions Core Tools version 4](https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=macos%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps&pivots=programming-language-javascript):
|
2023-11-01 17:28:30 +01:00
|
|
|
```
|
2025-01-22 16:33:19 +01:00
|
|
|
brew tap azure/functions
|
|
|
|
|
brew install azure-functions-core-tools@4
|
|
|
|
|
# if upgrading on a machine that has 2.x or 3.x installed:
|
|
|
|
|
brew link --overwrite azure-functions-core-tools@4
|
2023-11-01 17:28:30 +01:00
|
|
|
```
|
|
|
|
|
- Install Azure CLI:
|
|
|
|
|
```bash
|
2025-01-22 16:33:19 +01:00
|
|
|
brew update && brew install azure-cli
|
2023-11-01 17:28:30 +01:00
|
|
|
```
|
2025-01-22 16:33:19 +01:00
|
|
|
- Login to Azure CLI and select the subscription (popup will open):
|
2023-11-01 17:28:30 +01:00
|
|
|
```bash
|
2025-01-22 16:33:19 +01:00
|
|
|
az login
|
2023-11-01 17:28:30 +01:00
|
|
|
```
|
|
|
|
|
- Install NPM Deps (`node_modules/` folder will be published as-is):
|
|
|
|
|
```
|
|
|
|
|
cd utils/flakiness-dashboard/
|
|
|
|
|
npm install
|
|
|
|
|
```
|
|
|
|
|
- Publish:
|
|
|
|
|
```bash
|
|
|
|
|
func azure functionapp publish folio-flakiness-dashboard --javascript
|
|
|
|
|
```
|