From 5ab731167cbd4a2b19776f4908bc5a2b555bdebc Mon Sep 17 00:00:00 2001 From: EvanPagryzinski-NOAA Date: Tue, 30 Jul 2024 13:09:11 -0400 Subject: [PATCH 1/2] Update commitChecks.yml --- .github/workflows/commitChecks.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/commitChecks.yml b/.github/workflows/commitChecks.yml index 1dd7cbff8..989ea8592 100644 --- a/.github/workflows/commitChecks.yml +++ b/.github/workflows/commitChecks.yml @@ -104,6 +104,24 @@ jobs: unzip build-artifacts/systests/build/distributions/systests-*[a-f0-9].zip echo "systests_dir=$( ls -1d systests-*[a-f0-9] )" >> "$GITHUB_ENV" + # Run systests + - name: Systests In Memory + run: | + echo "Starting an in memory test..." + + # Configure the parameters sent to the test JVM in the settings file (avoids some quoting/escaping issues). + # TODO: replace with -P gradle property overrides in the test command once the quoting/escaping issues can be worked out + sed -i "s/testJvmSystemProperties =.*/testJvmSystemProperties = -Dwres.useSSL=false -Dwres.useDatabase=false -Djava.awt.headless=true -Dwres.dataDirectory=. -Djava.io.tmpdir=.. -Ducar.unidata.io.http.maxReadCacheSize=200000 -Ducar.unidata.io.http.httpBufferSize=200000 -Dwres.attemptToMigrate=false -Duser.timezone=UTC -Dwres.externalGraphics=true -Dwres.externalNumerics=true -Dwres.startBroker=false -Dwres.eventsBrokerAddress=localhost -Dwres.eventsBrokerPort=5673/g" $systests_dir/gradle.properties + sed -i "s/testJvmSystemPropertiesGraphics =.*/testJvmSystemPropertiesGraphics = -Djava.io.tmpdir=. -Dwres.startBroker=true -Dwres.eventsBrokerAddress=localhost -Dwres.eventsBrokerPort=5673/g" $systests_dir/gradle.properties + sed -i "s/testJvmSystemPropertiesWriting =.*/testJvmSystemPropertiesWriting = -Djava.io.tmpdir=. -Dwres.startBroker=false -Dwres.eventsBrokerAddress=localhost -Dwres.eventsBrokerPort=5673/g" $systests_dir/gradle.properties + + # Run the tests using a separate graphics and writing process + $systests_dir/gradlew -p $systests_dir cleanTest test -PwresZipDirectory=../build-artifacts/build/distributions/ -PwresGraphicsZipDirectory=../build-artifacts/wres-vis/build/distributions/ -PwresWritingZipDirectory=../build-artifacts/wres-writing/build/distributions/ -PversionToTest=$wres_version -PgraphicsVersionToTest=$wres_vis -PwritingVersionToTest=$wres_writing --tests=Scenario052 --tests=Scenario053 --tests=Scenario1000 --tests=Scenario1001 --tests=Scenario500 --tests=Scenario501 --tests=Scenario502 --tests=Scenario504 --tests=Scenario505 --tests=Scenario506 --tests=Scenario507 --tests=Scenario508 --tests=Scenario509 --tests=Scenario510 --tests=Scenario511 --tests=Scenario512 --tests=Scenario513 --tests=Scenario514 --tests=Scenario720 --tests=Scenario721 + + # Save the test results + mkdir -p test_results_0 + mv systests-*/build/reports/tests/test/* test_results_0 + mv systests-*/build/*.log test_results_0 # Run systests - name: Systests With Externalized Writers @@ -163,6 +181,7 @@ jobs: with: name: systest-result-artifacts path: | + test_results_0 test_results_1 test_results_2 test_results_3 From 9a55e541aa845fc82179a8b674f1eae12ffdd2ed Mon Sep 17 00:00:00 2001 From: EvanPagryzinski-NOAA Date: Tue, 30 Jul 2024 15:04:23 -0400 Subject: [PATCH 2/2] Update commitChecks.yml --- .github/workflows/commitChecks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commitChecks.yml b/.github/workflows/commitChecks.yml index 989ea8592..ee7e0adf6 100644 --- a/.github/workflows/commitChecks.yml +++ b/.github/workflows/commitChecks.yml @@ -111,7 +111,7 @@ jobs: # Configure the parameters sent to the test JVM in the settings file (avoids some quoting/escaping issues). # TODO: replace with -P gradle property overrides in the test command once the quoting/escaping issues can be worked out - sed -i "s/testJvmSystemProperties =.*/testJvmSystemProperties = -Dwres.useSSL=false -Dwres.useDatabase=false -Djava.awt.headless=true -Dwres.dataDirectory=. -Djava.io.tmpdir=.. -Ducar.unidata.io.http.maxReadCacheSize=200000 -Ducar.unidata.io.http.httpBufferSize=200000 -Dwres.attemptToMigrate=false -Duser.timezone=UTC -Dwres.externalGraphics=true -Dwres.externalNumerics=true -Dwres.startBroker=false -Dwres.eventsBrokerAddress=localhost -Dwres.eventsBrokerPort=5673/g" $systests_dir/gradle.properties + sed -i "s/testJvmSystemProperties =.*/testJvmSystemProperties = -Dwres.useSSL=false -Dwres.useDatabase=false -Djava.awt.headless=true -Dwres.dataDirectory=. -Djava.io.tmpdir=.. -Ducar.unidata.io.http.maxReadCacheSize=200000 -Ducar.unidata.io.http.httpBufferSize=200000 -Dwres.attemptToMigrate=false -Duser.timezone=UTC -Dwres.externalGraphics=false -Dwres.externalNumerics=false -Dwres.startBroker=false -Dwres.eventsBrokerAddress=localhost -Dwres.eventsBrokerPort=5673/g" $systests_dir/gradle.properties sed -i "s/testJvmSystemPropertiesGraphics =.*/testJvmSystemPropertiesGraphics = -Djava.io.tmpdir=. -Dwres.startBroker=true -Dwres.eventsBrokerAddress=localhost -Dwres.eventsBrokerPort=5673/g" $systests_dir/gradle.properties sed -i "s/testJvmSystemPropertiesWriting =.*/testJvmSystemPropertiesWriting = -Djava.io.tmpdir=. -Dwres.startBroker=false -Dwres.eventsBrokerAddress=localhost -Dwres.eventsBrokerPort=5673/g" $systests_dir/gradle.properties