test-install-deps β—‹ success

⏱ Duration: 22s
⏳ Queued: 0s
πŸ“ Stage: test
πŸ–₯ Runner: linux-aws-1
Average Duration
37s
This job: 22s
Failure Rate
0.0%
last 30 days
β–Ά

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

214 lines
Match - of 0
1 14:27:36 Running with gitlab-runner 18.5.0 (bda84871)
2 14:27:36 on gitlab-runner-linux-1-86d76d468c-dqnmc wRxjPbsJX, system ID: r_rbm7B2gpCnst
3 14:27:36 feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY:true, FF_SCRIPT_SECTIONS:true, FF_USE_ADVANCED_POD_SPEC_CONFIGURATION:true, FF_PRINT_POD_EVENTS:true, FF_USE_DUMB_INIT_WITH_KUBERNETES_EXECUTOR:true, FF_LOG_IMAGES_CONFIGURED_FOR_JOB:true, FF_CLEAN_UP_FAILED_CACHE_EXTRACT:true, FF_TIMESTAMPS:true, FF_GIT_URLS_WITHOUT_TOKENS:true
4 14:27:36 Resolving secrets
5 14:27:36 section_start:1765290456:prepare_executor
6 14:27:36 +Preparing the "kubernetes" executor
7 14:27:36 Using Kubernetes namespace: gitlab-runner
8 14:27:36 Using Kubernetes executor with image registry.scandit.com/internal/gitlab-templates/python:84b74ce43bf4f781828bf5a8fb662404b640c5ec93aad6d8d207b534b1aa643f ...
9 14:27:36 Using attach strategy to execute scripts...
10 14:27:36 Using effective pull policy of [Always] for container build
11 14:27:36 Using effective pull policy of [Always] for container helper
12 14:27:36 Using effective pull policy of [Always] for container init-permissions
13 14:27:36 section_end:1765290456:prepare_executor
14 14:27:36 +section_start:1765290456:prepare_script
15 14:27:36 +Preparing environment
16 14:27:36 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
17 14:27:36 WARNING: Advanced Pod Spec configuration enabled, merging the provided PodSpec to the generated one. This is a beta feature and is subject to change. Feedback is collected in this issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29659 ...
18 14:27:36 Subscribing to Kubernetes Pod events...
19 14:27:36 Type Reason Message
20 14:27:36 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-0-fxgkszmc to ip-10-0-39-249.eu-central-1.compute.internal
21 14:27:37 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.5.0" already present on machine
22 14:27:37 Normal Created Created container: init-permissions
23 14:27:37 Normal Started Started container init-permissions
24 14:27:37 Normal Pulling Pulling image "registry.scandit.com/internal/gitlab-templates/python:84b74ce43bf4f781828bf5a8fb662404b640c5ec93aad6d8d207b534b1aa643f"
25 14:27:43 Normal Pulled Successfully pulled image "registry.scandit.com/internal/gitlab-templates/python:84b74ce43bf4f781828bf5a8fb662404b640c5ec93aad6d8d207b534b1aa643f" in 6.118s (6.118s including waiting). Image size: 506240359 bytes.
26 14:27:43 Normal Created Created container: build
27 14:27:43 Normal Started Started container build
28 14:27:43 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.5.0" already present on machine
29 14:27:43 Normal Created Created container: helper
30 14:27:44 Normal Started Started container helper
31 14:27:46 Running on runner-wrxjpbsjx-project-621-concurrent-0-fxgkszmc via gitlab-runner-linux-1-86d76d468c-dqnmc...
32 14:27:46
33 14:27:46 section_end:1765290466:prepare_script
34 14:27:46 +section_start:1765290466:get_sources
35 14:27:46 +Getting source from Git repository
36 14:27:46 Gitaly correlation ID: 01KC1R5CJ843TRNB4WE4RHJTFE
37 14:27:46 Fetching changes with git depth set to 50...
38 14:27:46 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
39 14:27:46 Created fresh repository.
40 14:27:47 Checking out 940006cc as detached HEAD (ref is refs/merge-requests/507/merge)...
41 14:27:47
42 14:27:47 Skipping Git submodules setup
43 14:27:47
44 14:27:47 section_end:1765290467:get_sources
45 14:27:47 +section_start:1765290467:step_script
46 14:27:47 +Executing "step_script" stage of the job script
47 14:27:48 section_start:1765290468:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
48 14:27:48 rv=$?
49 14:27:48 if [ $rv -ne 0 ]; then
50 14:27:48 echo ""
51 14:27:48 echo " Failure Cause Analysis might help, please open this link:"
52 14:27:48 echo " https://failure-cause-analysis.zrh.int.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
53 14:27:48 echo ""
54 14:27:48 fi
55 14:27:48 echo ""
56 14:27:48 echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=${EPOCHSECONDS}000"
57 14:27:48 echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=${EPOCHSECONDS}000"
58 14:27:48 echo ""
59 14:27:48 exit $rv
60 14:27:48 }
61 14:27:48 trap cleanup EXIT
62 14:27:48 echo "INFO: This is the CI job pre_build_script"
63 14:27:48 echo "INFO: It's defined in the backend/infra/aws repo."
64 14:27:48 echo "INFO: These additional Scandit variables are available to you:"
65 14:27:48 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
66 14:27:48 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
67 14:27:48 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
68 14:27:48 if command -v numfmt >/dev/null 2>&1; then
69 14:27:48 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
70 14:27:48 else
71 14:27:48 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
72 14:27:48 fi
73 14:27:48 __start_time=${EPOCHSECONDS}
74 14:27:48 echo ""
75 14:27:48 echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=now"
76 14:27:48 echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=now"
77 14:27:48 echo ""
78 14:27:48 echo "Setting up credentials for Gitlab Python registries"
79 14:27:48 mkdir -p ~
80 14:27:48 echo "machine gitlab.scandit.com" > ~/.netrc
81 14:27:48 echo "login gitlab-ci-token" >> ~/.netrc
82 14:27:48 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
83 14:27:48 chmod 600 ~/.netrc
84 14:27:48 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
85 14:27:48 git config --global --add safe.directory $CI_PROJECT_DIR
86 14:27:48 fi
87 14:27:48 # Sonarqube server is running on the same cluster. Use internal address
88 14:27:48 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
89 14:27:48 section_end:1765290468:section_pre_build_script_0
90 14:27:48 INFO: This is the CI job pre_build_script
91 14:27:48 INFO: It's defined in the backend/infra/aws repo.
92 14:27:48 INFO: These additional Scandit variables are available to you:
93 14:27:48 SC_K8S_NODE_NAME: ip-10-0-39-249.eu-central-1.compute.internal
94 14:27:48 SC_K8S_IMAGE_ID:
95 14:27:48 cpu (r/l): 1/4
96 14:27:48 memory (r/l): 1.0GB/16GB
97 14:27:48
98 14:27:48 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-39-249.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-fxgkszmc&var-resolution=15&from=1765290468000&to=now
99 14:27:48 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-39-249.eu-central-1.compute.internal&var-resolution=15s&from=1765290468000&to=now
100 14:27:48
101 14:27:48 Setting up credentials for Gitlab Python registries
102 14:27:48 $ export UV_CACHE_DIR=$CACHE_DIR/.uv
103 14:27:48 $ echo "UV_CACHE_DIR $UV_CACHE_DIR"
104 14:27:48 UV_CACHE_DIR /.uv
105 14:27:48 section_start:1765290468:section_script_step_2[hide_duration=true,collapsed=true] $ export python_version=$(cat ./.python-version)
106 14:27:48 eval "$($HOME/.pyenv/bin/pyenv init -)"
107 14:27:48 echo "Activating Python $python_version"
108 14:27:48 pyenv shell $python_version || (
109 14:27:48 echo "ERROR: Installing a new Python version in container based CI jobs is no longer allowed."
110 14:27:48 echo "Please ensure the image contains a pre-installed Python ${python_version}."
111 14:27:48 exit 1
112 14:27:48 )
113 14:27:48 pyenv version
114 14:27:48 section_end:1765290468:section_script_step_2
115 14:27:48 Activating Python 3.12
116 14:27:48 3.12.2 (set by PYENV_VERSION environment variable)
117 14:27:48 section_start:1765290468:section_script_step_3[hide_duration=true,collapsed=true] $ export python_version=$(cat ./.python-version)
118 14:27:48 VENV_CACHE_PATH=${CACHE_DIR:-/cache}/venv/${CI_PROJECT_ID}/${python_version}/${CI_COMMIT_BRANCH}
119 14:27:48 mkdir -p $VENV_CACHE_PATH
120 14:27:48 # if creation of venv fails, re-run it with "--clear"
121 14:27:48 python3 -m venv $VENV_CACHE_PATH || python3 -m venv $VENV_CACHE_PATH --clear
122 14:27:48 source $VENV_CACHE_PATH/bin/activate
123 14:27:48 python3 --version
124 14:27:48 pip install --upgrade wheel uv
125 14:27:48 section_end:1765290468:section_script_step_3
126 14:27:52 Python 3.12.2
127 14:27:53 Collecting wheel
128 14:27:53 Downloading wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
129 14:27:53 Collecting uv
130 14:27:53 Downloading uv-0.9.16-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
131 14:27:53 Downloading wheel-0.45.1-py3-none-any.whl (72 kB)
132 14:27:53 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.5/72.5 kB 9.5 MB/s eta 0:00:00
133 14:27:53 Downloading uv-0.9.16-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.0 MB)
134 14:27:53 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 22.0/22.0 MB 220.4 MB/s eta 0:00:00
135 14:27:53 Installing collected packages: wheel, uv
136 14:27:54 Successfully installed uv-0.9.16 wheel-0.45.1
137 14:27:54
138 14:27:54 [notice] A new release of pip is available: 24.0 -> 25.3
139 14:27:54 [notice] To update, run: pip install --upgrade pip
140 14:27:54 $ time uv pip install ${PIP_REQUIREMENTS:--r requirements.txt} ${PIP_ARGS}
141 14:27:54 Using Python 3.12.2 environment at: /cache/venv/621/3.12
142 14:27:54 Resolved 7 packages in 100ms
143 14:27:54 Downloading pygments (1.2MiB)
144 14:27:54 Downloaded pygments
145 14:27:54 Prepared 7 packages in 78ms
146 14:27:54 Installed 7 packages in 84ms
147 14:27:54 + coverage==7.13.0
148 14:27:54 + iniconfig==2.3.0
149 14:27:54 + packaging==25.0
150 14:27:54 + pluggy==1.6.0
151 14:27:54 + pygments==2.19.2
152 14:27:54 + pytest==9.0.1
153 14:27:54 + pytest-cov==7.0.0
154 14:27:54
155 14:27:54 real 0m0.327s
156 14:27:54 user 0m0.122s
157 14:27:54 sys 0m0.135s
158 14:27:54 $ pyenv rehash
159 14:27:54 $ echo This is a collapsible example section
160 14:27:54 This is a collapsible example section
161 14:27:54 $ python3 -m pytest ${PYTEST_OPTS:--m "not requirements"} --cov=. --cov-report=html --cov-report=xml --cov-report=term --junitxml=${CI_LOGS}/test_report.xml .
162 14:27:55 ============================= test session starts ==============================
163 14:27:55 platform linux -- Python 3.12.2, pytest-9.0.1, pluggy-1.6.0
164 14:27:55 rootdir: /build/internal/gitlab-templates
165 14:27:55 configfile: pytest.ini
166 14:27:55 plugins: cov-7.0.0
167 14:27:55 collected 2 items / 1 deselected / 1 selected
168 14:27:55
169 14:27:55 tests/test_python.py . [100%]
170 14:27:55
171 14:27:55 - generated xml file: /build/internal/gitlab-templates/ci-logs/test_report.xml -
172 14:27:55 ================================ tests coverage ================================
173 14:27:55 _______________ coverage: platform linux, python 3.12.2-final-0 ________________
174 14:27:55
175 14:27:55 Name Stmts Miss Cover
176 14:27:55 ------------------------------------------------
177 14:27:55 tests/__init__.py 0 0 100%
178 14:27:55 tests/test_python.py 4 0 100%
179 14:27:55 tests/test_requirements.py 6 2 67%
180 14:27:55 tests/utils/example.py 11 2 82%
181 14:27:55 ------------------------------------------------
182 14:27:55 TOTAL 21 4 81%
183 14:27:55 Coverage HTML written to dir htmlcov
184 14:27:55 Coverage XML written to file coverage.xml
185 14:27:55 ======================= 1 passed, 1 deselected in 0.13s ========================
186 14:27:55 $ sed -i -e "s=<source>.*</source>=<source>./</source>=g" coverage.xml
187 14:27:55 $ echo Bye
188 14:27:55 Bye
189 14:27:55
190 14:27:55 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-39-249.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-fxgkszmc&var-resolution=15&from=1765290468000&to=1765290475000
191 14:27:55 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-39-249.eu-central-1.compute.internal&var-resolution=15s&from=1765290468000&to=1765290475000
192 14:27:55
193 14:27:55
194 14:27:55 section_end:1765290475:step_script
195 14:27:55 +section_start:1765290475:upload_artifacts_on_success
196 14:27:55 +Uploading artifacts for successful job
197 14:27:56 Uploading artifacts...
198 14:27:56 htmlcov/: found 14 matching artifact files and directories
199 14:27:56 Uploading artifacts as "archive" to coordinator... 201 Created correlation_id=01KC1R60QM583FXP3C06CRWGB9 id=46308196 responseStatus=201 Created token=64_yroX3G
200 14:27:56 Uploading artifacts...
201 14:27:56 /build/internal/gitlab-templates/ci-logs/test_report.xml: found 1 matching artifact files and directories
202 14:27:56 Uploading artifacts as "junit" to coordinator... 201 Created correlation_id=01KC1R61357QSJQVW3CAXT3NZY id=46308196 responseStatus=201 Created token=64_yroX3G
203 14:27:56 Uploading artifacts...
204 14:27:56 coverage.xml: found 1 matching artifact files and directories
205 14:27:57 Uploading artifacts as "cobertura" to coordinator... 201 Created correlation_id=01KC1R61AP4HZ7N71AHQAVGZET id=46308196 responseStatus=201 Created token=64_yroX3G
206 14:27:57
207 14:27:57 section_end:1765290477:upload_artifacts_on_success
208 14:27:57 +section_start:1765290477:cleanup_file_variables
209 14:27:57 +Cleaning up project directory and file based variables
210 14:27:57
211 14:27:57 section_end:1765290477:cleanup_file_variables
212 14:27:57 +
213 14:27:57 Job succeeded
214