From 02aeaa715fb5fa1b440625ab227e1028df23d7f1 Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Fri, 21 Aug 2026 13:33:07 +0300 Subject: [PATCH] ci: retry transient source checkout failures --- .gitlab-ci.yml | 3 +++ structure_and_data.md | 1 + 2 files changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ebc938..b3e834e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,9 @@ variables: DOCKER_BUILDKIT: "1" DOCKER_TLS_CERTDIR: "" DOCKER_DRIVER: overlay2 + # The runner fetches the repository before any job script runs. Retry transient + # GitLab connectivity failures at that stage instead of failing the pipeline. + GET_SOURCES_ATTEMPTS: "3" test: stage: test diff --git a/structure_and_data.md b/structure_and_data.md index 2358e8f..0a6b248 100644 --- a/structure_and_data.md +++ b/structure_and_data.md @@ -17,6 +17,7 @@ - GitLab CI runs the build job. - The job targets GitLab runner tag `fast` and builds through a privileged `docker:29.6.1-dind` service at `DOCKER_HOST=tcp://docker:2375`, with an explicit `alias: docker` and `DOCKER_TLS_CERTDIR=""`. - The job waits for the DinD daemon and runs `docker info` before starting the build. +- GitLab Runner retries source checkout up to three times (`GET_SOURCES_ATTEMPTS=3`) to absorb transient connectivity failures before the job script starts. A persistent inability to reach `git.nyan404.ru:443` still requires repair on the selected runner host. - The local image is currently `belki-calculator:test`; the CI target is now `$DOCKER_REGISTRY/belki:latest`. - GitLab CI runs `python -m compileall -q app tests` and `python -m unittest discover -s tests -q` in a dedicated `test` stage before build/deploy. Local validation was performed with the same tests, JavaScript syntax check, a local browser/API smoke test, and container health/API smoke. - The VK dialog layer is covered by tests for step-by-step entry, bulk detection, clarification, confirmation, and cancellation.