From 9c4e69addca53e69bb26a11c84b210f98a9dae4d Mon Sep 17 00:00:00 2001 From: mlischetti Date: Fri, 24 Oct 2025 14:24:24 -0300 Subject: [PATCH 1/7] W-20004524: Debug mulesoft-windows runner --- .github/workflows/main.yml | 75 ++++++++++++++++++++++---------------- 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75138df..e9a82de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,10 +17,11 @@ jobs: BUILD: strategy: matrix: - os: [ mulesoft-ubuntu, mulesoft-windows ] +# os: [ mulesoft-ubuntu, mulesoft-windows ] + os: [ mulesoft-windows ] include: - - os: mulesoft-ubuntu - script_name: linux +# - os: mulesoft-ubuntu +# script_name: linux - os: mulesoft-windows script_name: windows runs-on: ${{ matrix.os }} @@ -29,40 +30,52 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 + # Create Release + - name: Create Release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: "v1.0.36" + release_name: "v1.0.36" + body: "Example body" + draft: true + prerelease: false + + # - name: Setup Gradle +# uses: gradle/actions/setup-gradle@v3 # Setup Graalvm - - name: Setup Graalvm - uses: graalvm/setup-graalvm@v1 - with: - java-version: '24' - distribution: 'graalvm-community' - github-token: ${{ secrets.GITHUB_TOKEN }} +# - name: Setup Graalvm +# uses: graalvm/setup-graalvm@v1 +# with: +# java-version: '24' +# distribution: 'graalvm-community' +# github-token: ${{ secrets.GITHUB_TOKEN }} # Runs a single command using the runners shell - - name: Run Build - run: | - ./gradlew --stacktrace --no-problems-report build - shell: bash +# - name: Run Build +# run: | +# ./gradlew --stacktrace --no-problems-report build +# shell: bash #Run regression tests - - name: Run regression test 2.9.8 - run: | - ./gradlew --stacktrace -PweaveTestSuiteVersion=2.9.8 -DweaveSuiteVersion=2.9.8 native-cli-integration-tests:test - shell: bash - - name: Run regression test 2.10 - run: | - ./gradlew --stacktrace -PweaveTestSuiteVersion=2.10.0 -DweaveSuiteVersion=2.10.0 native-cli-integration-tests:test - shell: bash +# - name: Run regression test 2.9.8 +# run: | +# ./gradlew --stacktrace -PweaveTestSuiteVersion=2.9.8 -DweaveSuiteVersion=2.9.8 native-cli-integration-tests:test +# shell: bash +# - name: Run regression test 2.10 +# run: | +# ./gradlew --stacktrace -PweaveTestSuiteVersion=2.10.0 -DweaveSuiteVersion=2.10.0 native-cli-integration-tests:test +# shell: bash # Generate distro - - name: Create Distro - run: ./gradlew --stacktrace --no-problems-report native-cli:distro - shell: bash +# - name: Create Distro +# run: ./gradlew --stacktrace --no-problems-report native-cli:distro +# shell: bash # Upload the artifact file - - name: Upload generated script - uses: actions/upload-artifact@v4 - with: - name: dw-${{env.NATIVE_VERSION}}-${{runner.os}} - path: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip +# - name: Upload generated script +# uses: actions/upload-artifact@v4 +# with: +# name: dw-${{env.NATIVE_VERSION}}-${{runner.os}} +# path: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip From 7594bbd43b0bab575bcddf4e5a2d1da446150064 Mon Sep 17 00:00:00 2001 From: mlischetti Date: Fri, 24 Oct 2025 14:31:07 -0300 Subject: [PATCH 2/7] Try to log ip --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e9a82de..1e4810e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,9 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 + - name: Display IP Configuration + run: ipconfig /all + # Create Release - name: Create Release uses: actions/create-release@latest From 4dcdd46943b019f407178629f9e2e3f77595ff2b Mon Sep 17 00:00:00 2001 From: mlischetti Date: Fri, 24 Oct 2025 14:44:22 -0300 Subject: [PATCH 3/7] Other try --- .github/workflows/main.yml | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e4810e..c3d9cb4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,11 +17,10 @@ jobs: BUILD: strategy: matrix: -# os: [ mulesoft-ubuntu, mulesoft-windows ] - os: [ mulesoft-windows ] + os: [ mulesoft-ubuntu, mulesoft-windows ] include: -# - os: mulesoft-ubuntu -# script_name: linux + - os: mulesoft-ubuntu + script_name: linux - os: mulesoft-windows script_name: windows runs-on: ${{ matrix.os }} @@ -30,20 +29,25 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - name: Display IP Configuration - run: ipconfig /all + - name: Get IP address (Linux) + run: ifconfig + if: runner.os == 'mulesoft-ubuntu' + + - name: Get IP address (Windows) + run: ipconfig + if: runner.os == 'mulesoft-windows' # Create Release - - name: Create Release - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: "v1.0.36" - release_name: "v1.0.36" - body: "Example body" - draft: true - prerelease: false +# - name: Create Release +# uses: actions/create-release@latest +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: "v1.0.36" +# release_name: "v1.0.36" +# body: "Example body" +# draft: true +# prerelease: false # - name: Setup Gradle # uses: gradle/actions/setup-gradle@v3 From 9f1571813af7412038998ba849636843f7decb54 Mon Sep 17 00:00:00 2001 From: mlischetti Date: Fri, 24 Oct 2025 14:49:14 -0300 Subject: [PATCH 4/7] otro --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c3d9cb4..da771be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,11 +31,11 @@ jobs: - name: Get IP address (Linux) run: ifconfig - if: runner.os == 'mulesoft-ubuntu' + if: ${{ matrix.script_name }} == 'linux' - name: Get IP address (Windows) run: ipconfig - if: runner.os == 'mulesoft-windows' + if: ${{ matrix.script_name }} == 'windows' # Create Release # - name: Create Release From b6a8411a2ca8757818fe8b07cdc4e82afce4637a Mon Sep 17 00:00:00 2001 From: mlischetti Date: Fri, 24 Oct 2025 14:54:17 -0300 Subject: [PATCH 5/7] #3 --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index da771be..c8e2884 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,11 +31,15 @@ jobs: - name: Get IP address (Linux) run: ifconfig - if: ${{ matrix.script_name }} == 'linux' + if: runner.os == 'Linux' + + - name: Get IP address - 2 (Linux) + run: hostname -I + if: runner.os == 'Linux' - name: Get IP address (Windows) run: ipconfig - if: ${{ matrix.script_name }} == 'windows' + if: runner.os == 'Windows' # Create Release # - name: Create Release From 5da79a7d723ff8a9099828b642e02aac55c082d7 Mon Sep 17 00:00:00 2001 From: mlischetti Date: Fri, 24 Oct 2025 17:31:20 -0300 Subject: [PATCH 6/7] #4 --- .github/workflows/main.yml | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c8e2884..c65af2c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,10 +17,8 @@ jobs: BUILD: strategy: matrix: - os: [ mulesoft-ubuntu, mulesoft-windows ] + os: [ mulesoft-windows ] include: - - os: mulesoft-ubuntu - script_name: linux - os: mulesoft-windows script_name: windows runs-on: ${{ matrix.os }} @@ -29,29 +27,17 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - name: Get IP address (Linux) - run: ifconfig - if: runner.os == 'Linux' - - - name: Get IP address - 2 (Linux) - run: hostname -I - if: runner.os == 'Linux' - - - name: Get IP address (Windows) - run: ipconfig - if: runner.os == 'Windows' - # Create Release -# - name: Create Release -# uses: actions/create-release@latest -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# tag_name: "v1.0.36" -# release_name: "v1.0.36" -# body: "Example body" -# draft: true -# prerelease: false + - name: Create Release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: "v1.0.36" + release_name: "v1.0.36" + body: "Example body" + draft: true + prerelease: false # - name: Setup Gradle # uses: gradle/actions/setup-gradle@v3 From d77f96f9f27fc98081857e267b5d819f12e1534b Mon Sep 17 00:00:00 2001 From: mlischetti Date: Fri, 24 Oct 2025 17:56:19 -0300 Subject: [PATCH 7/7] Add CI build --- .github/workflows/ci.yml | 53 ++++++++++++++++++++++++++++ .github/workflows/main.yml | 72 ++++++++++++++++---------------------- 2 files changed, 84 insertions(+), 41 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6cc913e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,53 @@ +name: CI Native CLI + +on: + schedule: + - cron: '0 12 * * 3' # This runs the workflow every wednesday day at 12:00 UTC +env: + NATIVE_VERSION: 100.100.100 + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + CI: + strategy: + matrix: + os: [ mulesoft-ubuntu, mulesoft-windows ] + include: + - os: mulesoft-ubuntu + script_name: linux + - os: mulesoft-windows + script_name: windows + runs-on: ${{ matrix.os }} + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + + # Setup Graalvm + - name: Setup Graalvm + uses: graalvm/setup-graalvm@v1 + with: + java-version: '24' + distribution: 'graalvm-community' + github-token: ${{ secrets.GITHUB_TOKEN }} + + # Runs a single command using the runners shell + - name: Run Build (Latest) + run: | + ./gradlew --stacktrace --no-problems-report -PweaveVersion=2.11.0-SNAPSHOT -PweaveTestSuiteVersion=2.11.0-SNAPSHOT -PweaveSuiteVersion=2.11.0-SNAPSHOT build + shell: bash + + # Generate distro + - name: Create Distro + run: ./gradlew --stacktrace --no-problems-report -PweaveVersion=2.11.0-SNAPSHOT -PweaveTestSuiteVersion=2.11.0-SNAPSHOT -PweaveSuiteVersion=2.11.0-SNAPSHOT native-cli:distro + shell: bash + + # Upload the artifact file + - name: Upload generated script + uses: actions/upload-artifact@v4 + with: + name: dw-${{env.NATIVE_VERSION}}-${{runner.os}} + path: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c65af2c..e7a5b58 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,8 +17,10 @@ jobs: BUILD: strategy: matrix: - os: [ mulesoft-windows ] + os: [ mulesoft-ubuntu, mulesoft-windows ] include: + - os: mulesoft-ubuntu + script_name: linux - os: mulesoft-windows script_name: windows runs-on: ${{ matrix.os }} @@ -27,52 +29,40 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - # Create Release - - name: Create Release - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: "v1.0.36" - release_name: "v1.0.36" - body: "Example body" - draft: true - prerelease: false + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - # - name: Setup Gradle -# uses: gradle/actions/setup-gradle@v3 - # Setup Graalvm -# - name: Setup Graalvm -# uses: graalvm/setup-graalvm@v1 -# with: -# java-version: '24' -# distribution: 'graalvm-community' -# github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Setup Graalvm + uses: graalvm/setup-graalvm@v1 + with: + java-version: '24' + distribution: 'graalvm-community' + github-token: ${{ secrets.GITHUB_TOKEN }} # Runs a single command using the runners shell -# - name: Run Build -# run: | -# ./gradlew --stacktrace --no-problems-report build -# shell: bash + - name: Run Build + run: | + ./gradlew --stacktrace --no-problems-report build + shell: bash #Run regression tests -# - name: Run regression test 2.9.8 -# run: | -# ./gradlew --stacktrace -PweaveTestSuiteVersion=2.9.8 -DweaveSuiteVersion=2.9.8 native-cli-integration-tests:test -# shell: bash -# - name: Run regression test 2.10 -# run: | -# ./gradlew --stacktrace -PweaveTestSuiteVersion=2.10.0 -DweaveSuiteVersion=2.10.0 native-cli-integration-tests:test -# shell: bash + - name: Run regression test 2.9.8 + run: | + ./gradlew --stacktrace -PweaveTestSuiteVersion=2.9.8 -DweaveSuiteVersion=2.9.8 native-cli-integration-tests:test + shell: bash + - name: Run regression test 2.10 + run: | + ./gradlew --stacktrace -PweaveTestSuiteVersion=2.10.0 -DweaveSuiteVersion=2.10.0 native-cli-integration-tests:test + shell: bash # Generate distro -# - name: Create Distro -# run: ./gradlew --stacktrace --no-problems-report native-cli:distro -# shell: bash + - name: Create Distro + run: ./gradlew --stacktrace --no-problems-report native-cli:distro + shell: bash # Upload the artifact file -# - name: Upload generated script -# uses: actions/upload-artifact@v4 -# with: -# name: dw-${{env.NATIVE_VERSION}}-${{runner.os}} -# path: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip + - name: Upload generated script + uses: actions/upload-artifact@v4 + with: + name: dw-${{env.NATIVE_VERSION}}-${{runner.os}} + path: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip