Merge pull request #4907 from nextcloud/ci/perf-garm

This commit is contained in:
Julius Härtl
2023-07-13 18:08:20 +02:00
committed by GitHub

View File

@@ -98,7 +98,7 @@ jobs:
cat config/config.php cat config/config.php
./occ user:list ./occ user:list
./occ app:enable --force ${{ env.APP_NAME }} ./occ app:enable --force ${{ env.APP_NAME }}
./occ config:system:set query_log_file --value '$PWD/${{ env.APP_NAME }}/${{ env.APP_NAME }}/query.log' ./occ config:system:set query_log_file --value "$PWD/query.log"
php -S localhost:8080 & php -S localhost:8080 &
- name: Run behat - name: Run behat
@@ -123,12 +123,12 @@ jobs:
myError += data.toString() myError += data.toString()
} }
} }
await exec.exec(`/bin/bash -c "cat ${{ env.APP_NAME }}/${{ env.APP_NAME }}/query.log | wc -l"`, [], options) await exec.exec(`/bin/bash -c "cat query.log | wc -l"`, [], options)
msg = myOutput msg = myOutput
const queryCount = parseInt(myOutput, 10) const queryCount = parseInt(myOutput, 10)
myOutput = '' myOutput = ''
await exec.exec('cat', ['${{ env.APP_NAME }}/${{ env.APP_NAME }}/apps/${{ env.APP_NAME }}/tests/integration/base-query-count.txt'], options) await exec.exec('cat', ['apps/${{ env.APP_NAME }}/tests/integration/base-query-count.txt'], options)
const baseCount = parseInt(myOutput, 10) const baseCount = parseInt(myOutput, 10)
const absoluteIncrease = queryCount - baseCount const absoluteIncrease = queryCount - baseCount