Skip to content

Commit

Permalink
ci: Fix test suite on Alpine
Browse files Browse the repository at this point in the history
We're no longer able to correctly identify `_PyEval_EvalFrameDefault` on
Alpine without debug info.

This test was already adding symlinks to the split debug info for
`ld-musl`, so let's extend that hack to also symlink to the split debug
info for `libpython`.

Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek committed May 24, 2024
1 parent cd6a5ec commit 057c496
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/integration/test_relocatable_cores.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ def test_single_thread_stack_for_relocated_core(
# Hack: help libdw find the split debug for ld-musl on Alpine.
# Otherwise, the test fails even though we do everything right.
ld_musl_debug = list(Path("/usr/lib/debug/lib/").glob("ld-musl*.debug"))
if ld_musl_debug != []: # pragma: no cover
(relocated_bundle / "app" / ".debug").symlink_to("/usr/lib/debug/lib")
for debuginfo in ld_musl_debug: # pragma: no cover
(relocated_bundle / "app" / debuginfo.name).symlink_to(debuginfo)

# Apply the same hack to find the libpython debug info, too.
ld_musl_debug = list(Path("/usr/lib/debug/usr/lib/").glob("libpython*.debug"))
for debuginfo in ld_musl_debug: # pragma: no cover
(relocated_bundle / "app" / debuginfo.name).symlink_to(debuginfo)

binary_dependencies = ":".join(
{str(file.parent) for file in relocated_bundle.glob("**/*.so*")}
Expand Down

0 comments on commit 057c496

Please sign in to comment.