From f5a149e57a1fe06cdd234663d5c53ed898c6c9d8 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Wed, 10 Apr 2024 20:31:47 +0100 Subject: [PATCH 1/7] ci: Fixes to allow calling from another repo --- .github/workflows/integration-tests-v2.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests-v2.yml b/.github/workflows/integration-tests-v2.yml index ab3bb7af6f..67e308daa2 100644 --- a/.github/workflows/integration-tests-v2.yml +++ b/.github/workflows/integration-tests-v2.yml @@ -13,10 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + repository: 'firebolt-db/firebolt-python-sdk' - name: Set up Python 3.8 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.8 From 9893e435c2c8ef00a131019e2fe136123f634938 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Wed, 22 May 2024 13:46:24 +0100 Subject: [PATCH 2/7] add engine version input --- .github/workflows/integration-tests-v2.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/integration-tests-v2.yml b/.github/workflows/integration-tests-v2.yml index 67e308daa2..76f21f24c9 100644 --- a/.github/workflows/integration-tests-v2.yml +++ b/.github/workflows/integration-tests-v2.yml @@ -7,6 +7,12 @@ on: required: true FIREBOLT_CLIENT_SECRET_STG_NEW_IDN: required: true + inputs: + engine-version: + description: 'Engine version to use for integration tests' + required: false + type: string + default: '' jobs: tests: @@ -35,6 +41,7 @@ jobs: firebolt-client-secret: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }} account: ${{ vars.FIREBOLT_ACCOUNT }} api-endpoint: "api.staging.firebolt.io" + engine-version: ${{ inputs.engine-version }} - name: Run integration tests env: From 49ecf460c61b9ececc032c212f67c4139f14ab54 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Thu, 23 May 2024 14:18:50 +0100 Subject: [PATCH 3/7] test allure change --- .github/workflows/integration-tests-v2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-v2.yml b/.github/workflows/integration-tests-v2.yml index 76f21f24c9..f72d154984 100644 --- a/.github/workflows/integration-tests-v2.yml +++ b/.github/workflows/integration-tests-v2.yml @@ -65,7 +65,7 @@ jobs: path: gh-pages - name: Allure Report - uses: firebolt-db/action-allure-report@v1 + uses: firebolt-db/action-allure-report@add-decoration if: always() with: github-key: ${{ secrets.GITHUB_TOKEN }} From 51c565fe1634b3dcc9ae321ffd2bc3cb077ed981 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Thu, 23 May 2024 16:29:49 +0100 Subject: [PATCH 4/7] Checkout v4 --- .github/workflows/integration-tests-v2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-v2.yml b/.github/workflows/integration-tests-v2.yml index f72d154984..47e48fe4e9 100644 --- a/.github/workflows/integration-tests-v2.yml +++ b/.github/workflows/integration-tests-v2.yml @@ -57,7 +57,7 @@ jobs: # Need to pull the pages branch in order to fetch the previous runs - name: Get Allure history - uses: actions/checkout@v2 + uses: actions/checkout@v4 if: always() continue-on-error: true with: From fdd6940db3cadb2ccc25b49221ec4b9b728e77ab Mon Sep 17 00:00:00 2001 From: ptiurin Date: Thu, 23 May 2024 17:25:39 +0100 Subject: [PATCH 5/7] inputs token --- .github/workflows/integration-tests-v2.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-v2.yml b/.github/workflows/integration-tests-v2.yml index 47e48fe4e9..a165d75469 100644 --- a/.github/workflows/integration-tests-v2.yml +++ b/.github/workflows/integration-tests-v2.yml @@ -13,6 +13,10 @@ on: required: false type: string default: '' + token: + description: 'GitHub token if called from another workflow' + required: false + type: string jobs: tests: @@ -68,7 +72,7 @@ jobs: uses: firebolt-db/action-allure-report@add-decoration if: always() with: - github-key: ${{ secrets.GITHUB_TOKEN }} + github-key: ${{ inputs.token || secrets.GITHUB_TOKEN }} test-type: integration allure-dir: allure-results pages-branch: gh-pages From 11db1085630cbb8d1c689f9122dd1d03a7831452 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Fri, 31 May 2024 14:50:24 +0100 Subject: [PATCH 6/7] repo name --- .github/workflows/integration-tests-v2.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/integration-tests-v2.yml b/.github/workflows/integration-tests-v2.yml index a165d75469..392f80a649 100644 --- a/.github/workflows/integration-tests-v2.yml +++ b/.github/workflows/integration-tests-v2.yml @@ -76,3 +76,4 @@ jobs: test-type: integration allure-dir: allure-results pages-branch: gh-pages + repository-name: python-sdk From d4934e368e4abbaedcffb4682b04ea24f1b98193 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Fri, 12 Jul 2024 16:52:51 +0100 Subject: [PATCH 7/7] use tag instead of branch --- .github/workflows/integration-tests-v2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-v2.yml b/.github/workflows/integration-tests-v2.yml index 392f80a649..0e62e58284 100644 --- a/.github/workflows/integration-tests-v2.yml +++ b/.github/workflows/integration-tests-v2.yml @@ -69,7 +69,7 @@ jobs: path: gh-pages - name: Allure Report - uses: firebolt-db/action-allure-report@add-decoration + uses: firebolt-db/action-allure-report@v1 if: always() with: github-key: ${{ inputs.token || secrets.GITHUB_TOKEN }}