Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-05-31 18:54:03 +0300
committerRobin Appelman <robin@icewind.nl>2022-06-30 16:52:30 +0300
commit5d3e86a1c63fe4cdd09b0877076e21a056d74155 (patch)
treea742387a12fe51e9976658130cc74d1312541adf
parent6378a186abb11f9a5fb0e7489ee3f83a90c70164 (diff)
use profiler action
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--.github/workflows/performance.yml60
1 files changed, 22 insertions, 38 deletions
diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml
index f6707087349..eb7c3687d1a 100644
--- a/.github/workflows/performance.yml
+++ b/.github/workflows/performance.yml
@@ -32,34 +32,20 @@ jobs:
mkdir data
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
- cd apps
- git clone https://github.com/icewind1991/blueprint
- cd blueprint
- composer install
- cd ..
-
- git clone -b cli https://github.com/nextcloud/profiler
- cd ..
-
- ./occ app:enable --force blueprint
- ./occ app:enable --force profiler
-
- ./occ profiler:enable
- ./occ blueprint:enable
- ./occ blueprint:apply apps/blueprint/blueprints/small.toml
-
php -S localhost:8080 &
- - name: Run warmup
- run: |
- curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
- - name: Run before measurements
- run: |
- rm -rf data/profiler
+ - name: Apply blueprint
+ uses: icewind1991/blueprint@v0.1.1
+ with:
+ blueprint: apps/blueprint/blueprints/small.toml
- curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
+ - name: Run before measurements
+ uses: nextcloud/profiler@44befceb459ca489ba17a14c3f17683ab7206660
+ with:
+ run: |
+ curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
+ curl -s -u test:test http://localhost:8080/remote.php/dav/files/test/test.txt
+ output: before.json
- ./occ profiler:list
- ./occ profiler:export > before.json
- name: Apply PR
run: |
git fetch origin ${{ github.event.pull_request.head.ref }}
@@ -67,16 +53,19 @@ jobs:
git submodule update
./occ upgrade
- - name: Run after measurements
- run: |
- rm -rf data/profiler
- curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
-
- ./occ profiler:list
- ./occ profiler:export > after.json
+ - name: Run after measurements
+ id: compare
+ uses: nextcloud/profiler@44befceb459ca489ba17a14c3f17683ab7206660
+ with:
+ run: |
+ curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test
+ curl -s -u test:test http://localhost:8080/remote.php/dav/files/test/test.txt
+ output: after.json
+ compare-with: before.json
- name: Upload profiles
+ if: always()
uses: actions/upload-artifact@v2
with:
name: profiles
@@ -84,11 +73,6 @@ jobs:
before.json
after.json
- - name: Compare measurements
- uses: mathiasvr/command-output@v1
- id: compare
- with:
- run: ./occ profiler:compare before.json after.json
- uses: actions/github-script@v5
if: failure() && steps.compare.outcome == 'failure'
with:
@@ -98,7 +82,7 @@ jobs:
comment += `<details><summary>Show Output</summary>
\`\`\`
- ${{ steps.compare.outputs.stdout }}
+ ${{ steps.compare.outputs.compare }}
\`\`\`
</details>`;