mac-test ○ success
⏱
Duration: 16s
⏳
Queued: 0s
📁
Stage: test
🖥
Runner: macOS-mcintosh
Average Duration
13s
This job: 16s
Failure Rate
0.0%
last 30 days
External Links
▶
Job Execution Phases
💡 Tip: Click on any phase bar to jump to that section in the log below
▶
Job Analysis
Job Status: Passed
Status: Job passed successfully
▶
Full Job Log
198 lines
Match - of 0
1
10:49:19
Running with gitlab-runner 18.1.3 (a2f2305f)
2
10:49:19
on macOS-mcintosh z4xgKiLb, system ID: s_9ae4cde1bf13
3
10:49:19
feature flags: FF_USE_FASTZIP:true, FF_SCRIPT_SECTIONS:true, FF_TIMESTAMPS:true, FF_GIT_URLS_WITHOUT_TOKENS:true
4
10:49:19
Resolving secrets
5
10:49:19
section_start:1778237359:prepare_executor
6
10:49:19
+Preparing the "shell" executor
7
10:49:19
Using Shell (bash) executor...
8
10:49:19
section_end:1778237359:prepare_executor
9
10:49:19
+section_start:1778237359:prepare_script
10
10:49:19
+Preparing environment
11
10:49:20
Running on mcintosh.zrh.int.scandit.io...
12
10:49:20
section_end:1778237360:prepare_script
13
10:49:20
+section_start:1778237360:get_sources
14
10:49:20
+Getting source from Git repository
15
10:49:21
section_start:1778237361:section_pre_clone_script_0[hide_duration=true,collapsed=true]
$ bash /Volumes/EngData/.gitlab-runner/syspolicyd_health_check.sh || true
16
10:49:21
bash /Volumes/EngData/.gitlab-runner/disk_health_check.sh
17
10:49:21
function cleanup {
18
10:49:21
rv=$?
19
10:49:21
if [ $rv -ne 0 ]; then
20
10:49:21
if [[ -z "$GIT_STRATEGY" || "$GIT_STRATEGY" = "fetch" ]]; then
21
10:49:21
if [ -d "$CI_PROJECT_DIR" ]; then
22
10:49:21
echo "Something went wrong, cleaning $CI_PROJECT_DIR"
23
10:49:21
rm -rf $CI_PROJECT_DIR/{*,.*}
24
10:49:21
fi
25
10:49:21
fi
26
10:49:21
fi
27
10:49:21
exit $rv
28
10:49:21
}
29
10:49:21
trap cleanup EXIT
30
10:49:21
if [ -d "$CI_PROJECT_DIR" ]; then
31
10:49:21
cd "$CI_PROJECT_DIR"
32
10:49:21
for path in $GIT_CLEAN_SUBMODULE_PATHS; do
33
10:49:21
if [[ $(realpath "$path") =~ ^"${CI_PROJECT_DIR}/" ]]; then
34
10:49:21
echo "deleting: $path"
35
10:49:21
rm -rf "$path"
36
10:49:21
else
37
10:49:21
echo "$path is not a subpath of $CI_PROJECT_DIR"
38
10:49:21
fi
39
10:49:21
done
40
10:49:21
cd - > /dev/null
41
10:49:21
fi
42
10:49:21
section_end:1778237361:section_pre_clone_script_0
43
10:49:21
Gitaly correlation ID: 01KR3K9GM2AEX9YM5R3J4DWEDR
44
10:49:21
Fetching changes with git depth set to 50...
45
10:49:21
Reinitialized existing Git repository in /Volumes/EngData/builds/gitlab-templates/.git/
46
10:49:22
Checking out 6e76a6a0 as detached HEAD (ref is refs/merge-requests/641/merge)...
47
10:49:22
Removing Gemfile.lock
48
10:49:22
49
10:49:22
Skipping Git submodules setup
50
10:49:22
section_end:1778237362:get_sources
51
10:49:22
+section_start:1778237362:step_script
52
10:49:22
+Executing "step_script" stage of the job script
53
10:49:23
section_start:1778237363:section_pre_build_script_0[hide_duration=true,collapsed=true]
$ function cleanup {
54
10:49:23
rv=$?
55
10:49:23
if [ $rv -ne 0 ]; then
56
10:49:23
echo ""
57
10:49:23
echo " Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
58
10:49:23
echo ""
59
10:49:23
fi
60
10:49:23
exit $rv
61
10:49:23
}
62
10:49:23
trap cleanup EXIT
63
10:49:23
echo "INFO: This is the CI pre_build_script. It's defined in the backend/infra/macos repo."
64
10:49:23
echo "Sourcing ~/.bashrc"
65
10:49:23
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
66
10:49:23
echo "Setting up credentials for Gitlab package registries"
67
10:49:23
echo "machine gitlab.scandit.com" > ~/.netrc
68
10:49:23
echo "login gitlab-ci-token" >> ~/.netrc
69
10:49:23
echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
70
10:49:23
chmod 600 ~/.netrc
71
10:49:23
# Brew installs packages to different paths on M1.
72
10:49:23
# Thus, we need to indicate the path to some brew packages before doing the pip installation.
73
10:49:23
# At least tables package fails without this. These exports are safe to run also in Intel Macs
74
10:49:23
export HDF5_DIR="/usr/local/opt/hdf5"
75
10:49:23
export OPENBLAS="/usr/local/opt/openblas"
76
10:49:23
echo "Setting: HDF5_DIR=$HDF5_DIR"
77
10:49:23
echo "Setting: OPENBLAS=$OPENBLAS"
78
10:49:23
if [ -n "${XCODE_VERSION}" ]; then
79
10:49:23
echo "Using XCODE_VERSION variable to select Xcode version: $XCODE_VERSION"
80
10:49:23
sudo xcode-select --switch /Applications/Xcode.${XCODE_VERSION}.app/Contents/Developer/
81
10:49:23
else
82
10:49:23
echo "XCODE_VERSION was not defined, using Command Line Tools instead"
83
10:49:23
sudo xcode-select -s /Library/Developer/CommandLineTools
84
10:49:23
sudo xcode-select -p
85
10:49:23
fi
86
10:49:23
if [ -n "$ENABLE_DOTNET" ]; then
87
10:49:23
echo "Using DOTNET_VERSION variable to select SDK version: $DOTNET_VERSION"
88
10:49:23
dotnet new globaljson --sdk-version $DOTNET_VERSION --roll-forward feature --force
89
10:49:23
fi
90
10:49:23
python "/Volumes/EngData/.gitlab-runner/tool_versions.py" || true
91
10:49:23
echo "Killing Simulator, xcodebuild, clang, node, dotnet and machinelearningtests processes left from previous job"
92
10:49:23
pkill -9 Simulator || true
93
10:49:23
pkill -9 xcodebuild || true
94
10:49:23
pkill -9 node || true
95
10:49:23
pkill -9 clang || true
96
10:49:23
pkill -9 dotnet || true
97
10:49:23
pkill -9 machinelearningtests || true
98
10:49:23
section_end:1778237363:section_pre_build_script_0
99
10:49:23
INFO: This is the CI pre_build_script. It's defined in the backend/infra/macos repo.
100
10:49:23
Sourcing ~/.bashrc
101
10:49:24
Setting up credentials for Gitlab package registries
102
10:49:24
Setting: HDF5_DIR=/usr/local/opt/hdf5
103
10:49:24
Setting: OPENBLAS=/usr/local/opt/openblas
104
10:49:24
XCODE_VERSION was not defined, using Command Line Tools instead
105
10:49:24
/Library/Developer/CommandLineTools
106
10:49:26
Tool versions in this host:
107
10:49:26
Available Node versions: 12.20.2, 12.22.1, 12.22.6, 12.22.7, 14.17.6, 14.18.1, 14.18.3, 14.20.1, 16.13.0, 16.20.0, 16.20.1, 18.12.0, 18.17.1, 18.19.1, 20.18.1, 20.20.2
108
10:49:26
Available CMake versions: version string not found
109
10:49:26
ccache: 4.12.2
110
10:49:26
clang: 16.0.0, 1600.0.26, 23.5.0
111
10:49:26
CMake version in use: 3.27.1
112
10:49:26
dotnet sdk versions: 6.0.420, 6.0.428, 7.0.407, 7.0.410, 8.0.203, 8.0.406
113
10:49:26
Mono: 6.12.0.188
114
10:49:26
MS Build: 16.10.1.51301
115
10:49:26
Xamarin.Android: 13.2.2
116
10:49:26
Xamarin.iOS: 16.4.0.23
117
10:49:26
active Xcode version: not available
118
10:49:26
pyenv: 2.4.23
119
10:49:26
uv: 0.7.3
120
10:49:26
Killing Simulator, xcodebuild, clang, node, dotnet and machinelearningtests processes left from previous job
121
10:49:26
$ export python_version=$(cat ./.python-version)
122
10:49:26
section_start:1778237366:section_script_step_1[hide_duration=true,collapsed=true]
$ if [[ $python_version =~ ^([0-9]+\.[0-9]+)$ ]]; then
123
10:49:26
major_minor=${BASH_REMATCH[1]}
124
10:49:26
var_name="PYTHON${major_minor//./}"
125
10:49:26
echo "Using version from $var_name"
126
10:49:26
export python_version=${!var_name:-$python_version}
127
10:49:26
fi
128
10:49:26
section_end:1778237366:section_script_step_1
129
10:49:26
Using version from PYTHON312
130
10:49:26
$ echo "Installing python version $python_version"
131
10:49:26
Installing python version 3.12.8
132
10:49:26
$ pyenv install $python_version -s
133
10:49:26
$ pyenv shell $python_version
134
10:49:26
$ pyenv version
135
10:49:26
3.12.8 (set by PYENV_VERSION environment variable)
136
10:49:26
$ VENV_CACHE_PATH=${CI_BUILDS_DIR}/cache/${CI_RUNNER_SHORT_TOKEN}_${CI_CONCURRENT_ID}_${CI_PROJECT_PATH_SLUG}/venv_${CI_COMMIT_BRANCH}_${python_version}
137
10:49:26
$ export UV_CACHE_DIR=${CI_BUILDS_DIR}/cache/.uv
138
10:49:26
$ echo "UV_CACHE_DIR $UV_CACHE_DIR"
139
10:49:26
UV_CACHE_DIR /Volumes/EngData/builds/cache/.uv
140
10:49:26
$ mkdir -p $VENV_CACHE_PATH
141
10:49:26
$ python3 -m venv $VENV_CACHE_PATH
142
10:49:31
$ source $VENV_CACHE_PATH/bin/activate
143
10:49:31
$ python3 --version
144
10:49:31
Python 3.12.8
145
10:49:31
$ export BUILD_PACKAGES=${BUILD_PACKAGES:-wheel}
146
10:49:31
$ export PIP_REQUIREMENTS=${PIP_REQUIREMENTS:--r requirements.txt}
147
10:49:31
$ export PIP_ARGS=${PIP_ARGS:---no-build}
148
10:49:31
section_start:1778237371:section_script_step_16[hide_duration=true,collapsed=true]
$ echo "BUILD_PACKAGES: ${BUILD_PACKAGES}"
149
10:49:31
echo "PIP_REQUIREMENTS: ${PIP_REQUIREMENTS}"
150
10:49:31
echo "PIP_ARGS: ${PIP_ARGS}"
151
10:49:31
section_end:1778237371:section_script_step_16
152
10:49:31
BUILD_PACKAGES: wheel
153
10:49:31
PIP_REQUIREMENTS: -r requirements.txt
154
10:49:31
PIP_ARGS: --no-build
155
10:49:31
$ python3 -m pip install --upgrade uv $BUILD_PACKAGES
156
10:49:32
Collecting uv
157
10:49:32
Using cached uv-0.11.11-py3-none-macosx_10_12_x86_64.whl.metadata (11 kB)
158
10:49:32
Collecting wheel
159
10:49:32
Using cached wheel-0.47.0-py3-none-any.whl.metadata (2.3 kB)
160
10:49:32
Collecting packaging>=24.0 (from wheel)
161
10:49:32
Using cached packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
162
10:49:32
Using cached uv-0.11.11-py3-none-macosx_10_12_x86_64.whl (23.1 MB)
163
10:49:32
Using cached wheel-0.47.0-py3-none-any.whl (32 kB)
164
10:49:32
Using cached packaging-26.2-py3-none-any.whl (100 kB)
165
10:49:32
Installing collected packages: uv, packaging, wheel
166
10:49:32
Successfully installed packaging-26.2 uv-0.11.11 wheel-0.47.0
167
10:49:32
168
10:49:32
[notice] A new release of pip is available: 24.3.1 -> 26.1.1
169
10:49:32
[notice] To update, run: pip install --upgrade pip
170
10:49:32
$ time uv pip install $PIP_REQUIREMENTS $PIP_ARGS
171
10:49:33
Using Python 3.12.8 environment at: /Volumes/EngData/builds/cache/z4xgKiLb_0_internal-gitlab-templates/venv__3.12.8
172
10:49:33
Resolved 7 packages in 553ms
173
10:49:33
Downloading pygments (1.2MiB)
174
10:49:33
Downloaded pygments
175
10:49:33
Prepared 6 packages in 113ms
176
10:49:33
Installed 6 packages in 10ms
177
10:49:33
+ coverage==7.13.5
178
10:49:33
+ iniconfig==2.3.0
179
10:49:33
+ pluggy==1.6.0
180
10:49:33
+ pygments==2.20.0
181
10:49:33
+ pytest==9.0.3
182
10:49:33
+ pytest-cov==7.1.0
183
10:49:33
184
10:49:33
real 0m1.159s
185
10:49:33
user 0m0.157s
186
10:49:33
sys 0m0.136s
187
10:49:33
$ pyenv rehash
188
10:49:33
$ sw_vers
189
10:49:33
ProductName: macOS
190
10:49:33
ProductVersion: 14.5
191
10:49:33
BuildVersion: 23F79
192
10:49:33
section_end:1778237373:step_script
193
10:49:33
+section_start:1778237373:cleanup_file_variables
194
10:49:33
+Cleaning up project directory and file based variables
195
10:49:34
section_end:1778237374:cleanup_file_variables
196
10:49:34
+
197
10:49:34
Job succeeded
198