You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/08/05 12:50:34 UTC

[skywalking-python] 01/01: test: fix flaky test case `sanic`

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

kezhenxu94 pushed a commit to branch test/sanic
in repository https://gitbox.apache.org/repos/asf/skywalking-python.git

commit 0f23b9a3f50a5645eaec9df308eedc658eef187d
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Thu Aug 5 20:50:25 2021 +0800

    test: fix flaky test case `sanic`
---
 .github/workflows/build.yaml | 1 +
 tests/plugin/conftest.py     | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 1d53e65..a826dc4 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -21,6 +21,7 @@ on:
   push:
     branches:
       - master
+      - test/sanic
   pull_request:
 
 jobs:
diff --git a/tests/plugin/conftest.py b/tests/plugin/conftest.py
index 66c74c7..0ef3fa6 100644
--- a/tests/plugin/conftest.py
+++ b/tests/plugin/conftest.py
@@ -64,6 +64,9 @@ def docker_compose(request, prepare, version):
             time.sleep(10)
             exception = e
     if exception:
+        stdout, stderr = compose.get_logs()
+        print("stdout:\n:{}".format(stdout))
+        print("stderr:\n:{}".format(stderr))
         compose.stop()
         raise Exception("""Wait time exceeded {0} sec. Exception {1}""".format(100, exception))