diff --git a/.github/workflows/update-scores.yml b/.github/workflows/update-scores.yml index 2b7b69f1..af1256e5 100644 --- a/.github/workflows/update-scores.yml +++ b/.github/workflows/update-scores.yml @@ -17,12 +17,6 @@ env: SHELL: /bin/bash jobs: - wpt-for-layout-2013: - uses: ./.github/workflows/run-wpt.yml - with: - layout-engine: 2013 - artifact-name: wpt-chunks - wpt-for-layout-2020: uses: ./.github/workflows/run-wpt.yml with: @@ -33,19 +27,13 @@ jobs: name: Process all chunks and update metrics runs-on: ubuntu-22.04 needs: - - wpt-for-layout-2013 - wpt-for-layout-2020 steps: - name: Checkout dashboard repo uses: actions/checkout@v3 with: ref: main - - name: Download wpt results for 2013 - uses: actions/download-artifact@v3 - with: - name: wpt-chunks - path: wpt-chunks - - name: Download wpt results for 2020 + - name: Download wpt results for layout 2020 uses: actions/download-artifact@v3 with: name: wpt-chunks-2020 @@ -57,12 +45,10 @@ jobs: - name: Process new test results run: | CURRENT_DATE=$(date +"%Y-%m-%d") - mkdir -p runs mkdir -p runs-2020 - node index.js --add wpt-chunks wpt-chunks-2020 "$CURRENT_DATE" + node index.js --add wpt-chunks-2020 "$CURRENT_DATE" git config user.name github-actions git config user.email github-actions@github.com - git add runs/${CURRENT_DATE}.xz git add runs-2020/${CURRENT_DATE}.xz git commit -m "Add runs for $CURRENT_DATE" git push diff --git a/index.js b/index.js index f7bf7d91..f16c2170 100644 --- a/index.js +++ b/index.js @@ -107,25 +107,12 @@ async function main () { } if (mode === '--add') { - const chunks_2013 = process.argv[3] - const chunks_2020 = process.argv[4] - const date = process.argv[5] - await add_run('runs', chunks_2013, date) - await add_run('runs-2020', chunks_2020, date) + const chunks = process.argv[3] + const date = process.argv[4] + await add_run('runs-2020', chunks, date) } - const scores_2013 = await recalc_scores('runs') - const scores_2020 = await recalc_scores('runs-2020') - const scores_by_date = new Map(scores_2020.map(score => [score[0], score])) - - const scores = [] - for (const score_2013 of scores_2013) { - const len = scores.push(score_2013) - if (scores_by_date.has(score_2013[0])) { - const score_2020 = scores_by_date.get(score_2013[0]).slice(1) - scores[len - 1].splice(score_2013.length, 0, ...score_2020) - } - } + const scores = await recalc_scores('runs-2020') const { area_keys, area_names: focus_areas } = get_focus_areas() diff --git a/site/index.html b/site/index.html index d6bc47fa..63c58a6a 100644 --- a/site/index.html +++ b/site/index.html @@ -109,14 +109,6 @@
-