Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): when run under old systems in devenv
The issue is twofold: - `sh` can come in as a system binary, and it can be linked to on older libc - Python when running under devenv has its `manylinux` support runtime binaries injected using `LD_PRELOAD` - This forces system binaries to use the devenv shipped libc - This causes an error, if old system binaries are loading new libc To prevent the problem, use `Python` as a test binary, which is for sure linked to a good libc, making the tests more hermetic Sample error: DEBUG unblob.extractors.command:command.py:39 {'command': "sh -c '> /run/user/1000/pytest-of-kr/pytest-9/test_command_execution0/created'", 'event': 'Running extract command', 'level': 'debug', 'timestamp': '2024-10-18 13:30.03', 'pid': 31484} ERROR unblob.extractors.command:command.py:67 {'severity': <Severity.WARNING: 'WARNING'>, 'command': "sh -c '> /run/user/1000/pytest-of-kr/pytest-9/test_command_execution0/created'", 'stdout': '', 'stderr': 'sh: symbol lookup error: /nix/store/s0dg13igw8mgzpvmxzd2njk1xwdv21a2-manylinux2014/lib/libc.so.6: undefined symbol: __tunable_is_initialized, version GLIBC_PRIVATE\n', 'exit_code': '0x7f', 'event': 'Extract command failed', 'level': 'error', 'timestamp': '2024-10-18 13:30.03', 'pid': 31484}
- Loading branch information