From 9386098e9833672afdd31e6b47b27fe4cee69fe2 Mon Sep 17 00:00:00 2001 From: jenkins-is-staging Date: Mon, 26 Jun 2023 16:43:36 +0000 Subject: [PATCH 1/6] Bump dependencies from IS_dependency_updater_github_action/5379769702 --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 38035a7a7dd..6f3e64c583a 100644 --- a/pom.xml +++ b/pom.xml @@ -2331,8 +2331,8 @@ 3.1.10 1.0.14 - 1.3.47 - 1.0.51 + 1.3.48 + 1.0.52 0.1.4 @@ -2353,7 +2353,7 @@ 1.2.26 - 1.6.350 + 1.6.351 3.4.1 From 7a3fe5d29041d04062a439a95b4d3e54607dbb8f Mon Sep 17 00:00:00 2001 From: jenkins-is-staging Date: Tue, 27 Jun 2023 16:39:04 +0000 Subject: [PATCH 2/6] Bump dependencies from IS_dependency_updater_github_action/5391423926 --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 6f3e64c583a..0d14d06dbe1 100644 --- a/pom.xml +++ b/pom.xml @@ -2244,7 +2244,7 @@ 5.8.4 5.5.0 5.5.0 - 1.8.18 + 1.8.19 @@ -2326,7 +2326,7 @@ 2.1.2 3.3.10 1.1.8 - 4.1.10 + 4.1.11 1.1.1 3.1.10 1.0.14 @@ -2353,7 +2353,7 @@ 1.2.26 - 1.6.351 + 1.6.354 3.4.1 From 233fee25d6418c4c300e9b7ea5127976508ca1f0 Mon Sep 17 00:00:00 2001 From: Chamath Samarawickrama Date: Wed, 28 Jun 2023 08:01:20 +0530 Subject: [PATCH 3/6] update framework version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0d14d06dbe1..ab66e4a3bd9 100644 --- a/pom.xml +++ b/pom.xml @@ -2227,7 +2227,7 @@ - 5.25.234 + 5.25.236 [5.14.67, 6.0.0] From 9db53721a72bd9116c621add78d68e72516e6d5c Mon Sep 17 00:00:00 2001 From: jenkins-is-staging Date: Thu, 29 Jun 2023 16:53:26 +0000 Subject: [PATCH 4/6] Bump dependencies from IS_dependency_updater_github_action/5413743920 --- pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index ab66e4a3bd9..b70d0372533 100644 --- a/pom.xml +++ b/pom.xml @@ -2244,12 +2244,12 @@ 5.8.4 5.5.0 5.5.0 - 1.8.19 + 1.8.20 5.11.15 - 6.11.82 + 6.11.85 5.9.1 5.10.11 5.7.3 @@ -2262,7 +2262,7 @@ - 5.5.3 + 5.5.4 5.7.3 @@ -2353,7 +2353,7 @@ 1.2.26 - 1.6.354 + 1.6.355 3.4.1 From eae70dcf63bedc0ffa97be5c6ed42eda8d49bcf1 Mon Sep 17 00:00:00 2001 From: Udara Pathum Date: Fri, 30 Jun 2023 10:12:31 +0530 Subject: [PATCH 5/6] Bump framework version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b70d0372533..6a5ebf5244b 100644 --- a/pom.xml +++ b/pom.xml @@ -2227,7 +2227,7 @@ - 5.25.236 + 5.25.240 [5.14.67, 6.0.0] From b03e5c783b4f50a6af61cfaa56c47e27344b8b43 Mon Sep 17 00:00:00 2001 From: Jayana Gunaweera <79576139+JayanaGunaweera01@users.noreply.github.com> Date: Fri, 30 Jun 2023 15:19:12 +0530 Subject: [PATCH 6/6] Updated migration.yml (#16171) Updated and renamed migration.yml to migration-automation.yml --- ...migration.yml => migration-automation.yml} | 70 +++++++++---------- 1 file changed, 33 insertions(+), 37 deletions(-) rename .github/workflows/{migration.yml => migration-automation.yml} (68%) diff --git a/.github/workflows/migration.yml b/.github/workflows/migration-automation.yml similarity index 68% rename from .github/workflows/migration.yml rename to .github/workflows/migration-automation.yml index 06349bb57ec..a2ab6b467e1 100644 --- a/.github/workflows/migration.yml +++ b/.github/workflows/migration-automation.yml @@ -13,7 +13,6 @@ on: - "5.11.0" - "6.0.0" - "6.1.0" - - "6.2.0" migratingVersion: description: "Specify the version of WSO2 IS that you want to migrate." default: "6.0.0" @@ -23,7 +22,6 @@ on: - "5.11.0" - "6.0.0" - "6.1.0" - - "6.2.0" database: description: "Select the database." default: "mysql" @@ -39,7 +37,6 @@ on: options: - "ubuntu-latest" - "macos-latest" - - "windows-latest" urlOld: description: "Provide the URL to download the old version of WSO2 IS." default: https://github.com/wso2/product-is/releases/download/v5.11.0/wso2is-5.11.0.zip @@ -115,14 +112,14 @@ jobs: echo "All postgre scripts executed successfully!" - name: Execute Migration Automation Script Ubuntu run: | - chmod +x ./.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh - sh ./.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" | tee "migration-automation/logs.txt" + chmod +x ${{ github.workspace }}/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh + sh ${{ github.workspace }}/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" "${{ secrets.GCP_CLIENT_ID }}" "${{ secrets.GCP_CLIENT_SECRET }}" "${{ secrets.GCP_REFRESH_TOKEN }}" | tee "${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt" continue-on-error: true - name: Persist Logs run: | - mkdir -p ./.github/migration-tester/migration-automation/artifacts - cp ./.github/migration-tester/migration-automation/logs.txt migration-automation/artifacts/ + mkdir -p ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts + cp ${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts/ if: ${{ always() }} - name: Upload Artifacts @@ -130,7 +127,7 @@ jobs: if: always() with: name: "logs-${{ github.event.inputs.currentVersion }}-${{ github.event.inputs.migratingVersion }}-${{ github.event.inputs.database }}-${{ github.event.inputs.os }}" - path: ./.github/migration-tester/migration-automation/artifacts + path: ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts ubuntu-mysql-migration: @@ -139,17 +136,16 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - name: Execute Migration Automation Script Ubuntu run: | - chmod +x ./.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh - sh ./.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" | tee "migration-automation/logs.txt" + chmod +x ${{ github.workspace }}/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh + sh ${{ github.workspace }}/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" "${{ secrets.GCP_CLIENT_ID }}" "${{ secrets.GCP_CLIENT_SECRET }}" "${{ secrets.GCP_REFRESH_TOKEN }}" | tee "${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt" continue-on-error: true - + - name: Persist Logs run: | - mkdir -p ./.github/migration-tester/migration-automation/artifacts - cp ./.github/migration-tester/migration-automation/logs.txt migration-automation/artifacts/ + mkdir -p ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts + cp ${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts/logs.txt if: ${{ always() }} - name: Upload Artifacts @@ -157,7 +153,7 @@ jobs: if: always() with: name: "logs-${{ github.event.inputs.currentVersion }}-${{ github.event.inputs.migratingVersion }}-${{ github.event.inputs.database }}-${{ github.event.inputs.os }}" - path: ./.github/migration-tester/migration-automation/artifacts + path: ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts ubuntu-mssql-migration: if: ${{ github.event.inputs.database == 'mssql' && github.event.inputs.os == 'ubuntu-latest' }} @@ -196,14 +192,14 @@ jobs: echo "Copied mssql scripts to docker container" - name: Execute Migration Automation Script Ubuntu run: | - chmod +x ./.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh - sh ./.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" | tee "migration-automation/logs.txt" + chmod +x ${{ github.workspace }}/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh + sh ${{ github.workspace }}/.github/migration-tester/migration-automation/ubuntu-os/migration-script-ubuntu.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" "${{ secrets.GCP_CLIENT_ID }}" "${{ secrets.GCP_CLIENT_SECRET }}" "${{ secrets.GCP_REFRESH_TOKEN }}" | tee ${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt continue-on-error: true - name: Persist Logs run: | - mkdir -p ./.github/migration-tester/migration-automation/artifacts - cp ./.github/migration-tester/migration-automation/logs.txt migration-automation/artifacts/ + mkdir -p ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts + cp ${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts/ if: ${{ always() }} - name: Upload Artifacts @@ -211,7 +207,7 @@ jobs: if: always() with: name: "logs-${{ github.event.inputs.currentVersion }}-${{ github.event.inputs.migratingVersion }}-${{ github.event.inputs.database }}-${{ github.event.inputs.os }}" - path: ./.github/migration-tester/migration-automation/artifacts + path: ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts macos-mysql-migration: if: ${{ github.event.inputs.database == 'mysql' && github.event.inputs.os == 'macos-latest' }} @@ -222,13 +218,13 @@ jobs: - name: Execute Migration Automation Script Mac run: | - chmod +x ./.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh - sh ./.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" | tee "migration-automation/logs.txt" + chmod +x ${{ github.workspace }}/.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh + sh ${{ github.workspace }}/.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" "${{ secrets.GCP_CLIENT_ID }}" "${{ secrets.GCP_CLIENT_SECRET }}" "${{ secrets.GCP_REFRESH_TOKEN }}" | tee "${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt" continue-on-error: true - name: Persist Logs run: | - mkdir -p ./.github/migration-tester/migration-automation/artifacts - cp ./.github/migration-tester/migration-automation/logs.txt migration-automation/artifacts/ + mkdir -p ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts + cp ${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts/ if: ${{ always() }} - name: Upload Artifacts @@ -236,7 +232,7 @@ jobs: if: always() with: name: "logs-${{ github.event.inputs.currentVersion }}-${{ github.event.inputs.migratingVersion }}-${{ github.event.inputs.database }}-${{ github.event.inputs.os }}" - path: ./.github/migration-tester/migration-automation/artifacts + path: ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts macos-postgres-migration: runs-on: ${{ github.event.inputs.os }} @@ -269,13 +265,13 @@ jobs: - name: Execute Migration Automation Script Mac run: | - chmod +x ./.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh - sh ./.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" | tee "migration-automation/logs.txt" + chmod +x ${{ github.workspace }}/.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh + sh ${{ github.workspace }}/.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" "${{ secrets.GCP_CLIENT_ID }}" "${{ secrets.GCP_CLIENT_SECRET }}" "${{ secrets.GCP_REFRESH_TOKEN }}" | tee "${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt" continue-on-error: true - name: Persist Logs run: | - mkdir -p ./.github/migration-tester/migration-automation/artifacts - cp ./.github/migration-tester/migration-automation/logs.txt migration-automation/artifacts/ + mkdir -p ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts + cp ${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts/ if: ${{ always() }} - name: Upload Artifacts @@ -283,7 +279,7 @@ jobs: if: always() with: name: "logs-${{ github.event.inputs.currentVersion }}-${{ github.event.inputs.migratingVersion }}-${{ github.event.inputs.database }}-${{ github.event.inputs.os }}" - path: ./.github/migration-tester/migration-automation/artifacts + path: ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts macos-mssql-migration: if: ${{ github.event.inputs.database == 'mssql' && github.event.inputs.os == 'macos-latest' }} @@ -317,13 +313,13 @@ jobs: - name: Execute Migration Automation Script Mac run: | - chmod +x ./.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh - sh ./.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" | tee "migration-automation/logs.txt" + chmod +x ${{ github.workspace }}/.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh + sh ${{ github.workspace }}/.github/migration-tester/migration-automation/mac-os/migration-script-mac.sh "${{ github.event.inputs.urlOld }}" "${{ github.event.inputs.urlNew }}" "${{ github.event.inputs.currentVersion }}" "${{ github.event.inputs.migratingVersion }}" "${{ github.event.inputs.database }}" "${{ github.event.inputs.os }}" "${{ secrets.MIGRATION_EMAIL }}" "${{ secrets.MIGRATION_PASSWORD }}" "${{ secrets.MIGRATION_PAT }}" "${{ secrets.GCP_CLIENT_ID }}" "${{ secrets.GCP_CLIENT_SECRET }}" "${{ secrets.GCP_REFRESH_TOKEN }}" | tee "${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt" continue-on-error: true - name: Persist Logs run: | - mkdir -p ./.github/migration-tester/migration-automation/artifacts - cp ./.github/migration-tester/migration-automation/logs.txt migration-automation/artifacts/ + mkdir -p ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts + cp ${{ github.workspace }}/.github/migration-tester/migration-automation/logs.txt ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts/ if: ${{ always() }} - name: Upload Artifacts @@ -331,7 +327,7 @@ jobs: if: always() with: name: "logs-${{ github.event.inputs.currentVersion }}-${{ github.event.inputs.migratingVersion }}-${{ github.event.inputs.database }}-${{ github.event.inputs.os }}" - path: ./.github/migration-tester/migration-automation/artifacts + path: ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts validate-migration: needs: @@ -353,7 +349,7 @@ jobs: if: always() with: name: "logs-${{ github.event.inputs.currentVersion }}-${{ github.event.inputs.migratingVersion }}-${{ github.event.inputs.database }}-${{ github.event.inputs.os }}" - path: ./.github/migration-tester/migration-automation/artifacts + path: ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts retention-days: 7 - name: Post Migration Testing run: | @@ -364,4 +360,4 @@ jobs: else echo "$line" fi - done < ./.github/migration-tester/migration-automation/artifacts/logs.txt + done < ${{ github.workspace }}/.github/migration-tester/migration-automation/artifacts/logs.txt