From 34b7bc4ef27fd791a59c36d91345d5e74ecc7abb Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 15 Nov 2023 23:12:00 +0530 Subject: [PATCH 1/4] Update 2201.8.x Daily Full Build --- .../workflows/daily-full-build-2201.8.x.yml | 77 +++++++++---------- 1 file changed, 35 insertions(+), 42 deletions(-) diff --git a/.github/workflows/daily-full-build-2201.8.x.yml b/.github/workflows/daily-full-build-2201.8.x.yml index fd7235478..ca525a1f0 100644 --- a/.github/workflows/daily-full-build-2201.8.x.yml +++ b/.github/workflows/daily-full-build-2201.8.x.yml @@ -1,4 +1,4 @@ -name: Daily Full Build Pipeline (2201.8.x) +name: Daily Full Build Pipeline (2201.6.x) on: workflow_dispatch: @@ -7,7 +7,7 @@ on: env: PATCH_LEVEL: 2201.8.x - DISTRIBUTION_BUILD_LEVEL: 11 + DISTRIBUTION_BUILD_LEVEL: 12 jobs: build-lang: @@ -30,13 +30,13 @@ jobs: pip install requests pip install PyGithub pip install cryptography - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: distribution: 'temurin' - java-version: '17.0.7' + java-version: '11' - name: Build ballerina-lang - run: python -u dependabot/full_build_pipeline.py ./ --lang-branch 2201.8.0-stage --build-level 0 + run: python -u dependabot/full_build_pipeline.py ./ --lang-branch $PATCH_LEVEL --build-level 0 env: packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} @@ -93,11 +93,11 @@ jobs: pip install requests pip install PyGithub pip install cryptography - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: distribution: 'temurin' - java-version: '17.0.7' + java-version: '11' - name: Setup NodeJs uses: actions/setup-node@v3 with: @@ -110,7 +110,7 @@ jobs: - name: Build Standard Libraries & Tools run: | python -u dependabot/full_build_pipeline.py ./ --lang-version ${{ needs.build-lang.outputs.lang-version }} \ - --update-stdlib-dependencies --skip-build-distribution --continue-on-error --remove-after-build + --build-released-versions --patch-level $PATCH_LEVEL --skip-build-distribution --continue-on-error --remove-after-build env: packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} @@ -119,11 +119,6 @@ jobs: CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} TEST_MODE_ACTIVE: true - - name: Archive Standard Library Artifacts - uses: actions/upload-artifact@v2 - with: - name: Standard Library Artifacts - path: ~/.m2/ - name: Notify Build Failure if: ${{ failure() }} shell: bash @@ -142,7 +137,7 @@ jobs: build-distribution: name: Build ballerina-distribution - needs: [build-lang, build-stdlibs] + needs: build-lang runs-on: ubuntu-latest timeout-minutes: 150 steps: @@ -161,25 +156,20 @@ jobs: pip install requests pip install PyGithub pip install cryptography - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: distribution: 'temurin' - java-version: '17.0.7' + java-version: '11' - name: Download Ballerina Lang Artifacts uses: actions/download-artifact@v2 with: name: Ballerina Lang Artifacts path: ~/.m2/ - - name: Download Standard Library Artifacts - uses: actions/download-artifact@v2 - with: - name: Standard Library Artifacts - path: ~/.m2/ - name: Build ballerina-distribution run: | python -u dependabot/full_build_pipeline.py ./ --lang-version ${{ needs.build-lang.outputs.lang-version }} \ - --update-stdlib-dependencies --build-level $DISTRIBUTION_BUILD_LEVEL --continue-on-error + --patch-level $PATCH_LEVEL --build-level $DISTRIBUTION_BUILD_LEVEL --continue-on-error env: packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} @@ -280,11 +270,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - distribution: 'temurin' - java-version: '17.0.7' + distribution: 'adopt' + java-version: '11' - name: Setup Files run: | cd /etc/yum.repos.d/ @@ -326,11 +316,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: distribution: 'temurin' - java-version: '17.0.7' + java-version: '11' - name: Download Ballerina Distribution run: | git clone https://github.com/ballerina-platform/ballerina-distribution.git @@ -372,11 +362,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: distribution: 'temurin' - java-version: '17.0.7' + java-version: '11' - name: Download Ballerina Distribution run: | git clone https://github.com/ballerina-platform/ballerina-distribution.git @@ -403,11 +393,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: distribution: 'temurin' - java-version: '17.0.7' + java-version: '11' - uses: actions/setup-dotnet@v1 with: dotnet-version: '2.1.x' @@ -463,11 +453,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - distribution: 'temurin' - java-version: '17.0.7' + distribution: 'adopt' + java-version: '11' - name: Install Python Packages run: | pip install requests @@ -477,6 +467,9 @@ jobs: pip install httplib2 - name: Clone nBallerina repository run: git clone https://github.com/ballerina-platform/nballerina.git + - name: Switch to last working nBallerina commit + run: git checkout jballerina-2201.6 + working-directory: nballerina - name: Download Linux Deb Installer uses: actions/download-artifact@v2 with: From 40957f85a108256236e45f0a127bdfcb6192dcc7 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 15 Nov 2023 23:13:16 +0530 Subject: [PATCH 2/4] Update workflow name --- .github/workflows/daily-full-build-2201.8.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/daily-full-build-2201.8.x.yml b/.github/workflows/daily-full-build-2201.8.x.yml index ca525a1f0..25b5d8154 100644 --- a/.github/workflows/daily-full-build-2201.8.x.yml +++ b/.github/workflows/daily-full-build-2201.8.x.yml @@ -1,4 +1,4 @@ -name: Daily Full Build Pipeline (2201.6.x) +name: Daily Full Build Pipeline (2201.8.x) on: workflow_dispatch: From 0a8e1eea5de4dd2359161bae776a7e30b756ca1f Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 15 Nov 2023 23:16:17 +0530 Subject: [PATCH 3/4] Update java version --- .../workflows/daily-full-build-2201.8.x.yml | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/daily-full-build-2201.8.x.yml b/.github/workflows/daily-full-build-2201.8.x.yml index 25b5d8154..f64433e45 100644 --- a/.github/workflows/daily-full-build-2201.8.x.yml +++ b/.github/workflows/daily-full-build-2201.8.x.yml @@ -30,11 +30,11 @@ jobs: pip install requests pip install PyGithub pip install cryptography - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '17.0.7' - name: Build ballerina-lang run: python -u dependabot/full_build_pipeline.py ./ --lang-branch $PATCH_LEVEL --build-level 0 env: @@ -93,11 +93,11 @@ jobs: pip install requests pip install PyGithub pip install cryptography - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '17.0.7' - name: Setup NodeJs uses: actions/setup-node@v3 with: @@ -156,11 +156,11 @@ jobs: pip install requests pip install PyGithub pip install cryptography - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '17.0.7' - name: Download Ballerina Lang Artifacts uses: actions/download-artifact@v2 with: @@ -270,11 +270,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: '11' + distribution: 'temurin' + java-version: '17.0.7' - name: Setup Files run: | cd /etc/yum.repos.d/ @@ -316,11 +316,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '17.0.7' - name: Download Ballerina Distribution run: | git clone https://github.com/ballerina-platform/ballerina-distribution.git @@ -362,11 +362,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '17.0.7' - name: Download Ballerina Distribution run: | git clone https://github.com/ballerina-platform/ballerina-distribution.git @@ -393,11 +393,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '17.0.7' - uses: actions/setup-dotnet@v1 with: dotnet-version: '2.1.x' @@ -453,11 +453,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: '11' + distribution: 'temurin' + java-version: '17.0.7' - name: Install Python Packages run: | pip install requests From 9b7aff55b7b04a96dbc88e55472b63575b5042e3 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 15 Nov 2023 23:17:47 +0530 Subject: [PATCH 4/4] Update workflow step --- .github/workflows/daily-full-build-2201.8.x.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/daily-full-build-2201.8.x.yml b/.github/workflows/daily-full-build-2201.8.x.yml index f64433e45..1a97c8cb7 100644 --- a/.github/workflows/daily-full-build-2201.8.x.yml +++ b/.github/workflows/daily-full-build-2201.8.x.yml @@ -467,9 +467,6 @@ jobs: pip install httplib2 - name: Clone nBallerina repository run: git clone https://github.com/ballerina-platform/nballerina.git - - name: Switch to last working nBallerina commit - run: git checkout jballerina-2201.6 - working-directory: nballerina - name: Download Linux Deb Installer uses: actions/download-artifact@v2 with: