Measure random missing data point #75155
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Measure random missing data point | |
on: | |
schedule: | |
- cron: "*/30 * * * *" | |
workflow_dispatch: | |
jobs: | |
bench: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 14.x | |
cache: "yarn" | |
- name: Yarn | |
uses: nick-invision/retry@v3 | |
with: | |
max_attempts: 3 | |
timeout_minutes: 5 | |
command: yarn | |
- name: Find missing data point | |
id: missing | |
run: node bin/random-missing.js ${{ secrets.GITHUB_TOKEN }} 3 | |
- name: Print Result | |
run: echo ${{ steps.missing.outputs.case }} ${{ steps.missing.outputs.scenario }} ${{ steps.missing.outputs.date }} | |
- name: Measure | |
uses: nick-invision/retry@v3 | |
with: | |
max_attempts: 3 | |
timeout_minutes: 30 | |
command: node bin/measure-mean-normalized.js ${{ steps.missing.outputs.case }} ${{ steps.missing.outputs.scenario }} ${{ steps.missing.outputs.date }} | |
- name: Setup git user | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
- name: Upload result | |
run: node bin/upload.js ${{ steps.missing.outputs.date }} ${{ secrets.GITHUB_TOKEN }} |