Skip to content

Commit 20114aa

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 20114aa

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

.github/workflows/full-ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,18 @@ 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+
# netstat is used to help find the cause of TNTP-3709, remove it as soon as it's found.
52+
run: |
53+
sudo netstat -tupln
54+
sudo systemctl kill mono-xsp4 || echo "failed to kill mono-xsp4 (exit status $?)"
5255
5356
- name: Integration tests
5457
env:
5558
TT_ENABLE_COREDUMP_TESTS: '1'
56-
run: mage integrationfull
59+
# netstat is used to help find the cause of TNTP-3709, remove it as soon as it's found.
60+
run: |
61+
sudo netstat -tupln
62+
false || { sudo netstat -tupln; exit 1; }
5763
5864
full-ci-ce-linux-arm64:
5965
if: false
@@ -140,12 +146,18 @@ jobs:
140146

141147
# This server starts and listen on 8084 port that is used for tests.
142148
- name: Stop Mono server
143-
run: sudo systemctl kill mono-xsp4 || true
149+
# netstat is used to help find the cause of TNTP-3709, remove it as soon as it's found.
150+
run: |
151+
sudo netstat -tupln
152+
sudo systemctl kill mono-xsp4 || echo "failed to kill mono-xsp4 (exit status $?)"
144153
145154
- name: Integration tests
146155
env:
147156
TT_ENABLE_COREDUMP_TESTS: '1'
148-
run: mage integrationfull
157+
# netstat is used to help find the cause of TNTP-3709, remove it as soon as it's found.
158+
run: |
159+
sudo netstat -tupln
160+
mage integrationfull || { sudo netstat -tupln; exit 1; }
149161
150162
full-ci-macOS:
151163
if: false

.github/workflows/tests.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,16 @@ 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+
# netstat is used to help find the cause of TNTP-3709, remove it as soon as it's found.
60+
run: |
61+
sudo netstat -tupln
62+
sudo systemctl kill mono-xsp4 || echo "failed to kill mono-xsp4 (exit status $?)"
6063
6164
- name: Integration tests
62-
run: mage integration
65+
# netstat is used to help find the cause of TNTP-3709, remove it as soon as it's found.
66+
run: |
67+
sudo netstat -tupln
68+
mage integration || { sudo netstat -tupln; exit 1; }
6369
6470
tests-ce-linux-arm64:
6571
if: false
@@ -146,10 +152,16 @@ jobs:
146152

147153
# This server starts and listen on 8084 port that is used for tests.
148154
- name: Stop Mono server
149-
run: sudo systemctl kill mono-xsp4 || true
155+
# netstat is used to help find the cause of TNTP-3709, remove it as soon as it's found.
156+
run: |
157+
sudo netstat -tupln
158+
sudo systemctl kill mono-xsp4 || echo "failed to kill mono-xsp4 (exit status $?)"
150159
151160
- name: Integration tests
152-
run: mage integration
161+
# netstat is used to help find the cause of TNTP-3709, remove it as soon as it's found.
162+
run: |
163+
sudo netstat -tupln
164+
mage integration || { sudo netstat -tupln; exit 1; }
153165
154166
tests-mac-os-ce:
155167
if: false

0 commit comments

Comments
 (0)