This is an automated email from the ASF dual-hosted git repository.

wenming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new ee2a759e8 refactor(http3): enable http3 directive only in http3 CI 
(#11027)
ee2a759e8 is described below

commit ee2a759e8604ac83c445924a62ccc67f406b0214
Author: Leigang Zhang <[email protected]>
AuthorDate: Thu Mar 14 11:37:56 2024 +0800

    refactor(http3): enable http3 directive only in http3 CI (#11027)
---
 .github/workflows/http3.yml | 15 ++++++++++++---
 t/APISIX.pm                 |  2 +-
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/http3.yml b/.github/workflows/http3.yml
index 84b450b82..017e604f8 100644
--- a/.github/workflows/http3.yml
+++ b/.github/workflows/http3.yml
@@ -33,6 +33,10 @@ jobs:
           - lua-resty-events
         test_dir:
           - t/http3/admin
+          - t/plugin/[a-k]*
+          - t/plugin/[l-z]*
+          - t/admin t/cli t/config-center-yaml t/control t/core t/debug 
t/discovery t/error_page t/misc
+          - t/node t/pubsub t/router t/script t/secret t/stream-node t/utils 
t/wasm t/xds-library t/xrpc
 
     runs-on: ${{ matrix.platform }}
     timeout-minutes: 90
@@ -72,13 +76,13 @@ jobs:
         id: test_env
         run: |
           test_dir="${{ matrix.test_dir }}"
-          if [[ $test_dir =~ 't/http3/plugin' ]]; then
+          if [[ $test_dir =~ 't/plugin' ]]; then
             echo "type=plugin" >>$GITHUB_OUTPUT
           fi
-          if [[ $test_dir =~ 't/http3/admin' ]]; then
+          if [[ $test_dir =~ 't/admin' || $test_dir =~ 't/http3/admin' ]]; then
             echo "type=first" >>$GITHUB_OUTPUT
           fi
-          if [[ $test_dir =~ ' t/http3/xrpc' ]]; then
+          if [[ $test_dir =~ ' t/xrpc' ]]; then
             echo "type=last" >>$GITHUB_OUTPUT
           fi
 
@@ -183,6 +187,11 @@ jobs:
           sudo cp curl /usr/bin
           curl -V
 
+      - name: Enable http3 directive for test-nginx
+        shell: bash
+        run: |
+          sed -i 's/http3 off/http3 on/g' t/APISIX.pm
+
       - name: Linux Script
         env:
           TEST_FILE_SUB_DIR: ${{ matrix.test_dir }}
diff --git a/t/APISIX.pm b/t/APISIX.pm
index 616057c4b..698326b4a 100644
--- a/t/APISIX.pm
+++ b/t/APISIX.pm
@@ -729,7 +729,7 @@ _EOC_
         listen 1994 quic reuseport;
         listen 1994 ssl;
         http2 on;
-        http3 on;
+        http3 off;
         ssl_certificate             cert/apisix.crt;
         ssl_certificate_key         cert/apisix.key;
         lua_ssl_trusted_certificate cert/apisix.crt;

Reply via email to