snyk-test-delta-inline ○ success

Duration: 58s
Queued: 3s
📁 Stage: test
🖥 Runner: linux-2
Average Duration
44s
This job: 58s
Failure Rate
5.2%
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

213 lines
Match - of 0
1 14:27:24 Running with gitlab-runner 18.5.0 (bda84871)
2 14:27:24 on gitlab-runner-linux-2-5677d87478-dtkch TC7X7l-mC, system ID: r_vzvfqLUZvzJc
3 14:27:24 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:24 Resolving secrets
5 14:27:24 section_start:1765290444:prepare_executor
6 14:27:24 +Preparing the "kubernetes" executor
7 14:27:24 Using Kubernetes namespace: gitlab-runner
8 14:27:24 Using Kubernetes executor with image registry.scandit.com/dockerfiles/snyk:python-3.12@sha256:74a2a43dda32b2139d91201cdc8a6c45ee153060573ed00f11c0ef36942578b7 ...
9 14:27:24 Using attach strategy to execute scripts...
10 14:27:24 Using effective pull policy of [Always] for container build
11 14:27:24 Using effective pull policy of [Always] for container helper
12 14:27:24 Using effective pull policy of [Always] for container init-permissions
13 14:27:24 section_end:1765290444:prepare_executor
14 14:27:24 +section_start:1765290444:prepare_script
15 14:27:24 +Preparing environment
16 14:27:24 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
17 14:27:24 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:24 Subscribing to Kubernetes Pod events...
19 14:27:25 Type Reason Message
20 14:27:25 Normal Scheduled Successfully assigned gitlab-runner/runner-tc7x7l-mc-project-621-concurrent-3-4tx5abzp to ci4
21 14:27:39 Normal Pulled Container image "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-v18.5.0" already present on machine
22 14:27:39 Normal Created Created container: init-permissions
23 14:27:41 Normal Started Started container init-permissions
24 14:27:42 Normal Pulling Pulling image "registry.scandit.com/dockerfiles/snyk:python-3.12@sha256:74a2a43dda32b2139d91201cdc8a6c45ee153060573ed00f11c0ef36942578b7"
25 14:27:43 Normal Pulled Successfully pulled image "registry.scandit.com/dockerfiles/snyk:python-3.12@sha256:74a2a43dda32b2139d91201cdc8a6c45ee153060573ed00f11c0ef36942578b7" in 599ms (599ms including waiting). Image size: 494173832 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 "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-v18.5.0" already present on machine
29 14:27:44 Normal Created Created container: helper
30 14:27:44 Normal Started Started container helper
31 14:27:47 Running on runner-tc7x7l-mc-project-621-concurrent-3-4tx5abzp via gitlab-runner-linux-2-5677d87478-dtkch...
32 14:27:47
33 14:27:47 section_end:1765290467:prepare_script
34 14:27:47 +section_start:1765290467:get_sources
35 14:27:47 +Getting source from Git repository
36 14:27:48 Gitaly correlation ID: 01KC1R51ECK2BQKXJEXFACX6NN
37 14:27:48 Fetching changes with git depth set to 50...
38 14:27:48 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
39 14:27:48 Created fresh repository.
40 14:27:49 Checking out 940006cc as detached HEAD (ref is refs/merge-requests/507/merge)...
41 14:27:49
42 14:27:49 Skipping Git submodules setup
43 14:27:49
44 14:27:49 section_end:1765290469:get_sources
45 14:27:49 +section_start:1765290469:step_script
46 14:27:49 +Executing "step_script" stage of the job script
47 14:27:50 section_start:1765290470:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
48 14:27:50 rv=$?
49 14:27:50 if [ $rv -ne 0 ]; then
50 14:27:50 echo ""
51 14:27:50 echo " Failure Cause Analysis might help, please open this link:"
52 14:27:50 echo " https://failure-cause-analysis.zrh.int.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
53 14:27:50 echo ""
54 14:27:50 fi
55 14:27:50 echo ""
56 14:27:50 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:50 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:50 echo ""
59 14:27:50 exit $rv
60 14:27:50 }
61 14:27:50 trap cleanup EXIT
62 14:27:50 echo "INFO: This is the CI job pre_build_script"
63 14:27:50 echo "INFO: It's defined in the backend/infra/onprem/k8s repo."
64 14:27:50 echo "INFO: These additional Scandit variables are available to you:"
65 14:27:50 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
66 14:27:50 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
67 14:27:50 echo " SC_K8S_KYVERNO_PATCHES: |"
68 14:27:50 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
69 14:27:50 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
70 14:27:50 if command -v numfmt >/dev/null 2>&1; then
71 14:27:50 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
72 14:27:50 else
73 14:27:50 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
74 14:27:50 fi
75 14:27:50 __start_time=${EPOCHSECONDS}
76 14:27:50 echo ""
77 14:27:50 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"
78 14:27:50 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"
79 14:27:50 echo ""
80 14:27:50 echo "Setting up credentials for Gitlab Python registries"
81 14:27:50 mkdir -p ~
82 14:27:50 echo "machine gitlab.scandit.com" > ~/.netrc
83 14:27:50 echo "login gitlab-ci-token" >> ~/.netrc
84 14:27:50 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
85 14:27:50 chmod 600 ~/.netrc
86 14:27:50 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
87 14:27:50 git config --global --add safe.directory $CI_PROJECT_DIR
88 14:27:50 fi
89 14:27:50 sleep infinity &
90 14:27:50 echo $! > ~/.bg_pid
91 14:27:50 section_end:1765290470:section_pre_build_script_0
92 14:27:50 INFO: This is the CI job pre_build_script
93 14:27:50 INFO: It's defined in the backend/infra/onprem/k8s repo.
94 14:27:50 INFO: These additional Scandit variables are available to you:
95 14:27:50 SC_K8S_NODE_NAME: ci4
96 14:27:50 SC_K8S_IMAGE_ID:
97 14:27:50 SC_K8S_KYVERNO_PATCHES: |
98 14:27:50
99 14:27:50 cpu (r/l): 1/8
100 14:27:50 memory (r/l): 1.0GB/16GB
101 14:27:50
102 14:27:50 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci4&var-namespace=gitlab-runner&var-pod=runner-tc7x7l-mc-project-621-concurrent-3-4tx5abzp&var-resolution=15&from=1765290470000&to=now
103 14:27:50 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci4&var-resolution=15s&from=1765290470000&to=now
104 14:27:50
105 14:27:50 Setting up credentials for Gitlab Python registries
106 14:27:50 $ uv pip install --system -r requirements.txt
107 14:27:51 Using Python 3.12.12 environment at: /usr/local
108 14:27:51 Resolved 7 packages in 378ms
109 14:27:51 Downloading pygments (1.2MiB)
110 14:27:51 Downloaded pygments
111 14:27:51 Prepared 7 packages in 163ms
112 14:27:51 Installed 7 packages in 99ms
113 14:27:51 + coverage==7.13.0
114 14:27:51 + iniconfig==2.3.0
115 14:27:51 + packaging==25.0
116 14:27:51 + pluggy==1.6.0
117 14:27:51 + pygments==2.19.2
118 14:27:51 + pytest==9.0.1
119 14:27:51 + pytest-cov==7.0.0
120 14:27:51 section_start:1765290471:section_script_step_1[hide_duration=true,collapsed=true] $ set -e
121 14:27:51
122 14:27:51 function log_info() {
123 14:27:51 echo -e "[\e[1;94mINFO\e[0m] $*"
124 14:27:51 }
125 14:27:51
126 14:27:51 function log_warn() {
127 14:27:51 echo -e "[\e[1;93mWARN\e[0m] $*"
128 14:27:51 }
129 14:27:51
130 14:27:51 function log_error() {
131 14:27:51 echo -e "[\e[1;91mERROR\e[0m] $*"
132 14:27:51 }
133 14:27:51
134 14:27:51 function fail() {
135 14:27:51 log_error "$*"
136 14:27:51 exit 1
137 14:27:51 }
138 14:27:51
139 14:27:51 function assert_defined() {
140 14:27:51 if [[ -z "$1" ]]
141 14:27:51 then
142 14:27:51 log_error "$2"
143 14:27:51 exit 1
144 14:27:51 fi
145 14:27:51 }
146 14:27:51
147 14:27:51 function snyk_setup() {
148 14:27:51 # If SNYK_FILE is set, use it as a target, otherwise use --all-projects
149 14:27:51 if [[ -n "${SNYK_FILE}" ]]; then
150 14:27:51 SNYK_TARGET="--file=${SNYK_FILE}"
151 14:27:51 else
152 14:27:51 SNYK_TARGET="--all-projects"
153 14:27:51 fi
154 14:27:51
155 14:27:51 log_info "Targeting $SNYK_TARGET"
156 14:27:51
157 14:27:51 # Set log level based on SNYK_LOG_LEVEL
158 14:27:51 if [[ "$SNYK_LOG_LEVEL" == "info" ]]; then
159 14:27:51 SNYK_LOG_LEVEL=""
160 14:27:51 elif [[ "$SNYK_LOG_LEVEL" == "debug" ]]; then
161 14:27:51 SNYK_LOG_LEVEL="--debug"
162 14:27:51 elif [[ "$SNYK_LOG_LEVEL" == "trace" ]]; then
163 14:27:51 SNYK_LOG_LEVEL="--debug --log-level=trace"
164 14:27:51 fi
165 14:27:51 }
166 14:27:51 section_end:1765290471:section_script_step_1
167 14:27:51 $ assert_defined "$SNYK_TOKEN" "No SNYK_TOKEN defined. You have to provide a valid token for accessing Snyk."
168 14:27:51 $ snyk_setup
169 14:27:51 [INFO] Targeting --file=requirements.txt
170 14:27:51 $ set -x
171 14:27:51 ++ echo '$ snyk-test-delta.sh --snyk-delta-args "$SNYK_DELTA_ARGS" --snyk-test-args "$SNYK_TARGET --org=$SNYK_ORG --remote-repo-url=$SNYK_REMOTE_REPO_URL --policy-path=$SNYK_POLICY_PATH --json ${SNYK_EXCLUDE:+--exclude=$SNYK_EXCLUDE} ${SNYK_TARGET_REFERENCE:+--target-reference=$SNYK_TARGET_REFERENCE} ${SNYK_PROJECT_ENVIRONMENT:+--project-environment=$SNYK_PROJECT_ENVIRONMENT} ${SNYK_PROJECT_LIFECYCLE:+--project-lifecycle=$SNYK_PROJECT_LIFECYCLE} ${SNYK_PROJECT_TAGS:+--project-tags=$SNYK_PROJECT_TAGS} $SNYK_LOG_LEVEL $SNYK_EXTRA_PARAMETERS"'
172 14:27:51 $ snyk-test-delta.sh --snyk-delta-args "$SNYK_DELTA_ARGS" --snyk-test-args "$SNYK_TARGET --org=$SNYK_ORG --remote-repo-url=$SNYK_REMOTE_REPO_URL --policy-path=$SNYK_POLICY_PATH --json ${SNYK_EXCLUDE:+--exclude=$SNYK_EXCLUDE} ${SNYK_TARGET_REFERENCE:+--target-reference=$SNYK_TARGET_REFERENCE} ${SNYK_PROJECT_ENVIRONMENT:+--project-environment=$SNYK_PROJECT_ENVIRONMENT} ${SNYK_PROJECT_LIFECYCLE:+--project-lifecycle=$SNYK_PROJECT_LIFECYCLE} ${SNYK_PROJECT_TAGS:+--project-tags=$SNYK_PROJECT_TAGS} $SNYK_LOG_LEVEL $SNYK_EXTRA_PARAMETERS"
173 14:27:51 ++ snyk-test-delta.sh --snyk-delta-args '' --snyk-test-args '--file=requirements.txt --org=d688d452-cf04-4620-84f0-3431ce4d741a --remote-repo-url=internal/gitlab-templates --policy-path=/build/internal/gitlab-templates/.snyk --json '
174 14:27:52 Running: snyk test --file=requirements.txt --org=d688d452-cf04-4620-84f0-3431ce4d741a --remote-repo-url=internal/gitlab-templates --policy-path=/build/internal/gitlab-templates/.snyk --json
175 14:28:09 Processing output of: snyk test --file=requirements.txt --org=d688d452-cf04-4620-84f0-3431ce4d741a --remote-repo-url=internal/gitlab-templates --policy-path=/build/internal/gitlab-templates/.snyk --json
176 14:28:10 Processing pip project gitlab-templates (dbdfd00c-1dff-430e-8c66-3099fa27c3a1): target file requirements.txt in /build/internal/gitlab-templates
177 14:28:10 No local policy file .snyk found
178 14:28:10 Running: snyk-delta
179 14:28:21 No new issues found !
180 14:28:21 Finished processing
181 14:28:21 Exit code: 0
182 14:28:21
183 14:28:21 Overall exit code for snyk-test-delta.sh: 0
184 14:28:21 ++ echo '$ set +x'
185 14:28:21 $ set +x
186 14:28:21 ++ set +x
187 14:28:21
188 14:28:21 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci4&var-namespace=gitlab-runner&var-pod=runner-tc7x7l-mc-project-621-concurrent-3-4tx5abzp&var-resolution=15&from=1765290470000&to=1765290501000
189 14:28:21 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci4&var-resolution=15s&from=1765290470000&to=1765290501000
190 14:28:21
191 14:28:21
192 14:28:21 section_end:1765290501:step_script
193 14:28:21 +section_start:1765290501:after_script
194 14:28:21 +Running after_script
195 14:28:21 Running after script...
196 14:28:21 section_start:1765290501:section_after_script_step_0[hide_duration=true,collapsed=true] $ cat <<-EOD
197 14:28:21 ----------------------------------------------------------
198 14:28:21 Need help? Documentation on the Snyk jobs can be found at:
199 14:28:21 https://gitlab.scandit.com/internal/gitlab-templates/-/blob/master/.gitlab/snyk.md
200 14:28:21 EOD
201 14:28:21 section_end:1765290501:section_after_script_step_0
202 14:28:21 ----------------------------------------------------------
203 14:28:21 Need help? Documentation on the Snyk jobs can be found at:
204 14:28:21 https://gitlab.scandit.com/internal/gitlab-templates/-/blob/master/.gitlab/snyk.md
205 14:28:21
206 14:28:21 section_end:1765290501:after_script
207 14:28:21 +section_start:1765290501:cleanup_file_variables
208 14:28:21 +Cleaning up project directory and file based variables
209 14:28:22
210 14:28:22 section_end:1765290502:cleanup_file_variables
211 14:28:22 +
212 14:28:22 Job succeeded
213