Skip to content

Commit 1867742

Browse files
committed
DISPATCH-2144 Use python3-dbg in the Debug GHA build
1 parent ad53d67 commit 1867742

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
buildType: [Debug]
3333
runtimeCheck: [asan]
3434
protonGitRef: [main, 0.36.0]
35+
python: [/usr/bin/python3-dbg]
3536
env:
3637
BuildType: ${{matrix.buildType}}
3738
ProtonBuildDir: ${{github.workspace}}/qpid-proton/build
@@ -47,6 +48,7 @@ jobs:
4748
-DBUILD_TESTING=OFF
4849
-DENABLE_FUZZ_TESTING=OFF
4950
-DRUNTIME_CHECK=${{matrix.runtimeCheck}}
51+
-DPython_EXECUTABLE=${{matrix.python}}
5052
DispatchCMakeExtraArgs: >
5153
-DCMAKE_C_COMPILER_LAUNCHER=ccache
5254
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
@@ -56,6 +58,7 @@ jobs:
5658
-DRUNTIME_CHECK=${{matrix.runtimeCheck}}
5759
-DSANITIZE_3RD_PARTY=ON
5860
-DBUILD_BENCHMARKS=ON
61+
-DPython_EXECUTABLE=${{matrix.python}}
5962
6063
CCACHE_BASEDIR: ${{github.workspace}}
6164
CCACHE_DIR: ${{github.workspace}}/.ccache
@@ -109,7 +112,10 @@ jobs:
109112
- name: Install Linux build dependencies
110113
if: ${{ runner.os == 'Linux' }}
111114
run: |
112-
sudo apt update; sudo apt install -y swig libpython3-dev libsasl2-dev libjsoncpp-dev libwebsockets-dev ccache ninja-build pixz libbenchmark-dev
115+
sudo apt update; sudo apt install -y swig python3-dbg libpython3-dbg libsasl2-dev libjsoncpp-dev libwebsockets-dev ccache ninja-build pixz libbenchmark-dev
116+
117+
- name: Install Python build dependencies
118+
run: ${{matrix.python}} -m pip install setuptools wheel tox
113119

114120
- name: Zero ccache stats
115121
run: ccache -z
@@ -177,6 +183,7 @@ jobs:
177183
buildType: [Debug]
178184
runtimeCheck: [asan]
179185
protonGitRef: [main, 0.36.0]
186+
python: [/usr/bin/python3-dbg]
180187
shard: [1, 2]
181188
shards: [2]
182189
env:
@@ -189,6 +196,7 @@ jobs:
189196
LD_LIBRARY_PATH: ${{github.workspace}}/install/lib
190197
QPID_SYSTEM_TEST_TIMEOUT: 300
191198
QPID_SYSTEM_TEST_SKIP_FALLBACK_SWITCHOVER_TEST: True
199+
PYTHONTRACEMALLOC: 5
192200
steps:
193201

194202
- name: Show environment (Linux)
@@ -212,13 +220,16 @@ jobs:
212220
- name: Install Linux runtime/test dependencies
213221
if: ${{ runner.os == 'Linux' }}
214222
run: |
215-
sudo apt update; sudo apt install -y libsasl2-2 libsasl2-modules sasl2-bin libjsoncpp1 libwebsockets15 libbenchmark1 pixz bubblewrap curl
223+
sudo apt update; sudo apt install -y python3-dbg libsasl2-2 libsasl2-modules sasl2-bin libjsoncpp1 libwebsockets15 libbenchmark1 pixz bubblewrap curl
216224
217225
- name: Unpack archive
218226
run: tar -I pixz -xf archive.tar.xz
219227

220-
- name: install qpid-proton python wheel
221-
run: python -m pip install $(find ${ProtonBuildDir}/python/ -name 'python_qpid_proton*.whl')
228+
- name: Install Python runtime/test dependencies
229+
run: ${{matrix.python}} -m pip install tox quart selectors h2 grpcio protobuf websockets pytest
230+
231+
- name: Install qpid-proton python wheel
232+
run: ${{matrix.python}} -m pip install $(find ${ProtonBuildDir}/python/ -name 'python_qpid_proton*.whl')
222233

223234
- name: CTest
224235
working-directory: ${{env.DispatchBuildDir}}

0 commit comments

Comments
 (0)