snyk-test-delta-all-projects ○ success

Duration: 1m 16s
Queued: 1s
📁 Stage: test
🖥 Runner: linux-aws-1
Average Duration
54s
This job: 1m 16s
Failure Rate
4.1%
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

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