diff --git a/.github/workflows/process-perf-results.yml b/.github/workflows/process-perf-results.yml index 57bc876d9..5c9eeed54 100644 --- a/.github/workflows/process-perf-results.yml +++ b/.github/workflows/process-perf-results.yml @@ -10,31 +10,37 @@ jobs: runs-on: ubuntu-latest steps: - uses: meta-introspector/checkout@v4 - #with: - # submodules: recursive + #with: + # submodules: recursive - name: Login to GHCR - uses: meta-introspector/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + uses: meta-introspector/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: pull the image - run: docker pull ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest + run: docker pull ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest - name: Download a Build Artifact - uses: meta-introspector/action-download-artifact@v6 - with: - workflow_search: true - commit: 1ea14294b4a7a051ba0872de559658164d0aaae8 - skip_unpack: true - path: data + uses: meta-introspector/action-download-artifact@v6 + with: + workflow_search: true + commit: 1ea14294b4a7a051ba0872de559658164d0aaae8 + skip_unpack: true + path: data - name: run the report - run: docker compose up --build reporting-github - env: - WORKSPACE_DIR2: $GITHUB_WORKSPACE - WORKSPACE_DIR: $GITHUB_WORKSPACE + run: docker compose up --build reporting-github + env: + WORKSPACE_DIR2: $GITHUB_WORKSPACE + WORKSPACE_DIR: $GITHUB_WORKSPACE - name: run the report - run: docker compose up --build reporting-github - env: - WORKSPACE_DIR2: $GITHUB_WORKSPACE - WORKSPACE_DIR: $GITHUB_WORKSPACE + run: docker compose up --build reporting-github + env: + WORKSPACE_DIR2: $GITHUB_WORKSPACE + WORKSPACE_DIR: $GITHUB_WORKSPACE + + - name: Archive results + uses: meta-introspector/upload-artifact@v4 + with: + name: results.tgz + path: perf-reporting/output/results.tgz diff --git a/perf-reporting/perf-report.sh b/perf-reporting/perf-report.sh index 709b12789..9e0aea756 100755 --- a/perf-reporting/perf-report.sh +++ b/perf-reporting/perf-report.sh @@ -37,6 +37,8 @@ ls -latr /app/perf-reporting/output/untar/tmp/perf/ mkdir -p ~/.debug +mkdir -p /app/perf-reporting/output/results/ + for perfdata in /app/perf-reporting/output/untar/tmp/perf/*.perf.data; do echo "${perfdata}" @@ -49,4 +51,6 @@ do ls -latr "${perfdata}" done -ls -latr /app/perf-reporting/output/untar/tmp/perf/ +mv /app/perf-reporting/output/untar/tmp/perf/*.txt /app/perf-reporting/output/results/ +ls -latr /app/perf-reporting/output/results/ +tar -czf /app/perf-reporting/output/results.tgz /app/perf-reporting/output/results/