瀏覽代碼

chore(CI): upload emqx log in relup check

zhanghongtong 4 年之前
父節點
當前提交
a538979c3b
共有 2 個文件被更改,包括 18 次插入4 次删除
  1. 8 4
      .ci/fvt_tests/relup.lux
  2. 10 0
      .github/workflows/run_fvt_tests.yaml

+ 8 - 4
.ci/fvt_tests/relup.lux

@@ -26,8 +26,10 @@
     ?SH-PROMPT
     ?SH-PROMPT
 
 
     !cd emqx
     !cd emqx
-    !sed -i 's|listener.wss.external[ \t]*=.*|listener.wss.external = 8085|g' etc/emqx.conf
-    !sed -i '/emqx_telemetry/d' data/loaded_plugins
+    !export EMQX_LOG__CONSOLE_HANDLER__ENABLE=true
+    !export EMQX_LOG__CONSOLE_HANDLER__LEVEL=debug
+    !export EMQX_LOG__PRIMARY_LEVEL=debug
+    !export EMQX_ZONES__DEFAULT__LISTENERS__MQTT_WSS__BIND="0.0.0.0:8085"
 
 
     !./bin/emqx start
     !./bin/emqx start
     ?EMQ X .* is started successfully!
     ?EMQ X .* is started successfully!
@@ -40,7 +42,9 @@
     ?SH-PROMPT
     ?SH-PROMPT
     !cd emqx2
     !cd emqx2
 
 
-    !sed -i '/emqx_telemetry/d' data/loaded_plugins
+    !export EMQX_LOG__CONSOLE_HANDLER__ENABLE=true
+    !export EMQX_LOG__CONSOLE_HANDLER__LEVEL=debug
+    !export EMQX_LOG__PRIMARY_LEVEL=debug
 
 
     !./bin/emqx start
     !./bin/emqx start
     ?EMQ X .* is started successfully!
     ?EMQ X .* is started successfully!
@@ -131,7 +135,7 @@
 [shell bench]
 [shell bench]
     ???publish complete
     ???publish complete
     ??SH-PROMPT:
     ??SH-PROMPT:
-    !sleep 5
+    !sleep 30
     ?SH-PROMPT
     ?SH-PROMPT
 
 
     !curl --user admin:public --silent --show-error http://localhost:8081/api/v4/rules | jq --raw-output ".data[0].metrics[] | select(.node==\"emqx@127.0.0.1\").matched"
     !curl --user admin:public --silent --show-error http://localhost:8081/api/v4/rules | jq --raw-output ".data[0].metrics[] | select(.node==\"emqx@127.0.0.1\").matched"

+ 10 - 0
.github/workflows/run_fvt_tests.yaml

@@ -270,6 +270,16 @@ jobs:
                 --var OLD_VSNS="$OLD_VSNS" \
                 --var OLD_VSNS="$OLD_VSNS" \
                 emqx/.ci/fvt_tests/relup.lux
                 emqx/.ci/fvt_tests/relup.lux
             fi
             fi
+        - uses: actions/upload-artifact@v1
+          if: failure()
+          with:
+            name: emqx_logs
+            path: packages/emqx/log/emqx.log.1
+        - uses: actions/upload-artifact@v1
+          if: failure()
+          with:
+            name: emqx2_logs
+            path: packages/emqx2/log/emqx.log.1
         - uses: actions/upload-artifact@v1
         - uses: actions/upload-artifact@v1
           if: failure()
           if: failure()
           with:
           with: