[Rt-commit] rt branch, 4.4/github-actions-testing2, updated. rt-4.4.4-469-gc5447171a4

Jim Brandt jbrandt at bestpractical.com
Tue May 25 13:24:12 EDT 2021


The branch, 4.4/github-actions-testing2 has been updated
       via  c5447171a4912c517932f1896348183caf775bda (commit)
      from  1f776090cc2cc4c87c8ac8089f15be3592972ebc (commit)

Summary of changes:
 .github/workflows/github-action.yml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit c5447171a4912c517932f1896348183caf775bda
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue May 25 13:24:09 2021 -0400

    Format run time

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index 27c0f9cf0e..1b47ac877f 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -27,7 +27,7 @@ jobs:
         shell: bash
         run: |
           echo "Sleeping"
-          sleep 10
+          sleep 61
 #          docker exec -e RT_TEST_PARALLEL=1 rt bash -c "cd /rt && prove -lj6 t/*"
       - name: Get run time
         shell: bash
@@ -36,7 +36,10 @@ jobs:
           echo RT_GA_START_TIME ${{ env.RT_GA_START_TIME }}
           echo RT_GA_END_TIME $RT_GA_END_TIME
           echo "RT_GA_END_TIME=$RT_GA_END_TIME" >> $GITHUB_ENV
-          echo "RT_GA_TEST_TIME=$(( RT_GA_END_TIME - ${{ env.RT_GA_START_TIME }} ))" >> $GITHUB_ENV
+          export RT_GA_TEST_TIME=$(( RT_GA_END_TIME - ${{ env.RT_GA_START_TIME }} ))
+          # Convert seconds to HH::MM::SS
+          export RT_GA_TEST_TIME=$(date -u -d @"$RT_GA_TEST_TIME" +"%T")
+          echo "RT_GA_TEST_TIME=$RT_GA_TEST_TIME" >> $GITHUB_ENV
       - name: Post results to Slack
         if: always()
         uses: edge/simple-slack-notify at v1.1.1
@@ -45,9 +48,9 @@ jobs:
         with:
           channel: '#github'
           status: ${{ job.status }}
-          success_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests completed successfully in ${env.RT_GA_TEST_TIME} seconds'
-          failure_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests failed in ${env.RT_GA_TEST_TIME} seconds'
-          cancelled_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests cancelled in ${env.RT_GA_TEST_TIME} seconds'
+          success_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests completed successfully in ${env.RT_GA_TEST_TIME}'
+          failure_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests failed in ${env.RT_GA_TEST_TIME}'
+          cancelled_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests cancelled in ${env.RT_GA_TEST_TIME}'
           fields: |
             [{ "title": "Test", "value": "rt_test_sqlite", "short": true },
             { "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]

-----------------------------------------------------------------------


More information about the rt-commit mailing list