Skip to content

Commit 5be6b95

Browse files
authored
wheels: enforce 'abi3audit' checks (#5626)
Contributes to rapidsai/build-planning#315 Adds `abi3audit` to `ci/validate_wheel.sh`, to catch any mismatch between a wheel's ABI tag and its actual limited-ABI usage. Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Bradley Dice (https://github.com/bdice) URL: #5626
1 parent aa8ab75 commit 5be6b95

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

ci/validate_wheel.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -36,10 +36,20 @@ fi
3636

3737
pydistcheck \
3838
"${PYDISTCHECK_ARGS[@]}" \
39-
"$(echo "${wheel_dir_relative_path}"/*.whl)"
39+
"${wheel_dir_relative_path}"/*.whl
4040

4141
rapids-logger "validate packages with 'twine'"
4242

4343
twine check \
4444
--strict \
45-
"$(echo "${wheel_dir_relative_path}"/*.whl)"
45+
"${wheel_dir_relative_path}"/*.whl
46+
47+
rapids-logger "validate packages with 'abi3audit'"
48+
49+
# 'abi3audit' fails on wheels with DSOs that lack an ABI tag (e.g. 'lib*' wheels).
50+
# Filtering by '*abi*' avoids those.
51+
find \
52+
"${wheel_dir_relative_path}" \
53+
-type f \
54+
-name '*abi*' \
55+
-exec abi3audit --strict --summary --verbose '{}' \+

0 commit comments

Comments
 (0)