From d6d90f675399bcbeb4dc541dc65dcf380ed865e0 Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Fri, 21 Aug 2026 14:29:12 +0300 Subject: [PATCH] build(python): upgrade pip to 26.2.1 --- .gitlab-ci.yml | 3 ++- Dockerfile | 2 +- Dockerfile.base | 3 ++- MEMORY.md | 1 + structure_and_data.md | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4dec398..5d25674 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,8 @@ test: BELKI_DATABASE_URL: "" BELKI_IDENTITIES_DB: /tmp/belki-test-identities.sqlite3 before_script: - - pip install --no-cache-dir -r requirements.txt + - python -m pip install --no-cache-dir --upgrade "pip==26.2.1" + - python -m pip install --no-cache-dir -r requirements.txt script: - python -m compileall -q app tests - python -m unittest discover -s tests -q diff --git a/Dockerfile b/Dockerfile index 3b98dfc..9539356 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM reg.nyan404.ru/cwshed-clone/belki-base:py312-d375af9a0f80 +FROM reg.nyan404.ru/cwshed-clone/belki-base:py312-d6c42c4497ce COPY app ./app COPY web ./web diff --git a/Dockerfile.base b/Dockerfile.base index 6739a65..cbf8e83 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -7,4 +7,5 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app COPY requirements.txt ./requirements.txt -RUN pip install --no-cache-dir -r requirements.txt +RUN python -m pip install --no-cache-dir --upgrade "pip==26.2.1" \ + && python -m pip install --no-cache-dir -r requirements.txt diff --git a/MEMORY.md b/MEMORY.md index 6b4e15e..856c4ad 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -29,6 +29,7 @@ - 2026-08-21: `/belki` is the single public Belki workspace: both reports and its “Заявки” tab are open without a password. The old `/applications` route remains only as a direct legacy entry point. `/admin` is the only password-protected surface. - 2026-08-21: `/admin` now keeps a server-memory `HttpOnly` cookie session across page refreshes instead of retaining an admin password in the browser. Its authenticated WebSocket sends a refresh signal every 25 seconds; this needs the cwshed Nginx `/api/` Upgrade proxy settings. - 2026-08-21: `img.nyan404.ru` is only the image-host viewer/frontend; Belki uploads must use the image-host API `https://nyan.nyan404.ru`. Upload failures are converted to actionable API errors rather than a generic calculator 500. +- 2026-08-21: Belki Python base image `reg.nyan404.ru/cwshed-clone/belki-base:py312-d6c42c4497ce` pins `pip==26.2.1`; CI upgrades to the same version before installing requirements. # 2026-08-16 — несколько котят в прокачке `CoachingSession.extra_kittens` теперь влияет на баллы сопровождающего через количество подопечных: 1-й ×1, 2-й ×1,5, каждый последующий ×1,15 (коэффициенты перемножаются), вместо сложения полной прибыли. Базовый коэффициент самостоятельности основного котёнка сохраняется. Веб-форма отправляет список `extra_kittens`; VK принимает `доп. котята: ...` в pipe-команде. diff --git a/structure_and_data.md b/structure_and_data.md index 0c6589d..a73bdec 100644 --- a/structure_and_data.md +++ b/structure_and_data.md @@ -16,7 +16,7 @@ ## Runtime / Deployment - 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=""`. -- Runtime dependency layers are prebuilt and stored in the private registry: `reg.nyan404.ru/cwshed-clone/belki-base:py312-d375af9a0f80` contains Python 3.12 plus the current `requirements.txt`; `reg.nyan404.ru/cwshed/cwshed-base:nginx-c2431df29ccc` contains Nginx plus `nginx.conf`. Adding, removing, or updating a runtime dependency requires rebuilding/pushing and retagging the matching base image before CI; ordinary CI builds only copy application or static files. +- Runtime dependency layers are prebuilt and stored in the private registry: `reg.nyan404.ru/cwshed-clone/belki-base:py312-d6c42c4497ce` contains Python 3.12, `pip 26.2.1`, and the current `requirements.txt`; `reg.nyan404.ru/cwshed/cwshed-base:nginx-c2431df29ccc` contains Nginx plus `nginx.conf`. Adding, removing, or updating a runtime dependency requires rebuilding/pushing and retagging the matching base image before CI; ordinary CI builds only copy application or static files. - The `ryzen-runner-dind` service on `root@10.3.1.168` has a valid Runner registration and its helper container can reach `https://git.nyan404.ru/`. On 2026-08-21 its malformed `DOCKER_AUTH_CONFIG` was removed and the pre-change configuration was backed up on the host as `/etc/gitlab-runner/config.toml.bak-20260821-1334`. - 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.