ci: retry transient source checkout failures

This commit is contained in:
nyan404 committed 2026-08-21 13:33:07 +03:00
1 parent 9022d3b06a
commit 02aeaa715f
2 files changed
+4

No files matched your search

+3
View File
@@ -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
+1
View File
@@ -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.