snyk-test-delta-inline ○ success

Duration: 24s
Queued: 1s
📁 Stage: test
🖥 Runner: linux-aws-1
Average Duration
44s
This job: 24s
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

228 lines
Match - of 0
1 10:48:02 Running with gitlab-runner 18.9.0 (07e534ba)
2 10:48:02 on gitlab-runner-linux-1-746bdd58fd-tnh7j wRxjPbsJX, system ID: r_u8Qk6qrlK3xa
3 10:48:02 feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY:true, FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL: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_GIT_URLS_WITHOUT_TOKENS:true, FF_WAIT_FOR_POD_TO_BE_REACHABLE:true, FF_USE_FLEETING_ACQUIRE_HEARTBEATS:true, FF_USE_JOB_ROUTER:true
4 10:48:02 Resolving secrets
5 10:48:02 section_start:1778237282:prepare_executor
6 10:48:02 +Preparing the "kubernetes" executor
7 10:48:02 Using Kubernetes namespace: gitlab-runner
8 10:48:02 Using Kubernetes executor with image registry.scandit.com/dockerfiles/snyk:python-3.12@sha256:eee36c77812addee2f89331034691d9d1bcc8e76d01382e22b0d114c8950a3ff ...
9 10:48:02 Using attach strategy to execute scripts...
10 10:48:02 Using effective pull policy of [Always] for container build
11 10:48:02 Using effective pull policy of [Always] for container helper
12 10:48:02 Using effective pull policy of [Always] for container init-permissions
13 10:48:02 section_end:1778237282:prepare_executor
14 10:48:02 +section_start:1778237282:prepare_script
15 10:48:02 +Preparing environment
16 10:48:02 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
17 10:48:02 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 10:48:03 Subscribing to Kubernetes Pod events...
19 10:48:04 Type Reason Message
20 10:48:04 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-1-r9xfgxxd to ip-10-0-17-81.eu-central-1.compute.internal
21 10:48:05 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
22 10:48:05 Normal Created Created container: init-permissions
23 10:48:06 Normal Started Started container init-permissions
24 10:48:06 Normal Pulled Container image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/snyk@sha256:eee36c77812addee2f89331034691d9d1bcc8e76d01382e22b0d114c8950a3ff" already present on machine
25 10:48:06 Normal Created Created container: build
26 10:48:06 Normal Started Started container build
27 10:48:06 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
28 10:48:06 Normal Created Created container: helper
29 10:48:06 Normal Started Started container helper
30 10:48:10 Running on runner-wrxjpbsjx-project-621-concurrent-1-r9xfgxxd via gitlab-runner-linux-1-746bdd58fd-tnh7j...
31 10:48:10
32 10:48:10 section_end:1778237290:prepare_script
33 10:48:10 +section_start:1778237290:get_sources
34 10:48:10 +Getting source from Git repository
35 10:48:11 Gitaly correlation ID: 01KR3K7506MHDFWE9NCXKJNGMD
36 10:48:11 Fetching changes with git depth set to 50...
37 10:48:11 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
38 10:48:11 Created fresh repository.
39 10:48:13 Checking out 6e76a6a0 as detached HEAD (ref is refs/merge-requests/641/merge)...
40 10:48:13
41 10:48:13 Skipping Git submodules setup
42 10:48:13
43 10:48:13 section_end:1778237293:get_sources
44 10:48:13 +section_start:1778237293:step_script
45 10:48:13 +Executing "step_script" stage of the job script
46 10:48:14 section_start:1778237294:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
47 10:48:14 rv=$?
48 10:48:14 if [ $rv -ne 0 ]; then
49 10:48:14 echo ""
50 10:48:14 echo " Failure Cause Analysis might help, please open this link:"
51 10:48:14 echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
52 10:48:14 echo ""
53 10:48:14 fi
54 10:48:14 echo ""
55 10:48:14 echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
56 10:48:14 echo ""
57 10:48:14 echo ""
58 10:48:14 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"
59 10:48:14 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"
60 10:48:14 echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=${EPOCHSECONDS}000"
61 10:48:14 echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
62 10:48:14 echo ""
63 10:48:14 exit $rv
64 10:48:14 }
65 10:48:14 trap cleanup EXIT
66 10:48:14 echo "INFO: This is the CI job pre_build_script"
67 10:48:14 echo "INFO: It's defined in the backend/infra/aws repo."
68 10:48:14 echo "INFO: These additional Scandit variables are available to you:"
69 10:48:14 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
70 10:48:14 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
71 10:48:14 echo " SC_K8S_KYVERNO_PATCHES: |"
72 10:48:14 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
73 10:48:14 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
74 10:48:14 if command -v numfmt >/dev/null 2>&1; then
75 10:48:14 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
76 10:48:14 else
77 10:48:14 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
78 10:48:14 fi
79 10:48:14 __start_time=${EPOCHSECONDS}
80 10:48:14 echo ""
81 10:48:14 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"
82 10:48:14 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"
83 10:48:14 echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=now"
84 10:48:14 echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
85 10:48:14 echo ""
86 10:48:14 echo "Setting up credentials for Gitlab Python registries"
87 10:48:14 mkdir -p ~
88 10:48:14 echo "machine gitlab.scandit.com" > ~/.netrc
89 10:48:14 echo "login gitlab-ci-token" >> ~/.netrc
90 10:48:14 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
91 10:48:14 chmod 600 ~/.netrc
92 10:48:14 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
93 10:48:14 git config --global --add safe.directory $CI_PROJECT_DIR
94 10:48:14 fi
95 10:48:14 # Sonarqube server is running on the same cluster. Use internal address
96 10:48:14 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
97 10:48:14 section_end:1778237294:section_pre_build_script_0
98 10:48:14 INFO: This is the CI job pre_build_script
99 10:48:14 INFO: It's defined in the backend/infra/aws repo.
100 10:48:14 INFO: These additional Scandit variables are available to you:
101 10:48:14 SC_K8S_NODE_NAME: ip-10-0-17-81.eu-central-1.compute.internal
102 10:48:14 SC_K8S_IMAGE_ID:
103 10:48:14 SC_K8S_KYVERNO_PATCHES: |
104 10:48:14
105 10:48:14 cpu (r/l): 1/4
106 10:48:14 memory (r/l): 1.0GB/16GB
107 10:48:14
108 10:48:14 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-17-81.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-r9xfgxxd&var-resolution=15&from=1778237294000&to=now
109 10:48:14 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-17-81.eu-central-1.compute.internal&var-resolution=15s&from=1778237294000&to=now
110 10:48:14 Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1585539&var-filters=CI_JOB_ID|=|54677916&sortOrder=Ascending&from=1778237294000&to=now
111 10:48:14 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-05-01~2026-05-15&job_name=snyk-test-delta-inline&project=internal/gitlab-templates
112 10:48:14
113 10:48:14 Setting up credentials for Gitlab Python registries
114 10:48:14 $ uv pip install --system -r requirements.txt
115 10:48:14 Using Python 3.12.13 environment at: /usr/local
116 10:48:15 Resolved 7 packages in 1.03s
117 10:48:15 Downloading pygments (1.2MiB)
118 10:48:15 Downloaded pygments
119 10:48:15 Prepared 7 packages in 86ms
120 10:48:17 Installed 7 packages in 1.69s
121 10:48:17 + coverage==7.13.5
122 10:48:17 + iniconfig==2.3.0
123 10:48:17 + packaging==26.2
124 10:48:17 + pluggy==1.6.0
125 10:48:17 + pygments==2.20.0
126 10:48:17 + pytest==9.0.3
127 10:48:17 + pytest-cov==7.1.0
128 10:48:17 section_start:1778237297:section_script_step_1[hide_duration=true,collapsed=true] $ set -e
129 10:48:17
130 10:48:17 function log_info() {
131 10:48:17 echo -e "[\e[1;94mINFO\e[0m] $*"
132 10:48:17 }
133 10:48:17
134 10:48:17 function log_warn() {
135 10:48:17 echo -e "[\e[1;93mWARN\e[0m] $*"
136 10:48:17 }
137 10:48:17
138 10:48:17 function log_error() {
139 10:48:17 echo -e "[\e[1;91mERROR\e[0m] $*"
140 10:48:17 }
141 10:48:17
142 10:48:17 function fail() {
143 10:48:17 log_error "$*"
144 10:48:17 exit 1
145 10:48:17 }
146 10:48:17
147 10:48:17 function assert_defined() {
148 10:48:17 if [[ -z "$1" ]]
149 10:48:17 then
150 10:48:17 log_error "$2"
151 10:48:17 exit 1
152 10:48:17 fi
153 10:48:17 }
154 10:48:17
155 10:48:17 function snyk_setup() {
156 10:48:17 # If SNYK_FILE is set, use it as a target, otherwise use --all-projects
157 10:48:17 if [[ -n "${SNYK_FILE}" ]]; then
158 10:48:17 SNYK_TARGET="--file=${SNYK_FILE}"
159 10:48:17 else
160 10:48:17 SNYK_TARGET="--all-projects"
161 10:48:17 fi
162 10:48:17
163 10:48:17 log_info "Targeting $SNYK_TARGET"
164 10:48:17
165 10:48:17 # Set log level based on SNYK_LOG_LEVEL
166 10:48:17 if [[ "$SNYK_LOG_LEVEL" == "info" ]]; then
167 10:48:17 SNYK_LOG_LEVEL=""
168 10:48:17 elif [[ "$SNYK_LOG_LEVEL" == "debug" ]]; then
169 10:48:17 SNYK_LOG_LEVEL="--debug"
170 10:48:17 elif [[ "$SNYK_LOG_LEVEL" == "trace" ]]; then
171 10:48:17 SNYK_LOG_LEVEL="--debug --log-level=trace"
172 10:48:17 fi
173 10:48:17 }
174 10:48:17 section_end:1778237297:section_script_step_1
175 10:48:17 $ assert_defined "$SNYK_TOKEN" "No SNYK_TOKEN defined. You have to provide a valid token for accessing Snyk."
176 10:48:17 $ snyk_setup
177 10:48:17 [INFO] Targeting --file=requirements.txt
178 10:48:17 $ set -x
179 10:48:17 ++ 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"'
180 10:48:17 $ 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"
181 10:48:17 ++ 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 '
182 10:48:17 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
183 10:48:22 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
184 10:48:22 Processing pip project gitlab-templates (dbdfd00c-1dff-430e-8c66-3099fa27c3a1): target file requirements.txt in /build/internal/gitlab-templates
185 10:48:22 Filtering out ignored vulnerabilities from local policy file .snyk
186 10:48:22 Initial vulnerability count: 0
187 10:48:22 Removed 0 locally ignored vulnerabilities
188 10:48:22 Running: snyk-delta
189 10:48:23 No new issues found !
190 10:48:23 Finished processing
191 10:48:23 Exit code: 0
192 10:48:23
193 10:48:23 Overall exit code for snyk-test-delta.sh: 0
194 10:48:23 ++ echo '$ set +x'
195 10:48:23 $ set +x
196 10:48:23 ++ set +x
197 10:48:23
198 10:48:23 Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54677916
199 10:48:23
200 10:48:23
201 10:48:23 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-17-81.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-r9xfgxxd&var-resolution=15&from=1778237294000&to=1778237303000
202 10:48:23 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-17-81.eu-central-1.compute.internal&var-resolution=15s&from=1778237294000&to=1778237303000
203 10:48:23 Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1585539&var-filters=CI_JOB_ID|=|54677916&sortOrder=Ascending&from=1778237294000&to=1778237303000
204 10:48:23 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-05-01~2026-05-15&job_name=snyk-test-delta-inline&project=internal/gitlab-templates
205 10:48:23
206 10:48:23
207 10:48:23 section_end:1778237303:step_script
208 10:48:23 +section_start:1778237303:after_script
209 10:48:23 +Running after_script
210 10:48:25 Running after script...
211 10:48:25 section_start:1778237304:section_after_script_step_0[hide_duration=true,collapsed=true] $ cat <<-EOD
212 10:48:25 ----------------------------------------------------------
213 10:48:25 Need help? Documentation on the Snyk jobs can be found at:
214 10:48:25 https://gitlab.scandit.com/internal/gitlab-templates/-/blob/master/.gitlab/snyk.md
215 10:48:25 EOD
216 10:48:25 section_end:1778237304:section_after_script_step_0
217 10:48:25 ----------------------------------------------------------
218 10:48:25 Need help? Documentation on the Snyk jobs can be found at:
219 10:48:25 https://gitlab.scandit.com/internal/gitlab-templates/-/blob/master/.gitlab/snyk.md
220 10:48:25
221 10:48:25 section_end:1778237305:after_script
222 10:48:25 +section_start:1778237305:cleanup_file_variables
223 10:48:25 +Cleaning up project directory and file based variables
224 10:48:25
225 10:48:25 section_end:1778237305:cleanup_file_variables
226 10:48:25 +
227 10:48:25 Job succeeded
228