[Rt-commit] rt branch, 4.4/github-actions-testing2, created. rt-4.4.4-466-g1fea77105c

? sunnavy sunnavy at bestpractical.com
Thu May 27 17:29:33 EDT 2021


The branch, 4.4/github-actions-testing2 has been created
        at  1fea77105c4c683178daedd8ca07a78864c461d5 (commit)

- Log -----------------------------------------------------------------
commit cba74f8dc1d26561bfbb82359e4ad2d4bc1ce72c
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon May 24 16:42:09 2021 -0400

    Pause travis testing while working on github actions

diff --git a/.travis.yml b/.travis.yml.pause
similarity index 100%
rename from .travis.yml
rename to .travis.yml.pause

commit 6d6246e30151cc0bba2cf2ded1c3842e7b74a96e
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon May 24 16:49:19 2021 -0400

    Add github actions config for rt-server tests with SQLite

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
new file mode 100644
index 0000000000..236a73dc5d
--- /dev/null
+++ b/.github/workflows/github-action.yml
@@ -0,0 +1,37 @@
+#language: bash
+#services: docker
+
+on: push
+
+jobs:
+  rt_test_sqlite:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check out RT
+        uses: actions/checkout at v2
+      - name: Build RT
+        env:
+          RT_TEST_PARALLEL: 1
+        shell: bash
+        run: |
+          docker build -t rt-base .
+          docker run -d -v $GITHUB_WORKSPACE:/rt --name rt rt-base
+          docker ps -a
+          docker exec rt bash -c "cd /rt && ./configure.ac --with-db-type=SQLite --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps"
+      - name: Run RT tests
+        shell: bash
+        run: docker exec -e RT_TEST_PARALLEL=1 rt bash -c "cd /rt && prove -lj6 t/*"
+      - name: Post results to Slack
+        if: always()
+        uses: edge/simple-slack-notify at v1.1.1
+        env:
+          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
+        with:
+          channel: '#github'
+          status: ${{ job.status }}
+          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests completed successfully'
+          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests failed'
+          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests cancelled'
+          fields: |
+            [{ "title": "Configuration", "value": "RT Server, 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 }]

commit 6fb9f202078eee7ce61e475e2fda10364dd4963c
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon May 24 17:12:52 2021 -0400

    Run GPG tests now that the environment is updated

diff --git a/Dockerfile b/Dockerfile
index d77111ec6f..98bafcd6c0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,7 +9,4 @@ ENV RT_DBA_PASSWORD password
 ENV RT_TEST_DB_HOST=172.17.0.2
 ENV RT_TEST_RT_HOST=172.17.0.3
 
-# Skip gpg tests until we update to gpg 2.2
-ENV SKIP_GPG_TESTS=1
-
 CMD tail -f /dev/null

commit b53b91a923b7c12472f9955994b1f8a5e766df87
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue May 25 08:29:49 2021 -0400

    Add MariaDB tests to github actions

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index 236a73dc5d..265aca7e1a 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -35,3 +35,43 @@ jobs:
           fields: |
             [{ "title": "Configuration", "value": "RT Server, 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 }]
+  rt_test_mariadb:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout RT
+        uses: actions/checkout at v2
+      - name: Build RT
+        env:
+          RT_TEST_PARALLEL: 1
+          RT_DBA_USER: root
+          RT_DBA_PASSWORD: password
+          DB_VERSION_TAG: 10.3
+        shell: bash
+        run: |
+          docker run --name mariadb -e MYSQL_ROOT_PASSWORD=password -d mariadb:$DB_VERSION_TAG
+          docker build -t rt-base .
+          docker run -d -v $GITHUB_WORKSPACE:/rt --name rt --link mariadb:db rt-base
+          docker ps -a
+          docker exec rt bash -c "cd /rt && ./configure.ac --with-db-type=mysql --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps"
+      - name: Run RT tests
+        env:
+          RT_TEST_PARALLEL: 1
+          RT_DBA_USER: root
+          RT_DBA_PASSWORD: password
+          DB_VERSION_TAG: 10.3
+        shell: bash
+        run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=root -e RT_DBA_PASSWORD=password rt bash -c "cd /rt && prove -lj6 t/*"
+      - name: Post results to Slack
+        if: always()
+        uses: edge/simple-slack-notify at v1.1.1
+        env:
+          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
+        with:
+          channel: '#github'
+          status: ${{ job.status }}
+          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests completed successfully'
+          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests failed'
+          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests cancelled'
+          fields: |
+            [{ "title": "Configuration", "value": "RT Server, MariaDB 10.3", "short": true },
+            { "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]

commit e3ff35b4d6742a55d111f59b8dee6fab46e8bb51
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue May 25 09:28:27 2021 -0400

    Calculate run time for tests for slack message

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index 265aca7e1a..e2c1fa73ae 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -7,6 +7,11 @@ jobs:
   rt_test_sqlite:
     runs-on: ubuntu-latest
     steps:
+      - name: Set up for tests
+        shell: bash
+        run: |
+          echo "RT_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
+          echo "RT_GA_START_TIME=$(date +%s)" >> $GITHUB_ENV
       - name: Check out RT
         uses: actions/checkout at v2
       - name: Build RT
@@ -21,6 +26,17 @@ jobs:
       - name: Run RT tests
         shell: bash
         run: docker exec -e RT_TEST_PARALLEL=1 rt bash -c "cd /rt && prove -lj6 t/*"
+      - name: Get run time
+        shell: bash
+        run: |
+          export RT_GA_END_TIME=$(date +%s)
+          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
+          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
@@ -29,15 +45,20 @@ jobs:
         with:
           channel: '#github'
           status: ${{ job.status }}
-          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests completed successfully'
-          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests failed'
-          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests cancelled'
+          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": "Configuration", "value": "RT Server, 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 }]
   rt_test_mariadb:
     runs-on: ubuntu-latest
     steps:
+      - name: Set up for tests
+        shell: bash
+        run: |
+          echo "RT_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
+          echo "RT_GA_START_TIME=$(date +%s)" >> $GITHUB_ENV
       - name: Checkout RT
         uses: actions/checkout at v2
       - name: Build RT
@@ -61,6 +82,17 @@ jobs:
           DB_VERSION_TAG: 10.3
         shell: bash
         run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=root -e RT_DBA_PASSWORD=password rt bash -c "cd /rt && prove -lj6 t/*"
+      - name: Get run time
+        shell: bash
+        run: |
+          export RT_GA_END_TIME=$(date +%s)
+          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
+          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
@@ -69,9 +101,9 @@ jobs:
         with:
           channel: '#github'
           status: ${{ job.status }}
-          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests completed successfully'
-          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests failed'
-          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests cancelled'
+          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": "Configuration", "value": "RT Server, MariaDB 10.3", "short": true },
             { "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]

commit 546384e2db0469ad0e21ce81228de0682c33ccf5
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Mon Aug 24 14:56:22 2020 -0400

    Add support for Apache with mod_fcgid

diff --git a/configure.ac b/configure.ac
index 87f4652e22..a481d3d860 100755
--- a/configure.ac
+++ b/configure.ac
@@ -54,9 +54,9 @@ AC_ARG_WITH(web-handler,
         ]),
     WEB_HANDLER=$withval,
     WEB_HANDLER=fastcgi)
-my_web_handler_test=$($PERL -e 'print "ok" unless grep $_ !~ /^(modperl1|modperl2|fastcgi|standalone)$/i, grep defined && length, split /\s*,\s*/, $ARGV@<:@0@:>@' $WEB_HANDLER)
+my_web_handler_test=$($PERL -e 'print "ok" unless grep $_ !~ /^(modperl1|modperl2|fastcgi|fcgid|standalone)$/i, grep defined && length, split /\s*,\s*/, $ARGV@<:@0@:>@' $WEB_HANDLER)
 if test "$my_web_handler_test" != "ok"; then
-	AC_MSG_ERROR([Only modperl1, modperl2, fastcgi and standalone are valid web-handlers])
+	AC_MSG_ERROR([Only modperl1, modperl2, fastcgi, fcgid and standalone are valid web-handlers])
 fi
 AC_SUBST(WEB_HANDLER)
 
@@ -503,6 +503,7 @@ AC_CONFIG_FILES([
                  t/data/configs/apache2.2+mod_perl.conf
                  t/data/configs/apache2.2+fastcgi.conf
                  t/data/configs/apache2.4+mod_perl.conf
-                 t/data/configs/apache2.4+fastcgi.conf],
+                 t/data/configs/apache2.4+fastcgi.conf
+                 t/data/configs/apache2.4+fcgid.conf],
                )
 AC_OUTPUT
diff --git a/lib/RT/Test/Apache.pm b/lib/RT/Test/Apache.pm
index 2cb0df4187..3c0bfe0505 100644
--- a/lib/RT/Test/Apache.pm
+++ b/lib/RT/Test/Apache.pm
@@ -58,6 +58,7 @@ my %MODULES = (
     '2.4' => {
         "mod_perl" => [qw(mpm_worker authz_core authn_core authz_host env alias perl)],
         "fastcgi"  => [qw(mpm_worker authz_core authn_core authz_host env alias mime fastcgi)],
+        "fcgid"  => [qw(mpm_worker authz_core authn_core authz_host env alias mime fcgid)],
     },
 );
 
diff --git a/t/data/configs/apache2.4+fcgid.conf.in b/t/data/configs/apache2.4+fcgid.conf.in
new file mode 100644
index 0000000000..f05d625ddb
--- /dev/null
+++ b/t/data/configs/apache2.4+fcgid.conf.in
@@ -0,0 +1,46 @@
+ServerRoot %%SERVER_ROOT%%
+PidFile %%PID_FILE%%
+ServerAdmin root at localhost
+
+%%LOAD_MODULES%%
+
+<IfModule !mpm_netware_module>
+<IfModule !mpm_winnt_module>
+User @WEB_USER@
+Group @WEB_GROUP@
+</IfModule>
+</IfModule>
+
+ServerName localhost
+Listen %%LISTEN%%
+
+ErrorLog "%%LOG_FILE%%"
+LogLevel debug
+
+<Directory />
+    Options FollowSymLinks
+    AllowOverride None
+    Require all denied
+</Directory>
+
+AddDefaultCharset UTF-8
+
+FcgidConnectTimeout 20
+FcgidProcessTableFile %%tmp_dir%%/shm
+FcgidIPCDir %%tmp_dir%%
+FcgidInitialEnv RT_TESTING 1
+FcgidInitialEnv RT_SITE_CONFIG %%RT_SITE_CONFIG%%
+
+ScriptAlias / %%RT_SBIN_PATH%%/rt-server.fcgi/
+
+DocumentRoot "%%DOCUMENT_ROOT%%"
+<Location />
+
+    <RequireAll>
+        Require all granted
+%%BASIC_AUTH%%
+    </RequireAll>
+
+    Options +ExecCGI
+    AddHandler fcgid-script .fcgi
+</Location>

commit f1d9b9fa5ecf40f5ae0f32dc8f52472e4b05391e
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Dec 24 09:18:07 2020 -0500

    Suppress Apache missing ServerName warning during startup

diff --git a/lib/RT/Test/Apache.pm b/lib/RT/Test/Apache.pm
index 3c0bfe0505..991c10d7ba 100644
--- a/lib/RT/Test/Apache.pm
+++ b/lib/RT/Test/Apache.pm
@@ -243,6 +243,7 @@ sub apache_server_info {
         if $mpm;
     print $tmp "ErrorLog /dev/null\n";
     print $tmp "TransferLog /dev/null\n";
+    print $tmp "ServerName localhost\n";
     close $tmp;
     $info = `$res{executable} -V -f $tmp`;
     my %opts = ($info =~ m/^\s*-D\s+([A-Z_]+?)(?:="(.*)")$/mg);

commit 3d23d972b81d31790e67ac25bdb94f74ad1407d5
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Dec 24 09:54:03 2020 -0500

    Use prefork since that is the preferred mpm for RT

diff --git a/lib/RT/Test/Apache.pm b/lib/RT/Test/Apache.pm
index 991c10d7ba..521d34561d 100644
--- a/lib/RT/Test/Apache.pm
+++ b/lib/RT/Test/Apache.pm
@@ -58,7 +58,7 @@ my %MODULES = (
     '2.4' => {
         "mod_perl" => [qw(mpm_worker authz_core authn_core authz_host env alias perl)],
         "fastcgi"  => [qw(mpm_worker authz_core authn_core authz_host env alias mime fastcgi)],
-        "fcgid"  => [qw(mpm_worker authz_core authn_core authz_host env alias mime fcgid)],
+        "fcgid"  => [qw(mpm_prefork authz_core authn_core authz_host env alias mime fcgid)],
     },
 );
 

commit b719657e2e9d22a0e3bf5f4e204010bac53dc59e
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue May 25 15:55:45 2021 -0400

    Add user needed for Apache tests

diff --git a/Dockerfile b/Dockerfile
index 98bafcd6c0..e14f34877b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,4 +9,7 @@ ENV RT_DBA_PASSWORD password
 ENV RT_TEST_DB_HOST=172.17.0.2
 ENV RT_TEST_RT_HOST=172.17.0.3
 
+# Add the rt_test user (required by mod_fcgid tests)
+RUN adduser --disabled-password --gecos "" rt-user
+
 CMD tail -f /dev/null

commit 90d1e61cfe8f58b76f4e525c7dbffc776679e10e
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue May 25 15:51:37 2021 -0400

    Test RT with Apache and postgres

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index e2c1fa73ae..2633c52dc0 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -107,3 +107,46 @@ jobs:
           fields: |
             [{ "title": "Configuration", "value": "RT Server, MariaDB 10.3", "short": true },
             { "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]
+  rt_test_postgresql_apache_mod_fcgid:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Set up for tests
+        shell: bash
+        run: |
+          echo "RT_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
+          echo "RT_GA_START_TIME=$(date +%s)" >> $GITHUB_ENV
+      - name: Checkout RT
+        uses: actions/checkout at v2
+      - name: Build RT
+        env:
+          DB_VERSION_TAG: 9.6
+          RT_TEST_PARALLEL: 1
+          RT_TEST_WEB_HANDLER: apache+fcgid
+          HTTPD_ROOT: /etc/apache2
+          RT_TEST_APACHE: /usr/sbin/apache2
+          RT_TEST_APACHE_MODULES: /usr/lib/apache2/modules
+        shell: bash
+        run: |
+          docker run --name postgresql --mount type=tmpfs,destination=/var/lib/postgresql/data -e POSTGRES_PASSWORD=password -d postgres:$DB_VERSION_TAG
+          docker build -t rt-base .
+          docker run -d -v $GITHUB_WORKSPACE:/rt --name rt --link postgresql:db rt-base
+          docker ps -a
+          docker exec rt bash -c "chown -R rt-user /rt; touch /etc/apache2/mime.types"
+          docker exec -e USER=rt-user -u rt-user rt bash -c "cd /rt && ./configure.ac --with-db-type=Pg --with-my-user-group --enable-layout=inplace --with-web-handler=fcgid --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps && chmod a+rX /rt/sbin/*"
+      - name: Run RT tests
+        shell: bash
+        run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=postgres -e RT_DBA_PASSWORD=password -u rt-user rt bash -c "cd /rt && prove -lj6 t/*"
+      - name: Post results to Slack
+        if: always()
+        uses: edge/simple-slack-notify at v1.1.1
+        env:
+          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
+        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}'
+          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": "Configuration", "value": "Apache mod_fcgid, PostgreSQL 9.6", "short": true },
+            { "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]

commit 1fea77105c4c683178daedd8ca07a78864c461d5
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue May 25 17:20:08 2021 -0400

    Calculate run time for postgres

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index 2633c52dc0..fa2dcd82cf 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -134,8 +134,26 @@ jobs:
           docker exec rt bash -c "chown -R rt-user /rt; touch /etc/apache2/mime.types"
           docker exec -e USER=rt-user -u rt-user rt bash -c "cd /rt && ./configure.ac --with-db-type=Pg --with-my-user-group --enable-layout=inplace --with-web-handler=fcgid --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps && chmod a+rX /rt/sbin/*"
       - name: Run RT tests
+        env:
+          DB_VERSION_TAG: 9.6
+          RT_TEST_PARALLEL: 1
+          RT_TEST_WEB_HANDLER: apache+fcgid
+          HTTPD_ROOT: /etc/apache2
+          RT_TEST_APACHE: /usr/sbin/apache2
+          RT_TEST_APACHE_MODULES: /usr/lib/apache2/modules
         shell: bash
         run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=postgres -e RT_DBA_PASSWORD=password -u rt-user rt bash -c "cd /rt && prove -lj6 t/*"
+      - name: Get run time
+        shell: bash
+        run: |
+          export RT_GA_END_TIME=$(date +%s)
+          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
+          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

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


More information about the rt-commit mailing list