Feature/acs 10404 test runtime compatibility with java21n25 (#1153)

* ACS-10404 Base Branch - Test ATS T-core runtime compatibility with Java 21 and 25
This commit is contained in:
Belal Ansari
2025-10-29 12:38:10 +05:30
committed by GitHub
parent 0df5c18254
commit 1bfe0f4c4e
10 changed files with 124 additions and 54 deletions
+60 -17
View File
@@ -38,7 +38,7 @@ jobs:
pre_commit:
runs-on: ubuntu-latest
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v9.3.1
veracode_sca:
name: "Veracode - Source Clear Scan (SCA)"
@@ -50,11 +50,11 @@ jobs:
github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v9.3.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v9.3.1
- name: "Clean-up SNAPSHOT artifacts"
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
- uses: Alfresco/alfresco-build-tools/.github/actions/veracode@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/veracode@v9.3.1
continue-on-error: true
with:
srcclr-api-token: ${{ secrets.SRCCLR_API_TOKEN }}
@@ -70,8 +70,8 @@ jobs:
!contains(github.event.head_commit.message, '[skip tests]')
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v9.3.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v9.3.1
- name: "Login to Docker Hub"
uses: docker/login-action@v3
with:
@@ -83,7 +83,7 @@ jobs:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- uses: Alfresco/alfresco-build-tools/.github/actions/github-download-file@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/github-download-file@v9.3.1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
repository: "Alfresco/veracode-baseline-archive"
@@ -137,8 +137,8 @@ jobs:
!contains(github.event.head_commit.message, '[skip tests]')
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v9.3.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v9.3.1
- uses: Alfresco/ya-pmd-scan@v4.1.0
with:
classpath-build-command: "mvn -ntp package -DskipTests"
@@ -153,8 +153,8 @@ jobs:
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v9.3.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v9.3.1
- name: "Login to Docker Hub"
uses: docker/login-action@v3
with:
@@ -210,8 +210,8 @@ jobs:
testProfile: aio-test
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v9.3.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v9.3.1
- name: "Login to Docker Hub"
uses: docker/login-action@v3
with:
@@ -238,10 +238,53 @@ jobs:
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: bash _ci/test.sh ${{ matrix.testProfile }}
e2e_javaruntime_tests:
name: "E2E AIO Smoke Tests ( Java: ${{ matrix.java }}"
runs-on: ubuntu-latest
needs:
- pre_commit
strategy:
fail-fast: false
matrix:
java: [ '21', '25' ]
steps:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v9.3.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v9.3.1
- name: "Login to Docker Hub"
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: "Login to Quay.io"
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: "Enable experimental docker features"
run: |
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- name: "Clean-up SNAPSHOT artifacts"
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
- name: "Build local docker image"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: bash _ci/build.sh full-build
- name: "Cache LibreOffice"
run: bash _ci/cache_artifacts.sh
- name: "Run tests"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
env:
SMOKE_TESTS: true
SKIP_DEPLOY: true
JAVA_RUNTIME_VERSION: ${{ matrix.java }}
run: bash _ci/test.sh aio-test
release:
name: "Release"
runs-on: ubuntu-latest
needs: [veracode_sca, build_and_test, all_tests_matrix]
needs: [veracode_sca, build_and_test, all_tests_matrix, e2e_javaruntime_tests]
if: >
!(failure() || cancelled()) &&
contains(github.event.head_commit.message, '[release]') &&
@@ -251,8 +294,8 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v9.3.1
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v9.3.1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
@@ -274,7 +317,7 @@ jobs:
sudo service docker restart
- name: "Clean-up SNAPSHOT artifacts"
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v8.26.0
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v9.3.1
with:
username: ${{ env.GIT_USERNAME }}
email: ${{ env.GIT_EMAIL }}