From 011d5f24866ca9687650bcc0077c3276a09039e2 Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Mon, 21 Oct 2024 09:45:53 -0400 Subject: [PATCH 1/2] Actually bump node version in CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6a46026..6da63118 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,7 +91,7 @@ jobs: - name: Configure node uses: actions/setup-node@v4 with: - node-version: 18.14 + node-version: 22.2 - name: Get pnpm version from package.json id: pnpm-version run: 'echo "pnpm_version=$(node -p ''require(`./ui/frontend/package.json`).engines.pnpm'')" >> $GITHUB_OUTPUT From cde381d96c2d51ee6633f23a23fb218a91cc47ca Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Mon, 21 Oct 2024 09:45:59 -0400 Subject: [PATCH 2/2] 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... --- ci/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/Dockerfile b/ci/Dockerfile index f7d64563..6fedf8d2 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -29,6 +29,14 @@ RUN \ test_bin=$(find target/debug/deps/ -name "ui*" -type f -perm -a=x); \ mv "${test_bin}" /output/unit_tests_ui; +# Bake in debug information to debug deadlocks in production +RUN mkdir .cargo +RUN cat <.cargo/config.toml +[profile.release] +debug = "full" +split-debuginfo = "off" +EOF + RUN \ cargo rustc --locked --release -- -C relocation-model=static; \ mv target/release/ui /output/ui;