build(deps): bump LizardByte/setup-python-action from 2025.426.160528 to 2025.530.174035 in the github-actions group #38325
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors | |
| # SPDX-License-Identifier: MIT | |
| name: Performance testing | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: performance-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| performance-testing: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner != 'nextcloud-gmbh' }} | |
| permissions: | |
| pull-requests: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: ['8.1'] | |
| name: performance-${{ matrix.php-versions }} | |
| steps: | |
| - name: Disabled on forks | |
| if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | |
| run: | | |
| echo 'Can not run performance tests on forks' | |
| exit 1 | |
| - name: Checkout server before PR | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| submodules: true | |
| ref: ${{ github.event.pull_request.base.ref }} | |
| - name: Set up php ${{ matrix.php-versions }} | |
| uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, redis, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Nextcloud | |
| run: | | |
| 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 | |
| php -S localhost:8080 & | |
| - name: Apply blueprint | |
| uses: icewind1991/blueprint@00504403f76cb2a09efd0d16793575055e6f63cb # v0.1.2 | |
| with: | |
| blueprint: tests/blueprints/basic.toml | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - name: Run before measurements | |
| uses: nextcloud/profiler@6801ee10fc80f10b444388fb6ca9b36ad8a2ea83 | |
| 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 | |
| curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test/many_files | |
| curl -s -u test:test -T README.md http://localhost:8080/remote.php/dav/files/test/new_file.txt | |
| curl -s -u test:test -X DELETE http://localhost:8080/remote.php/dav/files/test/new_file.txt | |
| output: before.json | |
| profiler-branch: master | |
| - name: Apply PR # zizmor: ignore[template-injection] | |
| run: | | |
| git remote add pr '${{ github.event.pull_request.head.repo.clone_url }}' | |
| git fetch pr '${{ github.event.pull_request.head.ref }}' | |
| git checkout -b 'pr/${{ github.event.pull_request.head.ref }}' | |
| git submodule update | |
| ./occ upgrade | |
| - name: Run after measurements | |
| id: compare | |
| uses: nextcloud/profiler@6801ee10fc80f10b444388fb6ca9b36ad8a2ea83 | |
| 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 | |
| curl -s -X PROPFIND -u test:test http://localhost:8080/remote.php/dav/files/test/many_files | |
| curl -s -u test:test -T README.md http://localhost:8080/remote.php/dav/files/test/new_file.txt | |
| curl -s -u test:test -X DELETE http://localhost:8080/remote.php/dav/files/test/new_file.txt | |
| output: after.json | |
| profiler-branch: master | |
| compare-with: before.json | |
| - name: Upload profiles | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | |
| with: | |
| name: profiles | |
| path: | | |
| before.json | |
| after.json | |
| - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 | |
| if: failure() && steps.compare.outcome == 'failure' | |
| with: | |
| github-token: ${{secrets.GITHUB_TOKEN}} | |
| script: | | |
| let comment = `Possible performance regression detected\n`; | |
| comment += `<details><summary>Show Output</summary> | |
| \`\`\` | |
| ${{ steps.compare.outputs.compare }} | |
| \`\`\` | |
| </details>`; | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: comment | |
| }) |