From fd3e1169a442f4e7542427d990e52e9de9c6fa23 Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Thu, 18 Apr 2024 09:57:37 +0100 Subject: [PATCH 1/2] fix(csi-node/mounts): update deps to get safeMountIter fix Dep update fixes deadlock on the new safe mount which basically looped forever trying to read mounts. This meant the csi-node got stuck on stage calls and volumes would not get staged therefore pods would stay stuck in ContainerCreating forever. Signed-off-by: Tiago Castro --- utils/dependencies | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/dependencies b/utils/dependencies index daadec90b..81c6a5153 160000 --- a/utils/dependencies +++ b/utils/dependencies @@ -1 +1 @@ -Subproject commit daadec90b1d548190a90ddbddfdf68bc5f38f467 +Subproject commit 81c6a5153c925b309171e6300acd07987f0ec0b5 From f2d530395d21cc63f6a6875dae3725be246ddd6f Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Thu, 18 Apr 2024 11:45:55 +0100 Subject: [PATCH 2/2] build: support relative cargo-vendor-dir path with non-existing Supports using CARGO_VENDOR_DIR=/tmp/bob/.. in case bob doesn't exist. Probably won't ever happen but just in case :) Signed-off-by: Tiago Castro --- scripts/release.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 926c68ef7..19ec3b3c6 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -37,20 +37,18 @@ pre_fetch_cargo_deps() { local outLink="--no-out-link" local cargoVendorMsg="" - local cargoVendorDir="" if [ -n "$CARGO_VENDOR_DIR" ]; then - if [ "$(realpath -s "$CARGO_VENDOR_DIR")" = "$(realpath -s "$SCRIPTDIR/..")" ]; then + if [ "$(realpath -ms "$CARGO_VENDOR_DIR")" = "$(realpath -ms "$SCRIPTDIR/..")" ]; then cargoVendorDir="$CARGO_VENDOR_DIR/$GIT_BRANCH" else cargoVendorDir="$CARGO_VENDOR_DIR/$project/$GIT_BRANCH" fi - + cargoVendorMsg="into $(realpath -ms "$cargoVendorDir") " outLink="--out-link "$cargoVendorDir"" fi for (( attempt=1; attempt<=maxAttempt; attempt++ )); do if $NIX_BUILD $outLink -A "$nixAttrPath"; then - [ -n "$cargoVendorDir" ] && cargoVendorMsg="into $(realpath -s "$cargoVendorDir") " echo "Cargo vendored dependencies pre-fetched "$cargoVendorMsg"after $attempt attempt(s)" return 0 fi