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