Skip to content

Commit f42d50a

Browse files
committed
ci: display port usage information
It might help to identify the reason of flaky test `test_replicaset_bootstrap_cartridge_app_second_bootstrap` when/if it fails next time. Needed for #TNTP-3709
1 parent 350bf7c commit f42d50a

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

.github/workflows/full-ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ jobs:
4848

4949
# This server starts and listen on 8084 port that is used for tests.
5050
- name: Stop Mono server
51-
run: sudo systemctl kill mono-xsp4 || true
51+
run: |
52+
sudo netstat -tupln
53+
sudo systemctl kill mono-xsp4 || echo "failed to kill mono-xsp4 (exit status $?)"
5254
5355
- name: Integration tests
5456
env:
5557
TT_ENABLE_COREDUMP_TESTS: '1'
56-
run: mage integrationfull
58+
run: |
59+
sudo netstat -tupln
60+
mage integrationfull || { sudo netstat -tupln; exit 1; }
5761
5862
full-ci-ce-linux-arm64:
5963
if: false
@@ -140,12 +144,16 @@ jobs:
140144

141145
# This server starts and listen on 8084 port that is used for tests.
142146
- name: Stop Mono server
143-
run: sudo systemctl kill mono-xsp4 || true
147+
run: |
148+
sudo netstat -tupln
149+
sudo systemctl kill mono-xsp4 || echo "failed to kill mono-xsp4 (exit status $?)"
144150
145151
- name: Integration tests
146152
env:
147153
TT_ENABLE_COREDUMP_TESTS: '1'
148-
run: mage integrationfull
154+
run: |
155+
sudo netstat -tupln
156+
mage integrationfull || { sudo netstat -tupln; exit 1; }
149157
150158
full-ci-macOS:
151159
if: false

.github/workflows/tests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,14 @@ jobs:
5656

5757
# This server starts and listen on 8084 port that is used for tests.
5858
- name: Stop Mono server
59-
run: sudo systemctl kill mono-xsp4 || true
59+
run: |
60+
sudo netstat -tupln
61+
sudo systemctl kill mono-xsp4 || echo "failed to kill mono-xsp4 (exit status $?)"
6062
6163
- name: Integration tests
62-
run: mage integration
64+
run: |
65+
sudo netstat -tupln
66+
mage integration || { sudo netstat -tupln; exit 1; }
6367
6468
tests-ce-linux-arm64:
6569
if: false
@@ -146,10 +150,14 @@ jobs:
146150

147151
# This server starts and listen on 8084 port that is used for tests.
148152
- name: Stop Mono server
149-
run: sudo systemctl kill mono-xsp4 || true
153+
run: |
154+
sudo netstat -tupln
155+
sudo systemctl kill mono-xsp4 || echo "failed to kill mono-xsp4 (exit status $?)"
150156
151157
- name: Integration tests
152-
run: mage integration
158+
run: |
159+
sudo netstat -tupln
160+
mage integration || { sudo netstat -tupln; exit 1; }
153161
154162
tests-mac-os-ce:
155163
if: false

0 commit comments

Comments
 (0)