Skip to content

Commit

Permalink
Bump org.junit.jupiter:junit-jupiter from 5.11.2 to 5.11.3 in /finish (
Browse files Browse the repository at this point in the history
…#2)

* Bump org.junit.jupiter:junit-jupiter from 5.11.2 to 5.11.3 in /start

Bumps [org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit5) from 5.11.2 to 5.11.3.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](junit-team/junit5@r5.11.2...r5.11.3)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump org.junit.jupiter:junit-jupiter from 5.11.2 to 5.11.3 in /finish

Bumps [org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit5) from 5.11.2 to 5.11.3.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](junit-team/junit5@r5.11.2...r5.11.3)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update test.yml

* Update testApp.sh

* Update testApp.sh

* Update test.yml

* temporarily fix the test

Signed-off-by: Gilbert Kwan <[email protected]>

* temporarily fix the test

Signed-off-by: Gilbert Kwan <[email protected]>

* temporarily fix the test

Signed-off-by: Gilbert Kwan <[email protected]>

* temporarily fix the test

Signed-off-by: Gilbert Kwan <[email protected]>

* temporarily fix the test

Signed-off-by: Gilbert Kwan <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gilbert Kwan <[email protected]>
  • Loading branch information
dependabot[bot] and gkwan-ibm authored Oct 29, 2024
1 parent fc80875 commit 198b973
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 36 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,21 @@ jobs:
working-directory: finish
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- run: unset _JAVA_OPTIONS
- name: Run tests
run: ../scripts/testApp.sh
- name: Post tests
if: always()
run: |
logsPath=$(find . -name "console.log" | grep system);
logsPath=$(find . -name "console.log");
< "$logsPath" grep Launching
logsPath=$(find . -name "console.log" | grep client);
< "$logsPath" grep Launching
- name: Archive client server logs if failed
if: failure()
uses: actions/upload-artifact@v4
with:
name: client-server-logs
path: finish/client/target/liberty/wlp/usr/servers/defaultServer/logs/
- name: Archive system server logs if failed
- name: Archive server logs if failed
if: failure()
uses: actions/upload-artifact@v4
with:
name: system-server-logs
path: finish/system/target/liberty/wlp/usr/servers/defaultServer/logs/
name: server-logs
path: finish/target/liberty/wlp/usr/servers/defaultServer/logs/
8 changes: 7 additions & 1 deletion finish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.11.2</version>
<version>5.11.3</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -54,6 +54,12 @@
<artifactId>liberty-maven-plugin</artifactId>
<version>3.11.1</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.0</version>
</plugin>
</plugins>
</build>
</project>
26 changes: 6 additions & 20 deletions scripts/testApp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,15 @@ set -euxo pipefail
mvn -ntp -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-ntp -pl system -q clean package liberty:create liberty:install-feature liberty:deploy
mvn -ntp -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-ntp -pl client -q clean package liberty:create liberty:install-feature liberty:deploy
-ntp -q clean package liberty:create liberty:install-feature liberty:deploy

mvn -ntp -pl system liberty:start
mvn -ntp -pl client liberty:start
mvn test

mvn -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-ntp -pl system failsafe:integration-test
mvn -ntp liberty:start

sleep 20
grep loadAverage client/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log || \
sleep 20 || \
grep loadAverage client/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log || exit 1
grep memoryUsage client/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log || \
sleep 20 || \
grep memoryUsage client/target/liberty/wlp/usr/servers/defaultServer/logs/messages.log || exit 1
# check the messages.log
# check the url

mvn -ntp -pl system liberty:stop
mvn -ntp -pl client liberty:stop
mvn -ntp liberty:stop

mvn -ntp failsafe:verify
8 changes: 7 additions & 1 deletion start/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.11.2</version>
<version>5.11.3</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -54,6 +54,12 @@
<artifactId>liberty-maven-plugin</artifactId>
<version>3.11.1</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.0</version>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 198b973

Please sign in to comment.