pre-commit ○ success

Duration: 16s
Queued: 0s
📁 Stage: lint
🖥 Runner: linux-2
Average Duration
26s
This job: 16s
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

166 lines
Match - of 0
1 09:35:36 Running with gitlab-runner 18.9.0 (07e534ba)
2 09:35:36 on gitlab-runner-linux-2-56dbcbf87d-9c6bn TC7X7l-mC, system ID: r_0DnPpZccWU8o
3 09:35:36 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_ENABLE_JOB_CLEANUP: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 09:35:36 Resolving secrets
5 09:35:36 section_start:1777973736:prepare_executor
6 09:35:36 +Preparing the "kubernetes" executor
7 09:35:36 Using Kubernetes namespace: gitlab-runner
8 09:35:36 Using Kubernetes executor with image registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56 ...
9 09:35:36 Using attach strategy to execute scripts...
10 09:35:36 Using effective pull policy of [Always] for container build
11 09:35:36 Using effective pull policy of [Always] for container helper
12 09:35:36 Using effective pull policy of [Always] for container init-permissions
13 09:35:36 section_end:1777973736:prepare_executor
14 09:35:36 +section_start:1777973736:prepare_script
15 09:35:36 +Preparing environment
16 09:35:36 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
17 09:35: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 09:35:36 Subscribing to Kubernetes Pod events...
19 09:35:36 Type Reason Message
20 09:35:36 Normal Scheduled Successfully assigned gitlab-runner/runner-tc7x7l-mc-project-621-concurrent-0-ldbdmhai to ci5
21 09:35:37 Normal Pulled Container image "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-v18.9.0" already present on machine
22 09:35:37 Normal Created Created container: init-permissions
23 09:35:37 Normal Started Started container init-permissions
24 09:35:38 Normal Pulled Container image "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-v18.9.0" already present on machine
25 09:35:39 Normal Created Created container: helper
26 09:35:39 Normal Started Started container helper
27 09:35:39 Normal Pulling Pulling image "registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56"
28 09:35:39 Normal Pulled Successfully pulled image "registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56" in 826ms (826ms including waiting). Image size: 484588746 bytes.
29 09:35:40 Normal Created Created container: build
30 09:35:40 Normal Started Started container build
31 09:35:42 Running on runner-tc7x7l-mc-project-621-concurrent-0-ldbdmhai via gitlab-runner-linux-2-56dbcbf87d-9c6bn...
32 09:35:42
33 09:35:42 section_end:1777973742:prepare_script
34 09:35:42 +section_start:1777973742:get_sources
35 09:35:42 +Getting source from Git repository
36 09:35:43 Gitaly correlation ID: 01KQVQWC5AEDEP4HP4MWF2W3TY
37 09:35:43 Fetching changes with git depth set to 50...
38 09:35:43 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
39 09:35:43 Created fresh repository.
40 09:35:44 Checking out eea928ac as detached HEAD (ref is refs/merge-requests/637/merge)...
41 09:35:44
42 09:35:44 Skipping Git submodules setup
43 09:35:44
44 09:35:44 section_end:1777973744:get_sources
45 09:35:44 +section_start:1777973744:step_script
46 09:35:44 +Executing "step_script" stage of the job script
47 09:35:45 section_start:1777973745:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
48 09:35:45 rv=$?
49 09:35:45 if [ $rv -ne 0 ]; then
50 09:35:45 echo ""
51 09:35:45 echo " Failure Cause Analysis might help, please open this link:"
52 09:35:45 echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
53 09:35:45 echo ""
54 09:35:45 fi
55 09:35:45 echo ""
56 09:35:45 echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
57 09:35:45 echo ""
58 09:35:45 echo ""
59 09:35:45 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 09:35:45 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 09:35:45 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%7C=%7Cgitlab-runner&var-filters=source%7C%3D%7C${LOKI_LOGSOURCE}&var-filters=namespace%7C%3D%7C${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID%7C%3D%7C${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID%7C%3D%7C${CI_PIPELINE_ID}&var-filters=CI_JOB_ID%7C%3D%7C${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=${EPOCHSECONDS}000"
62 09:35:45 __date_from=$(date -d "@$(( EPOCHSECONDS - 604800 ))" +%Y-%m-%d)
63 09:35:45 __date_to=$(date -d "@$(( EPOCHSECONDS + 604800 ))" +%Y-%m-%d)
64 09:35:45 echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=${__date_from}~${__date_to}&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
65 09:35:45 echo ""
66 09:35:45 exit $rv
67 09:35:45 }
68 09:35:45 trap cleanup EXIT
69 09:35:45 echo "INFO: This is the CI job pre_build_script"
70 09:35:45 echo "INFO: It's defined in the backend/infra/onprem/k8s repo."
71 09:35:45 echo "INFO: These additional Scandit variables are available to you:"
72 09:35:45 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
73 09:35:45 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
74 09:35:45 echo " SC_K8S_KYVERNO_PATCHES: |"
75 09:35:45 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
76 09:35:45 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
77 09:35:45 if command -v numfmt >/dev/null 2>&1; then
78 09:35:45 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
79 09:35:45 else
80 09:35:45 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
81 09:35:45 fi
82 09:35:45 __start_time=${EPOCHSECONDS}
83 09:35:45 echo ""
84 09:35:45 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"
85 09:35:45 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"
86 09:35:45 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%7C%3D%7Cgitlab-runner&var-filters=source%7C%3D%7C${LOKI_LOGSOURCE}&var-filters=namespace%7C%3D%7C${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID%7C%3D%7C${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID%7C%3D%7C${CI_PIPELINE_ID}&var-filters=CI_JOB_ID%7C%3D%7C${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=now"
87 09:35:45 __date_from=$(date -d "@$(( EPOCHSECONDS - 604800 ))" +%Y-%m-%d)
88 09:35:45 __date_to=$(date -d "@$(( EPOCHSECONDS + 604800 ))" +%Y-%m-%d)
89 09:35:45 echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=${__date_from}~${__date_to}&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
90 09:35:45 echo ""
91 09:35:45 echo "Setting up credentials for Gitlab Python registries"
92 09:35:45 mkdir -p ~
93 09:35:45 echo "machine gitlab.scandit.com" > ~/.netrc
94 09:35:45 echo "login gitlab-ci-token" >> ~/.netrc
95 09:35:45 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
96 09:35:45 chmod 600 ~/.netrc
97 09:35:45 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
98 09:35:45 git config --global --add safe.directory $CI_PROJECT_DIR
99 09:35:45 fi
100 09:35:45 sleep infinity &
101 09:35:45 echo $! > ~/.bg_pid
102 09:35:45 section_end:1777973745:section_pre_build_script_0
103 09:35:45 INFO: This is the CI job pre_build_script
104 09:35:45 INFO: It's defined in the backend/infra/onprem/k8s repo.
105 09:35:45 INFO: These additional Scandit variables are available to you:
106 09:35:45 SC_K8S_NODE_NAME: ci5
107 09:35:45 SC_K8S_IMAGE_ID:
108 09:35:45 SC_K8S_KYVERNO_PATCHES: |
109 09:35:45
110 09:35:45 cpu (r/l): 1/8
111 09:35:45 memory (r/l): 1.0GB/16GB
112 09:35:45
113 09:35:45 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci5&var-namespace=gitlab-runner&var-pod=runner-tc7x7l-mc-project-621-concurrent-0-ldbdmhai&var-resolution=15&from=1777973745000&to=now
114 09:35:45 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci5&var-resolution=15s&from=1777973745000&to=now
115 09:35:45 Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group%7C%3D%7Cgitlab-runner&var-filters=source%7C%3D%7Czrh.int.scandit.io&var-filters=namespace%7C%3D%7Cgitlab-runner&var-filters=CI_PROJECT_ID%7C%3D%7C621&var-filters=CI_PIPELINE_ID%7C%3D%7C1578751&var-filters=CI_JOB_ID%7C%3D%7C54380615&sortOrder=Ascending&from=1777973745000&to=now
116 09:35:45 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-04-28~2026-05-12&job_name=pre-commit&project=internal/gitlab-templates
117 09:35:45
118 09:35:45 Setting up credentials for Gitlab Python registries
119 09:35:45 $ rm -f .python-version
120 09:35:45 $ pre-commit run --config $PRE_COMMIT_CONFIG_YAML $PRE_COMMIT_EXTRA_ARGS --all-files
121 09:35:46 check for added large files..............................................Passed
122 09:35:46 check that executables have shebangs.................(no files to check)Skipped
123 09:35:46 check json...............................................................Passed
124 09:35:46 check for merge conflicts................................................Passed
125 09:35:46 check that scripts with shebangs are executable..........................Passed
126 09:35:46 check toml...............................................................Passed
127 09:35:47 check xml............................................(no files to check)Skipped
128 09:35:47 check yaml...............................................................Passed
129 09:35:47 debug statements (python)................................................Passed
130 09:35:47 detect private key.......................................................Passed
131 09:35:47 fix end of files.........................................................Passed
132 09:35:47 fix utf-8 byte order marker..............................................Passed
133 09:35:47 mixed line ending........................................................Passed
134 09:35:48 pretty format json.......................................................Passed
135 09:35:48 sort simple yaml files...............................(no files to check)Skipped
136 09:35:48 trim trailing whitespace.................................................Passed
137 09:35:48 Pretty format INI........................................................Passed
138 09:35:48 Pretty format TOML.......................................................Passed
139 09:35:50 Format YAML files........................................................Passed
140 09:35:50 yamllint.................................................................Passed
141 09:35:51
142 09:35:51 Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54380615
143 09:35:51
144 09:35:51
145 09:35:51 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci5&var-namespace=gitlab-runner&var-pod=runner-tc7x7l-mc-project-621-concurrent-0-ldbdmhai&var-resolution=15&from=1777973745000&to=1777973750000
146 09:35:51 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci5&var-resolution=15s&from=1777973745000&to=1777973750000
147 09:35:51 Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group%7C=%7Cgitlab-runner&var-filters=source%7C%3D%7Czrh.int.scandit.io&var-filters=namespace%7C%3D%7Cgitlab-runner&var-filters=CI_PROJECT_ID%7C%3D%7C621&var-filters=CI_PIPELINE_ID%7C%3D%7C1578751&var-filters=CI_JOB_ID%7C%3D%7C54380615&sortOrder=Ascending&from=1777973745000&to=1777973750000
148 09:35:51 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-04-28~2026-05-12&job_name=pre-commit&project=internal/gitlab-templates
149 09:35:51
150 09:35:51
151 09:35:51 section_end:1777973751:step_script
152 09:35:51 +section_start:1777973751:after_script
153 09:35:51 +Running after_script
154 09:35:51 Running after script...
155 09:35:51 $ git diff > pre-commit.diff
156 09:35:51
157 09:35:51 section_end:1777973751:after_script
158 09:35:51 +section_start:1777973751:cleanup_file_variables
159 09:35:51 +Cleaning up project directory and file based variables
160 09:35:52 Removing pre-commit.diff
161 09:35:52 HEAD is now at eea928a Merge branch 'docs/upgrade-notes-on-prem-image-gc-warning' into 'master'
162 09:35:52
163 09:35:52 section_end:1777973752:cleanup_file_variables
164 09:35:52 +
165 09:35:52 Job succeeded
166