Skip to content

Commit

Permalink
Standardize test results directory between normal/docker tests (#8718)
Browse files Browse the repository at this point in the history
Normalize the test results location between docker and non docker tests
  • Loading branch information
lbergelson committed Mar 7, 2024
1 parent c97faf6 commit a2ebb37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/upload-gatk-test-results/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ runs:
id: uploadreports
run: |
gsutil -m cp -z html -z js -z xml -z css -r build/reports/tests gs:/${{ env.HELLBENDER_TEST_LOGS }}${{ inputs.repo-path }}/;
VIEW_URL=https://storage.googleapis.com${{ env.HELLBENDER_TEST_LOGS }}${{ inputs.repo-path }}/tests/testOnPackagedReleaseJar/index.html
VIEW_URL=https://storage.googleapis.com${{ env.HELLBENDER_TEST_LOGS }}${{ inputs.repo-path }}/tests/test/index.html
echo "See the test report at ${VIEW_URL}";
echo view_url="${VIEW_URL}" >> $GITHUB_OUTPUT
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/gatk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,6 @@ jobs:
bash --init-file /gatk/gatkenv.rc /root/run_unit_tests.sh;
TEST_EXIT_VALUE=$?;
$( exit ${TEST_EXIT_VALUE} );
sudo chmod -R a+w build/reports/;
mkdir build/reports/tests/test \
&& cp -rp build/reports/tests/testOnPackagedReleaseJar/* build/reports/tests/test \
&& rm -r build/reports/tests/testOnPackagedReleaseJar;
- uses: ./.github/actions/upload-gatk-test-results
if: always()
Expand Down
3 changes: 3 additions & 0 deletions scripts/docker/dockertest.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ task testOnPackagedReleaseJar(type: Test){

jvmArgs = getJVMArgs(runtimeAddOpens, testAddOpens)

//Set this to match the name of the normal test output in order to simplify finding / uploading it
reports.html.outputLocation = file("$buildDir/reports/tests/test")

classpath = files( gatkJar, testDependencyJar, testClassesJar)
testClassesDirs = files(testClassesUnpacked)
}
Expand Down

0 comments on commit a2ebb37

Please sign in to comment.