Skip to content

Commit 420d568

Browse files
committed
ci: Fix after Gitlab pipelines got clean HOME directory
1 parent de905e6 commit 420d568

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

.gitlab-ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ variables:
1212
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: /usr/pack/gcc-9.2.0-af/linux-x64/bin/gcc
1313
LLVM_SYS_120_PREFIX: /usr/pack/llvm-12.0.1-af
1414
CMAKE: cmake-3.18.1
15-
UV_CACHE_DIR: $CI_BUILDS_DIR/../cache/uv
1615

1716
default:
1817
# Allow interrupting long-running jobs when a new pipeline on the same branch is triggered
1918
interruptible: true
2019
timeout: 60m
2120
before_script:
22-
# The CI is configured such that the uv cache directory (`UV_CACHE_DIR`),
23-
# is located on the same file system outside of the build directory.
24-
# `uv` should try to hardlink files instead of copying them to save space
25-
- export UV_LINK_MODE=hardlink
21+
# Prevent race condition in managed Python installation,
22+
# see https://github.com/astral-sh/uv/issues/19329
23+
- nfslock ${HOME}/uv-ci.lock uv sync --all-extras --locked
2624
- source iis-setup.sh
2725

2826
##############

iis-setup.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ export PATH=$PWD/util/bin:$PATH
2020
# Add simulator binaries to PATH
2121
export PATH=$PWD/target/sim/build/bin:$PATH
2222

23-
# We use `uv` for managing python dependencies and environments
24-
export PATH=$PATH:/usr/local/uv
25-
# Copy instead link packages from global cache, since the cache is typically
26-
# located on a different file system (e.g. your home directory).
27-
export UV_LINK_MODE=copy
28-
2923
# Initialize submodules if needed
3024
if git submodule status --recursive 2>/dev/null | grep -q '^-'; then
3125
git submodule update --init --recursive

0 commit comments

Comments
 (0)