Skip to content

Commit 628d1c2

Browse files
committed
preload args
1 parent 12aa1d1 commit 628d1c2

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/actions/run-tests/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Run tests and report results
2+
inputs:
3+
preload:
4+
description: Preload arguments for sanitizer
5+
required: false
26
runs:
37
using: composite
48
steps:
59
- name: Test
6-
run: ci/run_tests.sh
10+
run: ${{ inputs.preload }} ci/run_tests.sh
711
shell: bash -el {0}
812

913
- name: Publish test results

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,21 +328,23 @@ jobs:
328328

329329
- name: Test (not single_cpu)
330330
uses: ./.github/actions/run-tests
331+
with:
332+
preload: LD_PRELOAD=$(gcc -print-file-name=libasan.so)
331333
env:
332334
PATTERN: "not slow and not network and not single_cpu and not known_ub"
333335
PYTEST_WORKERS: 'auto'
334336
PYTEST_TARGET: 'pandas'
335-
ASAN_OPTIONS: detect_leaks=0
336-
LD_PRELOAD: $(gcc -print-file-name=libasan.so)
337+
ASAN_OPTIONS: detect_leaks=0 # leak detection in Python not yet working
337338

338339
- name: Test (single_cpu)
339340
uses: ./.github/actions/run-tests
341+
with:
342+
preload: LD_PRELOAD=$(gcc -print-file-name=libasan.so)
340343
env:
341344
PATTERN: "single_cpu and not known_ub"
342345
PYTEST_WORKERS: 0
343346
PYTEST_TARGET: 'pandas'
344-
ASAN_OPTIONS: detect_leaks=0
345-
LD_PRELOAD: $(gcc -print-file-name=libasan.so)
347+
ASAN_OPTIONS: detect_leaks=0 # leak detection in Python not yet working
346348

347349
python-dev:
348350
# This job may or may not run depending on the state of the next

0 commit comments

Comments
 (0)