Skip to content

Commit f656754

Browse files
committed
DEBUGGING
1 parent d1526e7 commit f656754

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/actions/run-python-test-set/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ runs:
124124
export ASAN_OPTIONS=detect_leaks=0:detect_stack_use_after_return=0:abort_on_error=1:strict_string_checks=1:check_initialization_order=1:strict_init_order=1
125125
export UBSAN_OPTIONS=abort_on_error=1:print_stacktrace=1
126126
127+
# DEBUGGING
128+
ls -l /tmp/neon/pg_install/v16/
129+
ls -l /tmp/neon/pg_install/v16/bin/
130+
ls -l /tmp/neon/pg_install/v16/lib/
131+
ldd /tmp/neon/pg_install/v16/bin/pg_isready
132+
# DEBUGGING
133+
127134
if [ "${BUILD_TYPE}" = "remote" ]; then
128135
export REMOTE_ENV=1
129136
fi

control_plane/src/storage_controller.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ impl StorageController {
221221
"-p",
222222
&format!("{}", postgres_port),
223223
];
224+
eprintln!("!!!pg_isready: {bin_path}, pg_lib_dir: {}, LD_LIBRARY_PATH: {}", self.get_pg_lib_dir().await.unwrap().to_string(), std::env::var("LD_LIBRARY_PATH").unwrap_or_default());
225+
let output = Command::new("ldd").args([bin_path.clone()]).output().await.expect("Failed to spawn ldd");
226+
eprintln!("!!!ldd: {}\n{}\n", String::from_utf8(output.stdout)?, String::from_utf8(output.stderr)?);
227+
224228
let exitcode = Command::new(bin_path).args(args).spawn()?.wait().await?;
225229

226230
Ok(exitcode.success())

test_runner/fixtures/neon_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def raw_cli(
8181
if val:
8282
env_vars[var] = val
8383

84+
log.info("LD_LIBRARY_PATH: %s / %s" % (os.environ["LD_LIBRARY_PATH"] if "LD_LIBRARY_PATH" in os.environ else "-", env_vars["LD_LIBRARY_PATH"] if "LD_LIBRARY_PATH" in env_vars else "-"))
8485
# Intercept CalledProcessError and print more info
8586
try:
8687
res = subprocess.run(

0 commit comments

Comments
 (0)