Skip to content

Commit cde381d

Browse files
committed
Build the backend service with debug symbols
There's some exciting deadlock occurring in production. Hopefully this will allow me to glean some kind of information about it...
1 parent 011d5f2 commit cde381d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ RUN \
2929
test_bin=$(find target/debug/deps/ -name "ui*" -type f -perm -a=x); \
3030
mv "${test_bin}" /output/unit_tests_ui;
3131

32+
# Bake in debug information to debug deadlocks in production
33+
RUN mkdir .cargo
34+
RUN cat <<EOF >.cargo/config.toml
35+
[profile.release]
36+
debug = "full"
37+
split-debuginfo = "off"
38+
EOF
39+
3240
RUN \
3341
cargo rustc --locked --release -- -C relocation-model=static; \
3442
mv target/release/ui /output/ui;

0 commit comments

Comments
 (0)