pre-commit ○ success

Duration: 48s
Queued: 0s
📁 Stage: lint
🖥 Runner: linux-aws-1
Average Duration
26s
This job: 48s
Failure Rate
0.9%
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

176 lines
Match - of 0
1 14:27:39 Running with gitlab-runner 18.5.0 (bda84871)
2 14:27:39 on gitlab-runner-linux-1-86d76d468c-dqnmc wRxjPbsJX, system ID: r_rbm7B2gpCnst
3 14:27:39 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:39 Resolving secrets
5 14:27:39 section_start:1765290459:prepare_executor
6 14:27:39 +Preparing the "kubernetes" executor
7 14:27:39 Using Kubernetes namespace: gitlab-runner
8 14:27:39 Using Kubernetes executor with image registry.scandit.com/internal/gitlab-templates/pre-commit:065ebd7173a7c0d5e3af4d07b50a5c0045d7a20a671971453dbc49c515c4c64e ...
9 14:27:39 Using attach strategy to execute scripts...
10 14:27:39 Using effective pull policy of [Always] for container init-permissions
11 14:27:39 Using effective pull policy of [Always] for container build
12 14:27:39 Using effective pull policy of [Always] for container helper
13 14:27:39 section_end:1765290459:prepare_executor
14 14:27:39 +section_start:1765290459:prepare_script
15 14:27:39 +Preparing environment
16 14:27:39 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
17 14:27:39 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:40 Subscribing to Kubernetes Pod events...
19 14:27:40 Type Reason Message
20 14:27:40 Warning FailedScheduling 0/35 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 13 Insufficient cpu, 19 node(s) didn't match Pod's node affinity/selector. preemption: 0/35 nodes are available: 13 No preemption victims found for incoming pod, 22 Preemption is not helpful for scheduling.
21 14:27:40 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-4-8zp51bfz to ip-10-0-23-99.eu-central-1.compute.internal
22 14:27:40 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.5.0" already present on machine
23 14:27:40 Normal Created Created container: init-permissions
24 14:27:40 Normal Started Started container init-permissions
25 14:27:41 Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/internal/gitlab-templates/pre-commit@sha256:e8484cdae2627628149757063c8579c231311343f8703356148527e416ed5515"
26 14:27:56 Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/internal/gitlab-templates/pre-commit@sha256:e8484cdae2627628149757063c8579c231311343f8703356148527e416ed5515" in 14.996s (14.996s including waiting). Image size: 424265113 bytes.
27 14:27:56 Normal Created Created container: build
28 14:27:57 Normal Started Started container build
29 14:27:57 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.5.0" already present on machine
30 14:27:57 Normal Created Created container: helper
31 14:27:57 Normal Started Started container helper
32 14:28:02 Running on runner-wrxjpbsjx-project-621-concurrent-4-8zp51bfz via gitlab-runner-linux-1-86d76d468c-dqnmc...
33 14:28:02
34 14:28:02 section_end:1765290482:prepare_script
35 14:28:02 +section_start:1765290482:get_sources
36 14:28:02 +Getting source from Git repository
37 14:28:02 Gitaly correlation ID: 01KC1R5FX0A6Q2BV8K3TSHF7PB
38 14:28:02 Fetching changes with git depth set to 50...
39 14:28:02 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
40 14:28:02 Created fresh repository.
41 14:28:03 Checking out 940006cc as detached HEAD (ref is refs/merge-requests/507/merge)...
42 14:28:03
43 14:28:03 Skipping Git submodules setup
44 14:28:03
45 14:28:03 section_end:1765290483:get_sources
46 14:28:03 +section_start:1765290483:restore_cache
47 14:28:03 +Restoring cache
48 14:28:04 Checking cache for pre-commit-1-protected...
49 14:28:04 No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.
50 14:28:04 WARNING: Cache file does not exist
51 14:28:04 Failed to extract cache
52 14:28:04 Removing .cache
53 14:28:04
54 14:28:04 section_end:1765290484:restore_cache
55 14:28:04 +section_start:1765290484:step_script
56 14:28:04 +Executing "step_script" stage of the job script
57 14:28:04 section_start:1765290484:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
58 14:28:04 rv=$?
59 14:28:04 if [ $rv -ne 0 ]; then
60 14:28:04 echo ""
61 14:28:04 echo " Failure Cause Analysis might help, please open this link:"
62 14:28:04 echo " https://failure-cause-analysis.zrh.int.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
63 14:28:04 echo ""
64 14:28:04 fi
65 14:28:04 echo ""
66 14:28:04 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"
67 14:28:04 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"
68 14:28:04 echo ""
69 14:28:04 exit $rv
70 14:28:04 }
71 14:28:04 trap cleanup EXIT
72 14:28:04 echo "INFO: This is the CI job pre_build_script"
73 14:28:04 echo "INFO: It's defined in the backend/infra/aws repo."
74 14:28:04 echo "INFO: These additional Scandit variables are available to you:"
75 14:28:04 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
76 14:28:04 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
77 14:28:04 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
78 14:28:04 if command -v numfmt >/dev/null 2>&1; then
79 14:28:04 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
80 14:28:04 else
81 14:28:04 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
82 14:28:04 fi
83 14:28:04 __start_time=${EPOCHSECONDS}
84 14:28:04 echo ""
85 14:28:04 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"
86 14:28:04 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"
87 14:28:04 echo ""
88 14:28:04 echo "Setting up credentials for Gitlab Python registries"
89 14:28:04 mkdir -p ~
90 14:28:04 echo "machine gitlab.scandit.com" > ~/.netrc
91 14:28:04 echo "login gitlab-ci-token" >> ~/.netrc
92 14:28:04 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
93 14:28:04 chmod 600 ~/.netrc
94 14:28:04 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
95 14:28:04 git config --global --add safe.directory $CI_PROJECT_DIR
96 14:28:04 fi
97 14:28:04 # Sonarqube server is running on the same cluster. Use internal address
98 14:28:04 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
99 14:28:04 section_end:1765290484:section_pre_build_script_0
100 14:28:04 INFO: This is the CI job pre_build_script
101 14:28:04 INFO: It's defined in the backend/infra/aws repo.
102 14:28:04 INFO: These additional Scandit variables are available to you:
103 14:28:04 SC_K8S_NODE_NAME: ip-10-0-23-99.eu-central-1.compute.internal
104 14:28:04 SC_K8S_IMAGE_ID:
105 14:28:04 cpu (r/l): 1/4
106 14:28:04 memory (r/l): 1.0GB/16GB
107 14:28:04
108 14:28:04 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-23-99.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-4-8zp51bfz&var-resolution=15&from=1765290484000&to=now
109 14:28:04 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-23-99.eu-central-1.compute.internal&var-resolution=15s&from=1765290484000&to=now
110 14:28:04
111 14:28:04 Setting up credentials for Gitlab Python registries
112 14:28:04 $ rm -f .python-version
113 14:28:04 $ pre-commit run --config $PRE_COMMIT_CONFIG_YAML $PRE_COMMIT_EXTRA_ARGS --all-files
114 14:28:05 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
115 14:28:07 [INFO] Initializing environment for https://github.com/macisamuele/language-formatters-pre-commit-hooks.
116 14:28:08 [INFO] Initializing environment for https://github.com/jumanjihouse/pre-commit-hook-yamlfmt.
117 14:28:08 [INFO] Initializing environment for https://github.com/adrienverge/yamllint.git.
118 14:28:09 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
119 14:28:09 [INFO] Once installed this environment will be reused.
120 14:28:09 [INFO] This may take a few minutes...
121 14:28:13 [INFO] Installing environment for https://github.com/macisamuele/language-formatters-pre-commit-hooks.
122 14:28:13 [INFO] Once installed this environment will be reused.
123 14:28:13 [INFO] This may take a few minutes...
124 14:28:18 [INFO] Installing environment for https://github.com/jumanjihouse/pre-commit-hook-yamlfmt.
125 14:28:18 [INFO] Once installed this environment will be reused.
126 14:28:18 [INFO] This may take a few minutes...
127 14:28:21 [INFO] Installing environment for https://github.com/adrienverge/yamllint.git.
128 14:28:21 [INFO] Once installed this environment will be reused.
129 14:28:21 [INFO] This may take a few minutes...
130 14:28:24 check for added large files..............................................Passed
131 14:28:24 check that executables have shebangs.................(no files to check)Skipped
132 14:28:24 check json...............................................................Passed
133 14:28:24 check for merge conflicts................................................Passed
134 14:28:24 check that scripts with shebangs are executable..........................Passed
135 14:28:24 check toml...............................................................Passed
136 14:28:24 check xml............................................(no files to check)Skipped
137 14:28:24 check yaml...............................................................Passed
138 14:28:24 debug statements (python)................................................Passed
139 14:28:24 detect private key.......................................................Passed
140 14:28:24 fix end of files.........................................................Passed
141 14:28:24 fix utf-8 byte order marker..............................................Passed
142 14:28:24 mixed line ending........................................................Passed
143 14:28:24 pretty format json.......................................................Passed
144 14:28:24 sort simple yaml files...............................(no files to check)Skipped
145 14:28:24 trim trailing whitespace.................................................Passed
146 14:28:24 Pretty format INI........................................................Passed
147 14:28:24 Pretty format TOML.......................................................Passed
148 14:28:24 Format YAML files........................................................Passed
149 14:28:24 yamllint.................................................................Passed
150 14:28:25
151 14:28:25 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-23-99.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-4-8zp51bfz&var-resolution=15&from=1765290484000&to=1765290504000
152 14:28:25 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-23-99.eu-central-1.compute.internal&var-resolution=15s&from=1765290484000&to=1765290504000
153 14:28:25
154 14:28:25
155 14:28:25 section_end:1765290505:step_script
156 14:28:25 +section_start:1765290505:after_script
157 14:28:25 +Running after_script
158 14:28:25 Running after script...
159 14:28:25 $ git diff > pre-commit.diff
160 14:28:25
161 14:28:25 section_end:1765290505:after_script
162 14:28:25 +section_start:1765290505:archive_cache
163 14:28:25 +Saving cache for successful job
164 14:28:26 Creating cache pre-commit-1-protected...
165 14:28:26 .cache: found 6394 matching artifact files and directories
166 14:28:27 No URL provided, cache will not be uploaded to shared cache server. Cache will be stored only locally.
167 14:28:27 Created cache
168 14:28:27
169 14:28:27 section_end:1765290507:archive_cache
170 14:28:27 +section_start:1765290507:cleanup_file_variables
171 14:28:27 +Cleaning up project directory and file based variables
172 14:28:27
173 14:28:27 section_end:1765290507:cleanup_file_variables
174 14:28:27 +
175 14:28:27 Job succeeded
176