From 4c31070cc523574d4e69ebfe17c471733bb45635 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:01:08 +0200 Subject: [PATCH 1/9] Add both Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index af8725d..5ac6d10 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -30,6 +30,12 @@ jobs: PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} run: | - echo $PULL_REQUEST_CLONE_URL echo $PULL_REQUEST_HEAD_REF echo $PULL_REQUEST_BASE_REF + echo $PULL_REQUEST_CLONE_URL + + - name: Apply PR old + run: | + echo ${{ github.event.pull_request.head.ref }} + echo ${{ github.event.pull_request.base.ref }} + echo ${{ github.event.pull_request.head.repo.clone_url }} From 1356b7687ca481bc8e7a441af21187e95b858d78 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:03:15 +0200 Subject: [PATCH 2/9] part2 Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 5ac6d10..0a44b6e 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -39,3 +39,9 @@ jobs: echo ${{ github.event.pull_request.head.ref }} echo ${{ github.event.pull_request.base.ref }} echo ${{ github.event.pull_request.head.repo.clone_url }} + + - name: Apply PR 2 + run: | + echo '${{ github.event.pull_request.head.ref }}' + echo '${{ github.event.pull_request.base.ref }}' + echo '${{ github.event.pull_request.head.repo.clone_url }}' From a829da5b1d0336ef1558a54b9d9ba9592a12cae5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:06:41 +0200 Subject: [PATCH 3/9] test 3 Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 0a44b6e..4123e8f 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -30,18 +30,24 @@ jobs: PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} run: | - echo $PULL_REQUEST_HEAD_REF - echo $PULL_REQUEST_BASE_REF - echo $PULL_REQUEST_CLONE_URL + echo pr/$PULL_REQUEST_HEAD_REF + echo pr/$PULL_REQUEST_BASE_REF + echo pr/$PULL_REQUEST_CLONE_URL - name: Apply PR old run: | - echo ${{ github.event.pull_request.head.ref }} - echo ${{ github.event.pull_request.base.ref }} - echo ${{ github.event.pull_request.head.repo.clone_url }} + echo pr/${{ github.event.pull_request.head.ref }} + echo pr/${{ github.event.pull_request.base.ref }} + echo pr/${{ github.event.pull_request.head.repo.clone_url }} - name: Apply PR 2 run: | - echo '${{ github.event.pull_request.head.ref }}' - echo '${{ github.event.pull_request.base.ref }}' - echo '${{ github.event.pull_request.head.repo.clone_url }}' + echo 'pr/${{ github.event.pull_request.head.ref }}' + echo 'pr/${{ github.event.pull_request.base.ref }}' + echo 'pr/${{ github.event.pull_request.head.repo.clone_url }}' + + - name: Apply PR 3 + run: | + echo pr/'${{ github.event.pull_request.head.ref }}' + echo pr/'${{ github.event.pull_request.base.ref }}' + echo pr/'${{ github.event.pull_request.head.repo.clone_url }}' From 05d7e774c1be78009c05301c57abb11fc6c502f8 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:09:03 +0200 Subject: [PATCH 4/9] check refs Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 4123e8f..1febc45 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -23,6 +23,18 @@ jobs: with: submodules: true ref: ${{ github.event.pull_request.base.ref }} + + - name: Checkout server before PR 2 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + with: + submodules: true + ref: ${{ github.event.pull_request.head.ref }} + + - name: Apply blueprint + uses: icewind1991/blueprint@v0.1.2 + with: + blueprint: tests/blueprints/basic.toml + ref: ${{ github.event.pull_request.head.ref }} - name: Apply PR env: From 0253b82fc02f78a34fce6e80ef56146d9e6f373b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:20:35 +0200 Subject: [PATCH 5/9] Test 4 Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 1febc45..7204447 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -17,6 +17,11 @@ jobs: name: performance-${{ matrix.php-versions }} + outputs: + PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }} + PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} + PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} + steps: - name: Checkout server before PR uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 @@ -30,12 +35,6 @@ jobs: submodules: true ref: ${{ github.event.pull_request.head.ref }} - - name: Apply blueprint - uses: icewind1991/blueprint@v0.1.2 - with: - blueprint: tests/blueprints/basic.toml - ref: ${{ github.event.pull_request.head.ref }} - - name: Apply PR env: PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }} @@ -63,3 +62,9 @@ jobs: echo pr/'${{ github.event.pull_request.head.ref }}' echo pr/'${{ github.event.pull_request.base.ref }}' echo pr/'${{ github.event.pull_request.head.repo.clone_url }}' + + - name: Apply PR 4 + run: | + echo ${{ needs.init.outputs.PULL_REQUEST_HEAD_REF }} + echo ${{ needs.init.outputs.PULL_REQUEST_BASE_REF }} + echo ${{ needs.init.outputs.PULL_REQUEST_CLONE_URL }} From 815b27beee86c4c2e1d8fbf562819bc400955bbb Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:21:49 +0200 Subject: [PATCH 6/9] Test 4a Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 7204447..86044e2 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -7,7 +7,7 @@ concurrency: cancel-in-progress: true jobs: - performance-testing: + performancetesting: runs-on: ubuntu-latest strategy: @@ -65,6 +65,6 @@ jobs: - name: Apply PR 4 run: | - echo ${{ needs.init.outputs.PULL_REQUEST_HEAD_REF }} - echo ${{ needs.init.outputs.PULL_REQUEST_BASE_REF }} - echo ${{ needs.init.outputs.PULL_REQUEST_CLONE_URL }} + echo ${{ needs.performancetesting.outputs.PULL_REQUEST_HEAD_REF }} + echo ${{ needs.performancetesting.outputs.PULL_REQUEST_BASE_REF }} + echo ${{ needs.performancetesting.outputs.PULL_REQUEST_CLONE_URL }} From 76e2c3c187d9e148fcfc3c0dd2445fa93132cf0f Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:24:15 +0200 Subject: [PATCH 7/9] Test 4b Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 86044e2..8a27200 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -7,8 +7,16 @@ concurrency: cancel-in-progress: true jobs: - performancetesting: + init: runs-on: ubuntu-latest + outputs: + PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }} + PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} + PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} + + performance-testing: + runs-on: ubuntu-latest + needs: init strategy: fail-fast: false @@ -17,11 +25,6 @@ jobs: name: performance-${{ matrix.php-versions }} - outputs: - PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }} - PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} - PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} - steps: - name: Checkout server before PR uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 @@ -65,6 +68,6 @@ jobs: - name: Apply PR 4 run: | - echo ${{ needs.performancetesting.outputs.PULL_REQUEST_HEAD_REF }} - echo ${{ needs.performancetesting.outputs.PULL_REQUEST_BASE_REF }} - echo ${{ needs.performancetesting.outputs.PULL_REQUEST_CLONE_URL }} + echo ${{ needs.init.outputs.PULL_REQUEST_HEAD_REF }} + echo ${{ needs.init.outputs.PULL_REQUEST_BASE_REF }} + echo ${{ needs.init.outputs.PULL_REQUEST_CLONE_URL }} From 1afc15d37d517b1c7e47069110bc1f0a8140ee09 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:26:06 +0200 Subject: [PATCH 8/9] Test 4c Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 8a27200..280f98a 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -14,6 +14,12 @@ jobs: PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} + steps: + - name: Init path + id: git-path + run: | + echo '$PULL_REQUEST_HEAD_REF' + performance-testing: runs-on: ubuntu-latest needs: init From 4c4ebf1833860d3cf64c80ca39cc9e8eadee6c2b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 11:27:50 +0200 Subject: [PATCH 9/9] hmm Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 280f98a..a4eb0dd 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -77,3 +77,9 @@ jobs: echo ${{ needs.init.outputs.PULL_REQUEST_HEAD_REF }} echo ${{ needs.init.outputs.PULL_REQUEST_BASE_REF }} echo ${{ needs.init.outputs.PULL_REQUEST_CLONE_URL }} + + - name: Apply PR 5 + run: | + echo '${{ needs.init.outputs.PULL_REQUEST_HEAD_REF }}' + echo '${{ needs.init.outputs.PULL_REQUEST_BASE_REF }}' + echo '${{ needs.init.outputs.PULL_REQUEST_CLONE_URL }}'