You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "Kusuma04-dev (via GitHub)" <gi...@apache.org> on 2026/10/01 08:24:55 UTC
[PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Kusuma04-dev opened a new pull request, #7154:
URL: https://github.com/apache/incubator-kie/pull/7154
This PR completes Phase 2 of the Java 21 migration for CI/CD pipelines by making Java 21 the default JDK across all build and release workflows, while maintaining Java 17 compatibility through a dedicated validation check.
Changes
- Updated .github/actions/setup-env/action.yml to use Java 21 as the default JDK for PR and push builds.
- Updated .github/workflows/ci_check_license_headers.yaml to run on Java 21.
- Updated .ci/incubator-kie-tools-ci-build.Dockerfile to install Java 21.0.7-tem instead of 17.0.11-tem.
- This impacts Jenkins CI, release, release-candidate, and nightly pipelines.
- Added new workflow .github/workflows/ci_java17_compat.yml.
- Runs build and tests on Java 17.
- Provides a separate Java 17 compatibility status check that can be configured as a required check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Kusuma04-dev (via GitHub)" <gi...@apache.org>.
Kusuma04-dev commented on code in PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#discussion_r4222702511
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,179 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, closed]
Review Comment:
Thanks Yeser, I agree. Updated!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Kusuma04-dev (via GitHub)" <gi...@apache.org>.
Kusuma04-dev commented on PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#issuecomment-6108808999
@tiagobento , Java 17 was not discarded(it's removed from matrix), but extracted into its own dedicated workflow .github/workflows/ci_java17_compat.yml (CI :: Build (Java 17)). This provides a dedicated Java 17 compatibility check that can be configured independently as a required status check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#discussion_r4229442110
##########
.github/workflows/ci.yaml:
##########
@@ -42,23 +42,19 @@ jobs:
build:
if: github.event.action != 'closed'
- name: '${{ matrix.os }}, Java ${{ matrix.java }}'
+ name: '${{ matrix.os }}, Java 21'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
- java: [17, 21]
+ java: [21]
# macos and windows temporarily excluded
# due to Docker-dependent tests introduced by the kogito-runtimes merge
# failing on non-Linux runners. Re-enable once resolved.
exclude:
- - os: windows-latest
- java: 17
- os: windows-latest
java: 21
- - os: macos-latest
- java: 17
- os: macos-latest
java: 21
Review Comment:
Now that the workflow only runs Java 21 and both macOS/windows are fully excluded, the matrix is effectively a single configuration (ubuntu-latest + 21). Keeping the multi-OS matrix + exclude list adds redundant configuration to maintain. Consider narrowing the matrix to only the active OS (e.g., `os: [ubuntu-latest]`) and, if Java is fixed, removing the `java` axis entirely (or using `matrix.java` consistently in the job name) to reduce future churn when re-enabling other OSes.
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,178 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened]
+ branches: [main]
+ paths-ignore:
+ - 'LICENSE'
+ - '**/.gitignore'
+ - '**.md'
+ - '**.adoc'
+ - '*.txt'
+ - 'docsimg/**'
+ - '.ci/jenkins/**'
+ push:
+ branches: [main]
Review Comment:
The PR trigger ignores docs-only changes, but the `push` trigger does not. This means docs-only merges to `main` will still run the full Java 17 build, which can add significant CI load/queue time. If the intent is to skip non-code changes on `main` as well, mirror the same `paths-ignore` filters under `push`.
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,178 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened]
+ branches: [main]
+ paths-ignore:
+ - 'LICENSE'
+ - '**/.gitignore'
+ - '**.md'
+ - '**.adoc'
+ - '*.txt'
+ - 'docsimg/**'
+ - '.ci/jenkins/**'
+ push:
+ branches: [main]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+jobs:
+
+ build:
+ name: 'Java 17'
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: 'SETUP :: Set paths for temporary files'
+ shell: bash
+ run: |
+ echo "CHANGED_FILES_FILE=${{ runner.temp }}/changed-files.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_AFFECTED_FILE=${{ runner.temp }}/maven-pl-affected.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_UPSTREAM_FILE=${{ runner.temp }}/maven-pl-upstream.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_CHANGED_FILE=${{ runner.temp }}/maven-pl-changed.txt" >> "$GITHUB_ENV"
+ echo "DEP_GRAPH_EXTRACTOR__OUTPUT_FILE=${{ runner.temp }}/dep-graph.tsv" >> "$GITHUB_ENV"
+ touch "${{ runner.temp }}/changed-files.txt"
+ touch "${{ runner.temp }}/maven-pl-affected.txt"
+ touch "${{ runner.temp }}/maven-pl-upstream.txt"
+ touch "${{ runner.temp }}/maven-pl-changed.txt"
+
+ - name: 'SETUP :: Free disk space (Ubuntu)'
+ shell: bash
+ run: |
+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
+ df -h
+
+ - name: "SETUP :: Checkout to load local actions"
+ uses: actions/checkout@v7
+
+ - name: "SETUP :: Checkout @ Simulated squashed-merge if PR, else checkout current commit"
+ id: checkout_pr
+ uses: ./.github/actions/checkout-pr
+ with:
+ ref: ${{ github.base_ref }}
+
+ - uses: actions/setup-java@v6
+ name: 'SETUP :: Java 17'
+ with:
+ java-version: 17
+ distribution: temurin
+ cache: maven
+
+ - name: 'SETUP :: Install JBang'
+ shell: bash
+ run: |
+ curl -sL https://github.com/jbangdev/jbang/releases/download/v0.138.0/jbang-0.138.0.zip -o jbang.zip
+ echo "3c9fb9ac5823ae5ab9d136dec08b896e2a0f6f6b313689b21f43c511b7c34b85 jbang.zip" | sha256sum -c -
+ unzip -q jbang.zip
+ echo "${{ github.workspace }}/jbang-0.138.0/bin" >> $GITHUB_PATH
+
+ - name: 'SETUP :: Block apache.snapshots Maven repository'
+ shell: bash
+ run: |
+ mkdir -p "$HOME/.m2"
+ cat > "$HOME/.m2/settings.xml" <<'EOF'
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
+ <mirrors>
+ <mirror>
+ <id>block-apache-snapshots</id>
+ <mirrorOf>apache.snapshots,apache-snapshot-repository</mirrorOf>
+ <url>https://repository.apache.org/snapshots/</url>
+ <blocked>true</blocked>
+ </mirror>
+ </mirrors>
+ </settings>
+ EOF
+
+ - name: 'SETUP :: Collect changed files'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ env:
+ BASE_REF: origin/${{ github.base_ref }}
+ run: |
+ git diff --name-only "${BASE_REF}...HEAD" > "$CHANGED_FILES_FILE"
+ echo "Changed files:"
+ cat "$CHANGED_FILES_FILE"
+
+ - name: 'SETUP :: Compute build scopes'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ jbang script/ci/CiComputeBuildScopes.java \
+ "$CHANGED_FILES_FILE" \
+ "$MAVEN_PL_UPSTREAM_FILE" \
+ "$MAVEN_PL_AFFECTED_FILE" \
+ "$MAVEN_PL_CHANGED_FILE"
+
+ - name: "PR CHECK :: BUILD :: Upstream modules${{ github.event_name == 'push' && ' (skipped)' || '' }}"
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ pl=$(paste -sd, "$MAVEN_PL_UPSTREAM_FILE")
+ [ -z "$pl" ] && echo "No upstream modules. Skipping." && exit 0
+ mvn -T 1C --batch-mode --no-transfer-progress -fae -DskipTests -DskipITs -Denforcer.skip=true -Dcheckstyle.skip=true -Dformatter.skip=true -Darchunit.skip=true -Dsurefire.redirectTestOutputToFile=true -pl "$pl" install
+
+ - name: "PR CHECK :: BUILD :: Changed and affected modules${{ github.event_name == 'push' && ' (skipped)' || '' }}"
+ if: github.event_name == 'pull_request'
Review Comment:
These step names append a conditional ' (skipped)' suffix, but each step is already gated by an `if:` that prevents it from running on the opposite event. The conditional suffix therefore never appears in practice and adds noise/complexity to the workflow. Consider simplifying the names by removing the `${{ ... }}` suffixes and relying on the step-level `if:` for clarity.
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,178 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened]
+ branches: [main]
+ paths-ignore:
+ - 'LICENSE'
+ - '**/.gitignore'
+ - '**.md'
+ - '**.adoc'
+ - '*.txt'
+ - 'docsimg/**'
+ - '.ci/jenkins/**'
+ push:
+ branches: [main]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+jobs:
+
+ build:
+ name: 'Java 17'
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: 'SETUP :: Set paths for temporary files'
+ shell: bash
+ run: |
+ echo "CHANGED_FILES_FILE=${{ runner.temp }}/changed-files.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_AFFECTED_FILE=${{ runner.temp }}/maven-pl-affected.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_UPSTREAM_FILE=${{ runner.temp }}/maven-pl-upstream.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_CHANGED_FILE=${{ runner.temp }}/maven-pl-changed.txt" >> "$GITHUB_ENV"
+ echo "DEP_GRAPH_EXTRACTOR__OUTPUT_FILE=${{ runner.temp }}/dep-graph.tsv" >> "$GITHUB_ENV"
+ touch "${{ runner.temp }}/changed-files.txt"
+ touch "${{ runner.temp }}/maven-pl-affected.txt"
+ touch "${{ runner.temp }}/maven-pl-upstream.txt"
+ touch "${{ runner.temp }}/maven-pl-changed.txt"
+
+ - name: 'SETUP :: Free disk space (Ubuntu)'
+ shell: bash
+ run: |
+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
+ df -h
+
+ - name: "SETUP :: Checkout to load local actions"
+ uses: actions/checkout@v7
+
+ - name: "SETUP :: Checkout @ Simulated squashed-merge if PR, else checkout current commit"
+ id: checkout_pr
+ uses: ./.github/actions/checkout-pr
+ with:
+ ref: ${{ github.base_ref }}
+
+ - uses: actions/setup-java@v6
+ name: 'SETUP :: Java 17'
+ with:
+ java-version: 17
+ distribution: temurin
+ cache: maven
+
+ - name: 'SETUP :: Install JBang'
+ shell: bash
+ run: |
+ curl -sL https://github.com/jbangdev/jbang/releases/download/v0.138.0/jbang-0.138.0.zip -o jbang.zip
+ echo "3c9fb9ac5823ae5ab9d136dec08b896e2a0f6f6b313689b21f43c511b7c34b85 jbang.zip" | sha256sum -c -
+ unzip -q jbang.zip
+ echo "${{ github.workspace }}/jbang-0.138.0/bin" >> $GITHUB_PATH
+
+ - name: 'SETUP :: Block apache.snapshots Maven repository'
+ shell: bash
+ run: |
+ mkdir -p "$HOME/.m2"
+ cat > "$HOME/.m2/settings.xml" <<'EOF'
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
+ <mirrors>
+ <mirror>
+ <id>block-apache-snapshots</id>
+ <mirrorOf>apache.snapshots,apache-snapshot-repository</mirrorOf>
+ <url>https://repository.apache.org/snapshots/</url>
+ <blocked>true</blocked>
+ </mirror>
+ </mirrors>
+ </settings>
+ EOF
+
+ - name: 'SETUP :: Collect changed files'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ env:
+ BASE_REF: origin/${{ github.base_ref }}
+ run: |
+ git diff --name-only "${BASE_REF}...HEAD" > "$CHANGED_FILES_FILE"
+ echo "Changed files:"
+ cat "$CHANGED_FILES_FILE"
+
+ - name: 'SETUP :: Compute build scopes'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ jbang script/ci/CiComputeBuildScopes.java \
+ "$CHANGED_FILES_FILE" \
+ "$MAVEN_PL_UPSTREAM_FILE" \
+ "$MAVEN_PL_AFFECTED_FILE" \
+ "$MAVEN_PL_CHANGED_FILE"
+
+ - name: "PR CHECK :: BUILD :: Upstream modules${{ github.event_name == 'push' && ' (skipped)' || '' }}"
+ if: github.event_name == 'pull_request'
Review Comment:
These step names append a conditional ' (skipped)' suffix, but each step is already gated by an `if:` that prevents it from running on the opposite event. The conditional suffix therefore never appears in practice and adds noise/complexity to the workflow. Consider simplifying the names by removing the `${{ ... }}` suffixes and relying on the step-level `if:` for clarity.
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,178 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened]
+ branches: [main]
+ paths-ignore:
+ - 'LICENSE'
+ - '**/.gitignore'
+ - '**.md'
+ - '**.adoc'
+ - '*.txt'
+ - 'docsimg/**'
+ - '.ci/jenkins/**'
+ push:
+ branches: [main]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+jobs:
+
+ build:
+ name: 'Java 17'
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: 'SETUP :: Set paths for temporary files'
+ shell: bash
+ run: |
+ echo "CHANGED_FILES_FILE=${{ runner.temp }}/changed-files.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_AFFECTED_FILE=${{ runner.temp }}/maven-pl-affected.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_UPSTREAM_FILE=${{ runner.temp }}/maven-pl-upstream.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_CHANGED_FILE=${{ runner.temp }}/maven-pl-changed.txt" >> "$GITHUB_ENV"
+ echo "DEP_GRAPH_EXTRACTOR__OUTPUT_FILE=${{ runner.temp }}/dep-graph.tsv" >> "$GITHUB_ENV"
+ touch "${{ runner.temp }}/changed-files.txt"
+ touch "${{ runner.temp }}/maven-pl-affected.txt"
+ touch "${{ runner.temp }}/maven-pl-upstream.txt"
+ touch "${{ runner.temp }}/maven-pl-changed.txt"
+
+ - name: 'SETUP :: Free disk space (Ubuntu)'
+ shell: bash
+ run: |
+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
+ df -h
+
+ - name: "SETUP :: Checkout to load local actions"
+ uses: actions/checkout@v7
+
+ - name: "SETUP :: Checkout @ Simulated squashed-merge if PR, else checkout current commit"
+ id: checkout_pr
+ uses: ./.github/actions/checkout-pr
+ with:
+ ref: ${{ github.base_ref }}
+
+ - uses: actions/setup-java@v6
+ name: 'SETUP :: Java 17'
+ with:
+ java-version: 17
+ distribution: temurin
+ cache: maven
+
+ - name: 'SETUP :: Install JBang'
+ shell: bash
+ run: |
+ curl -sL https://github.com/jbangdev/jbang/releases/download/v0.138.0/jbang-0.138.0.zip -o jbang.zip
+ echo "3c9fb9ac5823ae5ab9d136dec08b896e2a0f6f6b313689b21f43c511b7c34b85 jbang.zip" | sha256sum -c -
+ unzip -q jbang.zip
+ echo "${{ github.workspace }}/jbang-0.138.0/bin" >> $GITHUB_PATH
+
+ - name: 'SETUP :: Block apache.snapshots Maven repository'
+ shell: bash
+ run: |
+ mkdir -p "$HOME/.m2"
+ cat > "$HOME/.m2/settings.xml" <<'EOF'
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
+ <mirrors>
+ <mirror>
+ <id>block-apache-snapshots</id>
+ <mirrorOf>apache.snapshots,apache-snapshot-repository</mirrorOf>
+ <url>https://repository.apache.org/snapshots/</url>
+ <blocked>true</blocked>
+ </mirror>
+ </mirrors>
+ </settings>
+ EOF
+
+ - name: 'SETUP :: Collect changed files'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ env:
+ BASE_REF: origin/${{ github.base_ref }}
+ run: |
+ git diff --name-only "${BASE_REF}...HEAD" > "$CHANGED_FILES_FILE"
+ echo "Changed files:"
+ cat "$CHANGED_FILES_FILE"
+
+ - name: 'SETUP :: Compute build scopes'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ jbang script/ci/CiComputeBuildScopes.java \
+ "$CHANGED_FILES_FILE" \
+ "$MAVEN_PL_UPSTREAM_FILE" \
+ "$MAVEN_PL_AFFECTED_FILE" \
+ "$MAVEN_PL_CHANGED_FILE"
+
+ - name: "PR CHECK :: BUILD :: Upstream modules${{ github.event_name == 'push' && ' (skipped)' || '' }}"
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ pl=$(paste -sd, "$MAVEN_PL_UPSTREAM_FILE")
+ [ -z "$pl" ] && echo "No upstream modules. Skipping." && exit 0
+ mvn -T 1C --batch-mode --no-transfer-progress -fae -DskipTests -DskipITs -Denforcer.skip=true -Dcheckstyle.skip=true -Dformatter.skip=true -Darchunit.skip=true -Dsurefire.redirectTestOutputToFile=true -pl "$pl" install
+
+ - name: "PR CHECK :: BUILD :: Changed and affected modules${{ github.event_name == 'push' && ' (skipped)' || '' }}"
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ pl=$(paste -sd, "$MAVEN_PL_AFFECTED_FILE")
+ [ -z "$pl" ] && echo "No affected modules. Skipping." && exit 0
+ mvn --batch-mode --no-transfer-progress -fae -Dsurefire.redirectTestOutputToFile=true -Dfull -Dreproducible -pl "$pl" install
+
+ - name: "CI :: BUILD :: Full${{ github.event_name == 'pull_request' && ' (skipped)' || '' }}"
+ if: github.event_name == 'push'
Review Comment:
These step names append a conditional ' (skipped)' suffix, but each step is already gated by an `if:` that prevents it from running on the opposite event. The conditional suffix therefore never appears in practice and adds noise/complexity to the workflow. Consider simplifying the names by removing the `${{ ... }}` suffixes and relying on the step-level `if:` for clarity.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on code in PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#discussion_r4217748294
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,179 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, closed]
Review Comment:
@Kusuma04-dev this makes sense to me
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] kie-issues#7205: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Kusuma04-dev (via GitHub)" <gi...@apache.org>.
Kusuma04-dev commented on PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#issuecomment-6387117578
Hi @tiagobento,
Thanks for the review and approval!
The "Phase 1" and "Phase 2" breakdown comes from the Java 21 migration plan proposed by Tibor on the dev mailing list:
Phase 1 (Codebase & Build Compatibility with Java 21):
- Set <maven.compiler.release>17</maven.compiler.release> across KIE repositories so the code remains binary compatible with Java 17 while building on Java 21.
- Fixed compilation and test issues caused by Java 21 across all repositories .
- Updated published container images requiring a JDK to use JDK 21 instead of JDK 17.
Phase 2 (CI/CD Pipeline Defaults & Release Automation) — this PR:
- Switch the default build and release pipelines (GitHub Actions, Jenkins default_tools.jdk / sonar_jdk, and PR builds) to run on Java 21.
- Keep Java 17 validated via the matrix strategy (java: [17, 21]) in CI to guarantee ongoing Java 17 backward compatibility.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "tiagobento (via GitHub)" <gi...@apache.org>.
tiagobento commented on PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#issuecomment-6109294910
@Kusuma04-dev Ok, but I still don't understand why couldn't simply we keep the matrix. What is the different configuration we need to do for Java 17? Also: wouldn't it be better if there weren't any specific configurations for Java 17 vs Java 21?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Kusuma04-dev (via GitHub)" <gi...@apache.org>.
Kusuma04-dev commented on PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#issuecomment-6117398239
@tiagobento , The only reason I had them separate was to allow Java 17 to be configured as an independent required status check. There is no difference in configuration between Java 17 and Java 21. After considering everything,I also feel the matrix approach is better. I will modify it. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#discussion_r4217619883
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,179 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, closed]
Review Comment:
Triggering on `pull_request.closed` starts a workflow run that immediately skips the job (`if: github.event.action != 'closed'`). Removing `closed` avoids unnecessary workflow invocations/noise and reduces Actions load while keeping the same effective behavior.
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,179 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, closed]
+ branches: [main]
+ paths-ignore:
+ - 'LICENSE'
+ - '**/.gitignore'
+ - '**.md'
+ - '**.adoc'
+ - '*.txt'
+ - 'docsimg/**'
+ - '.ci/jenkins/**'
+ push:
+ branches: [main]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+jobs:
+
+ build:
+ if: github.event.action != 'closed'
+ name: 'Java 17'
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: 'SETUP :: Set paths for temporary files'
+ shell: bash
+ run: |
+ echo "CHANGED_FILES_FILE=${{ runner.temp }}/changed-files.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_AFFECTED_FILE=${{ runner.temp }}/maven-pl-affected.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_UPSTREAM_FILE=${{ runner.temp }}/maven-pl-upstream.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_CHANGED_FILE=${{ runner.temp }}/maven-pl-changed.txt" >> "$GITHUB_ENV"
+ echo "DEP_GRAPH_EXTRACTOR__OUTPUT_FILE=${{ runner.temp }}/dep-graph.tsv" >> "$GITHUB_ENV"
+ touch "${{ runner.temp }}/changed-files.txt"
+ touch "${{ runner.temp }}/maven-pl-affected.txt"
+ touch "${{ runner.temp }}/maven-pl-upstream.txt"
+ touch "${{ runner.temp }}/maven-pl-changed.txt"
+
+ - name: 'SETUP :: Free disk space (Ubuntu)'
+ shell: bash
+ run: |
+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
+ df -h
+
+ - name: "SETUP :: Checkout to load local actions"
+ uses: actions/checkout@v7
+
+ - name: "SETUP :: Checkout @ Simulated squashed-merge if PR, else checkout current commit"
+ id: checkout_pr
+ uses: ./.github/actions/checkout-pr
+ with:
+ ref: ${{ github.base_ref }}
+
+ - uses: actions/setup-java@v6
+ name: 'SETUP :: Java 17'
+ with:
+ java-version: 17
+ distribution: temurin
+ cache: maven
+
+ - name: 'SETUP :: Install JBang'
+ shell: bash
+ run: |
+ curl -sL https://github.com/jbangdev/jbang/releases/download/v0.138.0/jbang-0.138.0.zip -o jbang.zip
+ echo "3c9fb9ac5823ae5ab9d136dec08b896e2a0f6f6b313689b21f43c511b7c34b85 jbang.zip" | sha256sum -c -
+ unzip -q jbang.zip
+ echo "${{ github.workspace }}/jbang-0.138.0/bin" >> $GITHUB_PATH
+
+ - name: 'SETUP :: Block apache.snapshots Maven repository'
+ shell: bash
+ run: |
+ mkdir -p "$HOME/.m2"
+ cat > "$HOME/.m2/settings.xml" <<'EOF'
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
+ <mirrors>
+ <mirror>
+ <id>block-apache-snapshots</id>
+ <mirrorOf>apache.snapshots,apache-snapshot-repository</mirrorOf>
+ <url>https://repository.apache.org/snapshots/</url>
+ <blocked>true</blocked>
+ </mirror>
+ </mirrors>
+ </settings>
+ EOF
+
+ - name: 'SETUP :: Collect changed files'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ env:
+ BASE_REF: origin/${{ github.base_ref }}
+ run: |
+ git diff --name-only "${BASE_REF}...HEAD" > "$CHANGED_FILES_FILE"
+ echo "Changed files:"
+ cat "$CHANGED_FILES_FILE"
+
+ - name: 'SETUP :: Compute build scopes'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ jbang script/ci/CiComputeBuildScopes.java \
+ "$CHANGED_FILES_FILE" \
+ "$MAVEN_PL_UPSTREAM_FILE" \
+ "$MAVEN_PL_AFFECTED_FILE" \
+ "$MAVEN_PL_CHANGED_FILE"
+
+ - name: "PR CHECK :: BUILD :: Upstream modules${{ github.event_name == 'push' && ' (skipped)' || '' }}"
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ pl=$(paste -sd, "$MAVEN_PL_UPSTREAM_FILE")
+ [ -z "$pl" ] && echo "No upstream modules. Skipping." && exit 0
+ mvn -T 1C --batch-mode --no-transfer-progress -fae -DskipTests -DskipITs -Denforcer.skip=true -Dcheckstyle.skip=true -Dformatter.skip=true -Darchunit.skip=true -Dsurefire.redirectTestOutputToFile=true -pl "$pl" install
+
+ - name: "PR CHECK :: BUILD :: Changed and affected modules${{ github.event_name == 'push' && ' (skipped)' || '' }}"
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ pl=$(paste -sd, "$MAVEN_PL_AFFECTED_FILE")
+ [ -z "$pl" ] && echo "No affected modules. Skipping." && exit 0
+ mvn --batch-mode --no-transfer-progress -fae -Dsurefire.redirectTestOutputToFile=true -Dfull -Dreproducible -pl "$pl" install
+
+ - name: "CI :: BUILD :: Full${{ github.event_name == 'pull_request' && ' (skipped)' || '' }}"
+ if: github.event_name == 'push'
+ shell: bash
+ run: mvn --batch-mode --no-transfer-progress -fae -Dsurefire.redirectTestOutputToFile=true -Dfull -Dreproducible install
+
+ - name: 'SUMMARY :: Publish'
+ if: always()
+ shell: bash
+ env:
+ MERMAID_EXPANDED: ${{ matrix.os == 'ubuntu-latest' }}
Review Comment:
`matrix` is referenced in this workflow, but this job does not define a matrix strategy. This will fail expression evaluation (unrecognized `matrix`). Set `MERMAID_EXPANDED` based on `runner.os`, hardcode it, or remove the condition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#issuecomment-6253012814
@Kusuma04-dev I Approved, so it's fine for me. A question: how we should manage JDK 25 once the codebase will support it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#discussion_r4237570785
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,186 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened]
+ branches: [main]
+ paths-ignore:
+ - 'LICENSE'
+ - '**/.gitignore'
+ - '**.md'
+ - '**.adoc'
Review Comment:
This workflow is intended to become a required Java 17 check, but a documentation-only PR matching `paths-ignore` creates no check run; GitHub then leaves a required check pending and blocks the merge. Trigger the workflow for every PR and perform path filtering inside it (with a successful no-op path), or avoid configuring this check as required.
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,186 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened]
+ branches: [main]
+ paths-ignore:
+ - 'LICENSE'
+ - '**/.gitignore'
+ - '**.md'
+ - '**.adoc'
+ - '*.txt'
+ - 'docsimg/**'
+ - '.ci/jenkins/**'
+ push:
+ branches: [main]
+ paths-ignore:
+ - 'LICENSE'
+ - '**/.gitignore'
+ - '**.md'
+ - '**.adoc'
+ - '*.txt'
+ - 'docsimg/**'
+ - '.ci/jenkins/**'
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+jobs:
+
+ build:
+ name: 'Java 17'
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: 'SETUP :: Set paths for temporary files'
+ shell: bash
+ run: |
+ echo "CHANGED_FILES_FILE=${{ runner.temp }}/changed-files.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_AFFECTED_FILE=${{ runner.temp }}/maven-pl-affected.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_UPSTREAM_FILE=${{ runner.temp }}/maven-pl-upstream.txt" >> "$GITHUB_ENV"
+ echo "MAVEN_PL_CHANGED_FILE=${{ runner.temp }}/maven-pl-changed.txt" >> "$GITHUB_ENV"
+ echo "DEP_GRAPH_EXTRACTOR__OUTPUT_FILE=${{ runner.temp }}/dep-graph.tsv" >> "$GITHUB_ENV"
+ touch "${{ runner.temp }}/changed-files.txt"
+ touch "${{ runner.temp }}/maven-pl-affected.txt"
+ touch "${{ runner.temp }}/maven-pl-upstream.txt"
+ touch "${{ runner.temp }}/maven-pl-changed.txt"
+
+ - name: 'SETUP :: Free disk space (Ubuntu)'
+ shell: bash
+ run: |
+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
+ df -h
+
+ - name: "SETUP :: Checkout to load local actions"
+ uses: actions/checkout@v7
+
+ - name: "SETUP :: Checkout @ Simulated squashed-merge if PR, else checkout current commit"
+ id: checkout_pr
+ uses: ./.github/actions/checkout-pr
+ with:
+ ref: ${{ github.base_ref }}
+
+ - uses: actions/setup-java@v6
+ name: 'SETUP :: Java 17'
+ with:
+ java-version: 17
+ distribution: temurin
+ cache: maven
+
+ - name: 'SETUP :: Install JBang'
+ shell: bash
+ run: |
+ curl -sL https://github.com/jbangdev/jbang/releases/download/v0.138.0/jbang-0.138.0.zip -o jbang.zip
+ echo "3c9fb9ac5823ae5ab9d136dec08b896e2a0f6f6b313689b21f43c511b7c34b85 jbang.zip" | sha256sum -c -
+ unzip -q jbang.zip
+ echo "${{ github.workspace }}/jbang-0.138.0/bin" >> $GITHUB_PATH
+
+ - name: 'SETUP :: Block apache.snapshots Maven repository'
+ shell: bash
+ run: |
+ mkdir -p "$HOME/.m2"
+ cat > "$HOME/.m2/settings.xml" <<'EOF'
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
+ <mirrors>
+ <mirror>
+ <id>block-apache-snapshots</id>
+ <mirrorOf>apache.snapshots,apache-snapshot-repository</mirrorOf>
+ <url>https://repository.apache.org/snapshots/</url>
+ <blocked>true</blocked>
+ </mirror>
+ </mirrors>
+ </settings>
+ EOF
+
+ - name: 'SETUP :: Collect changed files'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ env:
+ BASE_REF: origin/${{ github.base_ref }}
+ run: |
+ git diff --name-only "${BASE_REF}...HEAD" > "$CHANGED_FILES_FILE"
+ echo "Changed files:"
+ cat "$CHANGED_FILES_FILE"
+
+ - name: 'SETUP :: Compute build scopes'
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ jbang script/ci/CiComputeBuildScopes.java \
+ "$CHANGED_FILES_FILE" \
+ "$MAVEN_PL_UPSTREAM_FILE" \
+ "$MAVEN_PL_AFFECTED_FILE" \
+ "$MAVEN_PL_CHANGED_FILE"
+
+ - name: "PR CHECK :: BUILD :: Upstream modules"
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ pl=$(paste -sd, "$MAVEN_PL_UPSTREAM_FILE")
+ [ -z "$pl" ] && echo "No upstream modules. Skipping." && exit 0
+ mvn -T 1C --batch-mode --no-transfer-progress -fae -DskipTests -DskipITs -Denforcer.skip=true -Dcheckstyle.skip=true -Dformatter.skip=true -Darchunit.skip=true -Dsurefire.redirectTestOutputToFile=true -pl "$pl" install
+
+ - name: "PR CHECK :: BUILD :: Changed and affected modules"
+ if: github.event_name == 'pull_request'
+ shell: bash
+ run: |
+ pl=$(paste -sd, "$MAVEN_PL_AFFECTED_FILE")
+ [ -z "$pl" ] && echo "No affected modules. Skipping." && exit 0
+ mvn --batch-mode --no-transfer-progress -fae -Dsurefire.redirectTestOutputToFile=true -Dfull -Dreproducible -pl "$pl" install
Review Comment:
The PR description says the Java 17 workflow runs `mvn clean install` on every PR, but this command only installs the computed affected-module set (and does not run `clean`), so unaffected reactor modules are not validated. Either run the promised full build or update the PR description to state that PR validation is scoped.
##########
.github/workflows/ci.yaml:
##########
@@ -17,11 +17,11 @@
# under the License.
#
-name: 'CI :: Build'
+name: 'CI :: Build (Java 21)'
Review Comment:
Renaming and splitting this check makes `docs/PR_CHECKS_AND_CI.md` inaccurate: it still documents `CI :: Build`, says one matrix runs Java 17 and 21, says closing a PR cancels that workflow, and does not mention the new compatibility workflow. Please update that CI reference so contributors can identify the actual checks and triggers.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Kusuma04-dev (via GitHub)" <gi...@apache.org>.
Kusuma04-dev commented on PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#issuecomment-6267175026
> @Kusuma04-dev I Approved, so it's fine for me. A question: how we should manage JDK 25 once the codebase will support it?
Yes @yesamer, it can be supported by adding 25 to the java matrix — java: [17, 21, 25] — since the workflow already handles everything dynamically via ${{ matrix.java }}.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "Kusuma04-dev (via GitHub)" <gi...@apache.org>.
Kusuma04-dev commented on code in PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#discussion_r4222702511
##########
.github/workflows/ci_java17_compat.yml:
##########
@@ -0,0 +1,179 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "CI :: Build (Java 17)"
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, closed]
Review Comment:
I agree Yeser, Updated!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] NO-ISSUE: migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "tiagobento (via GitHub)" <gi...@apache.org>.
tiagobento commented on PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154#issuecomment-6101541608
> Removed Java 17 from the build matrix; only java: [21] remains.
@Kusuma04-dev Why?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] [incubator-kie#7205] Migrate CI/CD pipelines to Java 21 (Phase 2) [incubator-kie]
Posted by "tiagobento (via GitHub)" <gi...@apache.org>.
tiagobento merged PR #7154:
URL: https://github.com/apache/incubator-kie/pull/7154
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org