Skip to content

Commit 3710a6a

Browse files
samluryemeta-codesync[bot]
authored andcommitted
Fix github CI (#1778)
Summary: Pull Request resolved: #1778 All tests are currently breaking due to a mismatch between `/lib64/libstdc++.so.6` (linked at runtime) and `${CONDA_PREFIX}/lib/libstdc++.so.6` (use during compilation) when trying to import `_rust_bindings.so`. We can fix this at least for now by setting `LD_PRELOAD` to point to the conda env's `libstdc++.so.6` before running the tests. Reviewed By: zdevito Differential Revision: D86577656 fbshipit-source-id: d600efe909d837b7983462caa526ec31aa465ff9
1 parent 7b00d57 commit 3710a6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/common-setup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ run_test_groups() {
169169
echo "Usage: run_test_groups <enable_actor_error_test: 0|1>"
170170
return 2
171171
fi
172+
# Make sure the runtime linker uses the conda env's libstdc++
173+
# (which was used to compile monarch) instead of the system's.
174+
# TODO: Revisit this to determine if this is the proper/most
175+
# sustainable/most robust solution.
176+
export CONDA_LIBSTDCPP="${CONDA_PREFIX}/lib/libstdc++.so.6"
177+
export LD_PRELOAD="${CONDA_LIBSTDCPP}${LD_PRELOAD:+:$LD_PRELOAD}"
172178
local FAILED_GROUPS=()
173179
for GROUP in $(seq 1 10); do
174180
echo "Running test group $GROUP of 10..."

0 commit comments

Comments
 (0)