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 0d51fec
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/integration/test_relocatable_cores.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ 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")
debuginfos = list(Path("/usr/lib/debug/lib/").glob("ld-musl*.debug"))
for debuginfo in debuginfos: # pragma: no cover
(relocated_bundle / "app" / debuginfo.name).symlink_to(debuginfo)

# Apply the same hack to find the libpython debug info, too.
debuginfos = list(Path("/usr/lib/debug/usr/lib/").glob("libpython*.debug"))
for debuginfo in debuginfos: # 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 0d51fec

Please sign in to comment.