Skip to content

Commit

Permalink
Try adding measurements incrementally to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
planger committed Oct 2, 2023
1 parent fef94c6 commit bbfda99
Showing 1 changed file with 18 additions and 82 deletions.
100 changes: 18 additions & 82 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Get History
uses: actions/checkout@v2
with:
ref: gh-pages
path: gh-pages
- name: Run Theia (#${{ matrix.run }})
shell: bash
working-directory: ./theia
Expand All @@ -96,12 +101,19 @@ jobs:
RUN_NO: ${{ matrix.run }}
with:
run: yarn performance
# - name: Cache Performance Measurement (#${{ matrix.run }})
# uses: actions/cache@v3
# id: performance-measurement-${{ matrix.run }}
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-${{ matrix.run }}
- name: Copy Performance Metrics (#${{ matrix.run }})
shell: bash
run: cp performance-metrics/* gh-pages/performance
- name: Commit New Performance Measurements (#${{ matrix.run }})
uses: actions/checkout@v2
working-directory: ./gh-pages
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add performance/*
git commit -m "Add measurements of build ${{ github.run_number }} run #${{ matrix.run }}"
git pull origin gh-pages
git push origin gh-pages:gh-pages-${{ github.run_number }}
generate-report:
name: Performance benchmark on ubuntu-latest with Node.js 16.x
Expand All @@ -115,82 +127,6 @@ jobs:
path: ./*
key: ${{ github.run_number }}
fail-on-cache-miss: true
# ===============================================================================================
# START RESTORING PERFORMANCE MEASUREMENTS FROM CACHE
# we have to restore the performance measurement of each run individually
# so the following restore steps need to be aligned with the matrix.run variable in the job above
# - name: Restore Performance Measurement 0
# uses: actions/cache/restore@v3
# id: performance-measurement-0
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-0
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 1
# uses: actions/cache/restore@v3
# id: performance-measurement-1
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-1
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 2
# uses: actions/cache/restore@v3
# id: performance-measurement-2
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-2
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 3
# uses: actions/cache/restore@v3
# id: performance-measurement-3
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-3
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 4
# uses: actions/cache/restore@v3
# id: performance-measurement-4
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-4
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 5
# uses: actions/cache/restore@v3
# id: performance-measurement-5
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-5
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 6
# uses: actions/cache/restore@v3
# id: performance-measurement-6
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-6
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 7
# uses: actions/cache/restore@v3
# id: performance-measurement-7
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-7
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 8
# uses: actions/cache/restore@v3
# id: performance-measurement-8
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-8
# fail-on-cache-miss: true
# - name: Restore Performance Measurement 9
# uses: actions/cache/restore@v3
# id: performance-measurement-9
# with:
# path: ./performance-metrics
# key: ${{ github.run_number }}-9
# fail-on-cache-miss: true
# END RESTORING PERFORMANCE MEASUREMENTS FROM CACHE
# ===============================================================================================
- name: Get History
uses: actions/checkout@v2
if: always() && github.ref == 'refs/heads/main'
Expand Down

0 comments on commit bbfda99

Please sign in to comment.