From 65c268d71e649d14288b145b20e094f1ab68b926 Mon Sep 17 00:00:00 2001 From: ArtemHoruzhenko Date: Thu, 23 Oct 2025 15:08:19 +0300 Subject: [PATCH 1/5] RI-7488: trigger build by push (test) --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3da54296..0154c794 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,10 @@ name: 🚀 Build on: + push: + branches: + - 'tr/**' + # Manual trigger build workflow_dispatch: inputs: From 3446f58e466e71b4da9440836a53d06b83f011f7 Mon Sep 17 00:00:00 2001 From: ArtemHoruzhenko Date: Thu, 23 Oct 2025 15:27:37 +0300 Subject: [PATCH 2/5] RI-7488: trigger build by push (test) --- .github/workflows/build.yml | 4 ---- .github/workflows/release-stage.yml | 27 ++++++++++++++------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0154c794..3da54296 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,6 @@ name: 🚀 Build on: - push: - branches: - - 'tr/**' - # Manual trigger build workflow_dispatch: inputs: diff --git a/.github/workflows/release-stage.yml b/.github/workflows/release-stage.yml index 1b6718c3..4ac7660b 100644 --- a/.github/workflows/release-stage.yml +++ b/.github/workflows/release-stage.yml @@ -5,27 +5,28 @@ on: branches: - 'release/**' - 'release-enterprise/**' + - 'tr/**' jobs: - tests: - name: Release stage tests - uses: ./.github/workflows/tests.yml - secrets: inherit - with: - group_tests: 'without_e2e' - pre_release: true +# tests: +# name: Release stage tests +# uses: ./.github/workflows/tests.yml +# secrets: inherit +# with: +# group_tests: 'without_e2e' +# pre_release: true builds: name: Release stage builds uses: ./.github/workflows/build.yml - needs: tests +# needs: tests secrets: inherit with: environment: 'staging' target: 'all' enterprise: ${{ startsWith(github.ref_name, 'release-enterprise/') }} - - e2e-linux-tests: - needs: builds - uses: ./.github/workflows/tests-e2e-linux.yml - secrets: inherit +# +# e2e-linux-tests: +# needs: builds +# uses: ./.github/workflows/tests-e2e-linux.yml +# secrets: inherit From fc021c29fca36945f9b618c3125222de99f4e318 Mon Sep 17 00:00:00 2001 From: ArtemHoruzhenko Date: Thu, 23 Oct 2025 15:30:35 +0300 Subject: [PATCH 3/5] RI-7488: rename jobs --- .github/workflows/pipeline-build-linux.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline-build-linux.yml b/.github/workflows/pipeline-build-linux.yml index 33b62d28..41fa0d4c 100644 --- a/.github/workflows/pipeline-build-linux.yml +++ b/.github/workflows/pipeline-build-linux.yml @@ -63,31 +63,31 @@ jobs: echo "RI_APP_TYPE=${{ env.RI_APP_TYPE }}" } >> "${{ env.envFile }}" - - name: Download backend + - name: Download backend x64 uses: ./.github/actions/download-backend - - name: Build linux package (production) + - name: Build linux package x64 (production) if: inputs.environment == 'production' run: | yarn package:prod --target linux-x64 --out ${packagePath} - - name: Build linux package (staging) + - name: Build linux package x64 (staging) if: inputs.environment == 'staging' run: | sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" ${{ env.envFile }} yarn package:stage --target linux-x64 --out ${packagePath} - - name: Download backend + - name: Download backend arm64 uses: ./.github/actions/download-backend with: arch: arm64 - - name: Build linux package (production) + - name: Build linux package arm64 (production) if: inputs.environment == 'production' run: | yarn package:prod --target linux-arm64 --out ${packagePath} - - name: Build linux package (staging) + - name: Build linux package arm64 (staging) if: inputs.environment == 'staging' run: | sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" ${{ env.envFile }} From 2d6197211cbaf31c2af9a7e85a80aa783f399cd8 Mon Sep 17 00:00:00 2001 From: ArtemHoruzhenko Date: Thu, 23 Oct 2025 15:36:21 +0300 Subject: [PATCH 4/5] RI-7488: build linux only --- .github/workflows/build.yml | 34 +++++++++++----------- .github/workflows/pipeline-build-linux.yml | 12 ++++---- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3da54296..cc6f6a43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,20 +54,20 @@ jobs: with: environment: ${{ inputs.environment }} enterprise: ${{ inputs.enterprise }} - - build-macos: - if: startsWith(inputs.target, 'macos') || endsWith(inputs.target, 'all') - uses: ./.github/workflows/pipeline-build-macos.yml - secrets: inherit - with: - environment: ${{ inputs.environment }} - enterprise: ${{ inputs.enterprise }} - target: ${{ inputs.target }} - - build-windows: - if: startsWith(inputs.target, 'windows') || endsWith(inputs.target, 'all') - uses: ./.github/workflows/pipeline-build-windows.yml - secrets: inherit - with: - environment: ${{ inputs.environment }} - enterprise: ${{ inputs.enterprise }} +# +# build-macos: +# if: startsWith(inputs.target, 'macos') || endsWith(inputs.target, 'all') +# uses: ./.github/workflows/pipeline-build-macos.yml +# secrets: inherit +# with: +# environment: ${{ inputs.environment }} +# enterprise: ${{ inputs.enterprise }} +# target: ${{ inputs.target }} +# +# build-windows: +# if: startsWith(inputs.target, 'windows') || endsWith(inputs.target, 'all') +# uses: ./.github/workflows/pipeline-build-windows.yml +# secrets: inherit +# with: +# environment: ${{ inputs.environment }} +# enterprise: ${{ inputs.enterprise }} diff --git a/.github/workflows/pipeline-build-linux.yml b/.github/workflows/pipeline-build-linux.yml index 41fa0d4c..171631f1 100644 --- a/.github/workflows/pipeline-build-linux.yml +++ b/.github/workflows/pipeline-build-linux.yml @@ -69,13 +69,13 @@ jobs: - name: Build linux package x64 (production) if: inputs.environment == 'production' run: | - yarn package:prod --target linux-x64 --out ${packagePath} + yarn package:prod --target linux-x64 --out ${packagePath}-x64.vsix - name: Build linux package x64 (staging) if: inputs.environment == 'staging' run: | sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" ${{ env.envFile }} - yarn package:stage --target linux-x64 --out ${packagePath} + yarn package:stage --target linux-x64 --out ${packagePath}-x64.vsix - name: Download backend arm64 uses: ./.github/actions/download-backend @@ -85,24 +85,24 @@ jobs: - name: Build linux package arm64 (production) if: inputs.environment == 'production' run: | - yarn package:prod --target linux-arm64 --out ${packagePath} + yarn package:prod --target linux-arm64 --out ${packagePath}-arm64.vsix - name: Build linux package arm64 (staging) if: inputs.environment == 'staging' run: | sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" ${{ env.envFile }} - yarn package:stage --target linux-arm64 --out ${packagePath} + yarn package:stage --target linux-arm64 --out ${packagePath}-arm64.vsix - uses: actions/upload-artifact@v4 name: Upload extension artifact with: - name: linux-build + name: linux-builds path: | release/redis-for-*.vsix env: envFile: '.env' - packagePath: './release/redis-for-vscode-extension-linux-x64.vsix' + packagePath: './release/redis-for-vscode-extension-linux' RI_SEGMENT_WRITE_KEY: ${{ secrets.RI_SEGMENT_WRITE_KEY }} RI_CLOUD_IDP_AUTHORIZE_URL: ${{ secrets.RI_CLOUD_IDP_AUTHORIZE_URL }} RI_CLOUD_IDP_TOKEN_URL: ${{ secrets.RI_CLOUD_IDP_TOKEN_URL }} From 939b11035b89ce9906082a531694aa504836ba97 Mon Sep 17 00:00:00 2001 From: ArtemHoruzhenko Date: Thu, 23 Oct 2025 17:13:34 +0300 Subject: [PATCH 5/5] RI-7488: cleanup test changes --- .github/workflows/build.yml | 34 ++++++++++++++--------------- .github/workflows/release-stage.yml | 27 +++++++++++------------ 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cc6f6a43..3da54296 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,20 +54,20 @@ jobs: with: environment: ${{ inputs.environment }} enterprise: ${{ inputs.enterprise }} -# -# build-macos: -# if: startsWith(inputs.target, 'macos') || endsWith(inputs.target, 'all') -# uses: ./.github/workflows/pipeline-build-macos.yml -# secrets: inherit -# with: -# environment: ${{ inputs.environment }} -# enterprise: ${{ inputs.enterprise }} -# target: ${{ inputs.target }} -# -# build-windows: -# if: startsWith(inputs.target, 'windows') || endsWith(inputs.target, 'all') -# uses: ./.github/workflows/pipeline-build-windows.yml -# secrets: inherit -# with: -# environment: ${{ inputs.environment }} -# enterprise: ${{ inputs.enterprise }} + + build-macos: + if: startsWith(inputs.target, 'macos') || endsWith(inputs.target, 'all') + uses: ./.github/workflows/pipeline-build-macos.yml + secrets: inherit + with: + environment: ${{ inputs.environment }} + enterprise: ${{ inputs.enterprise }} + target: ${{ inputs.target }} + + build-windows: + if: startsWith(inputs.target, 'windows') || endsWith(inputs.target, 'all') + uses: ./.github/workflows/pipeline-build-windows.yml + secrets: inherit + with: + environment: ${{ inputs.environment }} + enterprise: ${{ inputs.enterprise }} diff --git a/.github/workflows/release-stage.yml b/.github/workflows/release-stage.yml index 4ac7660b..1b6718c3 100644 --- a/.github/workflows/release-stage.yml +++ b/.github/workflows/release-stage.yml @@ -5,28 +5,27 @@ on: branches: - 'release/**' - 'release-enterprise/**' - - 'tr/**' jobs: -# tests: -# name: Release stage tests -# uses: ./.github/workflows/tests.yml -# secrets: inherit -# with: -# group_tests: 'without_e2e' -# pre_release: true + tests: + name: Release stage tests + uses: ./.github/workflows/tests.yml + secrets: inherit + with: + group_tests: 'without_e2e' + pre_release: true builds: name: Release stage builds uses: ./.github/workflows/build.yml -# needs: tests + needs: tests secrets: inherit with: environment: 'staging' target: 'all' enterprise: ${{ startsWith(github.ref_name, 'release-enterprise/') }} -# -# e2e-linux-tests: -# needs: builds -# uses: ./.github/workflows/tests-e2e-linux.yml -# secrets: inherit + + e2e-linux-tests: + needs: builds + uses: ./.github/workflows/tests-e2e-linux.yml + secrets: inherit