From 144dfdc587135dab1e048932b3a51258f48bd234 Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Tue, 18 Apr 2023 10:30:27 +0200 Subject: [PATCH] Add relaxed mode testing into CI runs --- .github/workflows/ci-actions.yml | 72 +++++++++++++++++++ jboss-tck-runner/pom.xml | 13 +++- .../src/test/tck/tck-tests-web.xml | 45 ++++++++++++ .../src/test/{tck20 => tck}/tck-tests.xml | 2 + pom.xml | 6 +- 5 files changed, 133 insertions(+), 5 deletions(-) create mode 100644 jboss-tck-runner/src/test/tck/tck-tests-web.xml rename jboss-tck-runner/src/test/{tck20 => tck}/tck-tests.xml (88%) diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml index 5967f8e6995..d44083b8c01 100644 --- a/.github/workflows/ci-actions.yml +++ b/.github/workflows/ci-actions.yml @@ -201,6 +201,78 @@ jobs: name: server-log-cdi-tck-jdk${{matrix.java.name}} path: 'server-log.tgz' + # relaxed mode, w/ and w/o Wildfly, single JDK version + relaxed-mode-test: + name: "Relaxed mode testing - JDK ${{matrix.java.name}}" + runs-on: ubuntu-latest + needs: build-jdk11 + timeout-minutes: 120 + strategy: + fail-fast: false + matrix: + java: + - { name: "11", + java-version: 11, + } + steps: + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java.name }} + uses: actions/setup-java@v1.4.3 + with: + java-version: ${{ matrix.java.java-version }} + + - name: Download Maven Repo + uses: actions/download-artifact@v1 + with: + name: maven-repo + path: . + - name: Extract Maven Repo + shell: bash + run: tar -xzf maven-repo.tgz -C ~ + - name: Download Patched WildFly + uses: actions/download-artifact@v1 + with: + name: wildfly-patched-zip + path: . + - name: Extract WildFly + run: unzip wildfly.zip + - name: Build with Maven w/ WildFly + run: | + JBOSS_HOME=`pwd`'/wildfly' + export JBOSS_HOME=`echo $JBOSS_HOME` + mvn clean verify -Dincontainer -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dcdi.tck.suite.xml.file=src/test/tck/tck-tests-web.xml -Dadditional.vm.args="-Dorg.jboss.weld.construction.relaxed=true" -f jboss-tck-runner/pom.xml + - name: Prepare failure archive (if maven failed) + if: failure() + shell: bash + run: | + find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - + find . -name 'server.log' -type f | tar -czf server-log.tgz -T - + - name: Upload failure Archive (if maven failed) + uses: actions/upload-artifact@v1 + if: failure() + with: + name: test-reports-cdi-tck-jdk${{matrix.java.name}}-incontainer-relaxed + path: 'test-reports.tgz' + - name: Upload server log artifact (if maven failed) + uses: actions/upload-artifact@v1 + if: failure() + with: + name: server-log-cdi-tck-jdk${{matrix.java.name}} + path: 'server-log.tgz' + - name: Build with Maven, no WildFly + run: | + mvn clean verify -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dcdi.tck.suite.xml.file=src/test/tck/tck-tests.xml -Dorg.jboss.weld.construction.relaxed=true + - name: Prepare failure archive (if maven failed) + if: failure() + shell: bash + run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - + - name: Upload failure Archive (if maven failed) + uses: actions/upload-artifact@v1 + if: failure() + with: + name: test-reports-cdi-tck-jdk${{matrix.java.name}}-relaxed + path: 'test-reports.tgz' + # Weld no-container tests, includes junit, Weld SE tests plus CDI TCKs and integration tests that don't require EE container no-container-tests: name: "Weld Tests w/o Container - JDK ${{matrix.java.name}}" diff --git a/jboss-tck-runner/pom.xml b/jboss-tck-runner/pom.xml index 4c43d7c243c..c1a5065ebaa 100644 --- a/jboss-tck-runner/pom.xml +++ b/jboss-tck-runner/pom.xml @@ -293,6 +293,9 @@ !incontainer + + target/suites/tck-core-suite.xml + org.jboss.arquillian.container @@ -349,7 +352,7 @@ ${travis.surefire.argLine} - target/suites/tck-core-suite.xml + ${cdi.tck.suite.xml.file} @@ -369,6 +372,7 @@ se + target/suites/tck-web-suite.xml @@ -524,7 +528,7 @@ - target/suites/tck-web-suite.xml + ${cdi.tck.suite.xml.file} @@ -541,6 +545,9 @@ se + + target/suites/tck-core-suite.xml + org.wildfly.arquillian @@ -596,7 +603,7 @@ ${project.build.outputDirectory} - target/suites/tck-core-suite.xml + ${cdi.tck.suite.xml.file} diff --git a/jboss-tck-runner/src/test/tck/tck-tests-web.xml b/jboss-tck-runner/src/test/tck/tck-tests-web.xml new file mode 100644 index 00000000000..c78184197b8 --- /dev/null +++ b/jboss-tck-runner/src/test/tck/tck-tests-web.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jboss-tck-runner/src/test/tck20/tck-tests.xml b/jboss-tck-runner/src/test/tck/tck-tests.xml similarity index 88% rename from jboss-tck-runner/src/test/tck20/tck-tests.xml rename to jboss-tck-runner/src/test/tck/tck-tests.xml index 269be3bcc28..59c650c237f 100644 --- a/jboss-tck-runner/src/test/tck20/tck-tests.xml +++ b/jboss-tck-runner/src/test/tck/tck-tests.xml @@ -1,5 +1,7 @@ + + diff --git a/pom.xml b/pom.xml index ef498715c9f..5418c4afa33 100644 --- a/pom.xml +++ b/pom.xml @@ -60,10 +60,12 @@ 1.2.0.Final 1.0.0.Final 2.0.1 - - 4.0.9 + + + + 1.2.5.Final 4.7.2.0 4.7.2