Skip to content

Commit

Permalink
adding the collection of the results
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Sep 21, 2024
1 parent 9ec68fa commit a6bb5ce
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 23 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/process-perf-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion perf-reporting/perf-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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/

0 comments on commit a6bb5ce

Please sign in to comment.