tools, instructions: Abhängigkeiten festgeschrieben - Lock-Dateien mit Hashes und 7 Tagen Abkühlzeit, Preflight-Stempel über das Lock, pip-audit und frische Auflösung im Nightly; Python 3.13-3.14 als zugelassene Spanne, CI auf beiden Enden (#245); 11.0.0-beta.1
CI / verify (push) Successful in 8m47s
CI / pwsh (push) Successful in 3m13s
CI / python314 (push) Successful in 5m35s
Converters / converters (push) Successful in 9m49s
Release / converters (push) Successful in 26s
Release / release (push) Successful in 39s
Release / wiki-mirror (push) Skipped
CI / verify (push) Successful in 8m47s
CI / pwsh (push) Successful in 3m13s
CI / python314 (push) Successful in 5m35s
Converters / converters (push) Successful in 9m49s
Release / converters (push) Successful in 26s
Release / release (push) Successful in 39s
Release / wiki-mirror (push) Skipped
Files changed: - .gitea/workflows/ci.yml - .gitea/workflows/converters.yml - .gitea/workflows/nightly.yml - .gitea/workflows/release.yml - .gitea/workflows/tracker-live.yml - CHANGES.md - INSTALL.md - VERSION - docs/dev/development.md - docs/how-to/set-up-the-mcp-server.md - instructions/dev/dependency-locks.md - instructions/dev/publish-and-ci.md - instructions/dev/stack-mode.md - instructions/dev/tracker-testing.md - instructions/mcp-read-server.md - instructions/preflight.md - tools/CONTRACT.md - tools/README.md - tools/chemenu/commands/dist_cmd.py - tools/chemenu/commands/doctor.py - tools/chemenu/install_doc.py - tools/chemenu/prerequisites.py - tools/chemenu/tests/test_dependency_locks.py - tools/chemenu/tests/test_dist_cmd.py - tools/chemenu/tests/test_doctor.py - tools/chemenu/tests/test_install_doc.py - tools/chemenu/tests/test_preflight.py - tools/chemenu/tests/test_preflight_pwsh.py - tools/lock_requirements.py - tools/preflight.ps1 - tools/preflight.sh - tools/prerequisites.txt - tools/requirements-browser.lock - tools/requirements-browser.txt - tools/requirements-dev.lock - tools/requirements-dev.txt - tools/requirements-mcp.lock - tools/requirements-mcp.txt - tools/requirements.lock - tools/requirements.txt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015uxGFdBAmyA23g1isCtGEY
This commit is contained in:
1 parent
0fce67e6b9
commit
37070ffae2
40 files changed
+3472
-159
No files matched your search
+59
-11
@@ -9,13 +9,21 @@
|
||||
# (`pwsh-ci-image.yml`). It runs on Linux, so what only a Windows machine can
|
||||
# answer - the registry, the Store alias, a real Mark of the Web - is covered by
|
||||
# the environment hooks `tools/preflight.ps1` documents, not by this job.
|
||||
# `python314` is the other end of the Python span tools/prerequisites.txt admits
|
||||
# (Gitea #245): `verify` runs the suite on 3.13, this job on 3.14 - what is
|
||||
# admitted is exactly what is checked here.
|
||||
#
|
||||
# Every package comes from a lock under tools/, installed with --require-hashes:
|
||||
# the stack's own (through the preflight), the MCP server's, and the test tools'
|
||||
# in requirements-dev.lock. Nothing is installed by name, so no run takes whatever
|
||||
# was published that morning (Gitea #243, #245).
|
||||
#
|
||||
# Runner: `linux-docker` is one of this Gitea instance's three routing labels
|
||||
# (alongside `container-builder` and `k3s-deploy`). The job image is named
|
||||
# explicitly rather than inherited from the runner's label mapping, which is
|
||||
# not documented anywhere: `debian:trixie-slim` is the base the instance's
|
||||
# container-build workflows already use, and Trixie's python3 is 3.13, past
|
||||
# the 3.11 floor `doctor` enforces.
|
||||
# container-build workflows already use, and Trixie's python3 is 3.13, the
|
||||
# lower end of the span tools/prerequisites.txt admits.
|
||||
#
|
||||
# Pinning that image makes `nodejs` this workflow's own responsibility.
|
||||
# `actions/checkout` is a JavaScript action, and act_runner runs it with `node`
|
||||
@@ -111,15 +119,14 @@ jobs:
|
||||
cp .wikitool-tools.json /tmp/tools-first.json
|
||||
tools/preflight.sh > /tmp/preflight-second.txt
|
||||
cmp .wikitool-tools.json /tmp/tools-first.json
|
||||
# pytest-cov is CI-only: tools/requirements.txt describes what an
|
||||
# *instance* needs at runtime and ships with `dist export`, and an
|
||||
# instance does not measure this suite. Installed beside pytest for
|
||||
# the same reason pytest itself is.
|
||||
tools/.venv/bin/python -m pip install --quiet pytest pytest-cov
|
||||
# The MCP server's dependency is optional for an instance but not for
|
||||
# CI: its tests skip without it, and a skipped golden test is exactly
|
||||
# how the server's output and the CLI's would drift apart unnoticed.
|
||||
tools/.venv/bin/python -m pip install --quiet -r tools/requirements-mcp.txt
|
||||
tools/.venv/bin/python -m pip install --quiet --require-hashes -r tools/requirements-mcp.lock
|
||||
# The test tools - pytest, pytest-cov, radicale - are dev-only:
|
||||
# tools/requirements.txt describes what an *instance* needs at runtime
|
||||
# and ships with `dist export`, and an instance does not run this suite.
|
||||
tools/.venv/bin/python -m pip install --quiet --require-hashes -r tools/requirements-dev.lock
|
||||
|
||||
- name: Tests
|
||||
# Not run with WIKI_TRACE=0: two telemetry tests assert that a trace is
|
||||
@@ -180,10 +187,10 @@ jobs:
|
||||
|
||||
- name: Start Radicale
|
||||
# Its own step because the script hands the server's address to the suite through
|
||||
# $GITHUB_ENV, which only reaches the steps after the one that wrote it.
|
||||
# $GITHUB_ENV, which only reaches the steps after the one that wrote it. Radicale
|
||||
# itself came in with requirements-dev.lock above.
|
||||
run: |
|
||||
set -eu
|
||||
tools/.venv/bin/python -m pip install --quiet radicale
|
||||
.gitea/scripts/start-radicale.sh tools/.venv/bin/python /tmp/radicale
|
||||
|
||||
- name: Live tracker suite (CalDAV)
|
||||
@@ -420,7 +427,7 @@ jobs:
|
||||
rm .wikitool-tools.json
|
||||
tools/preflight.sh
|
||||
cmp .wikitool-tools.json /tmp/tools-pwsh.json
|
||||
tools/.venv/bin/python -m pip install --quiet pytest
|
||||
tools/.venv/bin/python -m pip install --quiet --require-hashes -r tools/requirements-dev.lock
|
||||
|
||||
- name: The launcher, started from PowerShell
|
||||
# `tools/wikitool` from pwsh resolves to wikitool.ps1, not the sh launcher - the one
|
||||
@@ -436,3 +443,44 @@ jobs:
|
||||
set -eu
|
||||
cd tools
|
||||
.venv/bin/python -m pytest -q chemenu/tests/test_preflight_pwsh.py chemenu/tests/test_preflight.py chemenu/tests/test_doctor.py chemenu/tests/test_bugreport_launcher.py
|
||||
|
||||
python314:
|
||||
# The suite on the upper end of the Python span (Gitea #245). The official Python image
|
||||
# on the same Debian base as `verify`, so the one difference between the two jobs is the
|
||||
# interpreter: its python3 is 3.14, which the preflight finds and builds tools/.venv on.
|
||||
# Only the suite - the distribution replay, the version gate and the live steps answer
|
||||
# questions that do not depend on the Python minor, and the one runner works through
|
||||
# the jobs of a push one after another.
|
||||
runs-on: linux-docker
|
||||
container:
|
||||
image: python:3.14-slim-trixie
|
||||
env:
|
||||
WIKITOOL_SESSION_ID: ci-py314-${{ github.run_id }}
|
||||
WIKI_TRACE_DIR: /tmp/wikitool-trace
|
||||
|
||||
steps:
|
||||
- name: System dependencies
|
||||
# `nodejs` for act_runner's checkout action, as in `verify`; no python3 package -
|
||||
# the image's own 3.14 is the point of this job.
|
||||
run: |
|
||||
set -eu
|
||||
apt-get update -qq
|
||||
apt-get install -y --no-install-recommends git nodejs ripgrep ca-certificates
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Tool environment
|
||||
run: |
|
||||
set -eu
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
tools/preflight.sh
|
||||
tools/.venv/bin/python -c 'import sys; assert sys.version_info[:2] == (3, 14), sys.version'
|
||||
tools/.venv/bin/python -m pip install --quiet --require-hashes -r tools/requirements-mcp.lock
|
||||
tools/.venv/bin/python -m pip install --quiet --require-hashes -r tools/requirements-dev.lock
|
||||
|
||||
- name: Tests
|
||||
run: |
|
||||
set -eu
|
||||
cd tools
|
||||
.venv/bin/python -m pytest -q
|
||||
@@ -40,6 +40,7 @@ on:
|
||||
- 'tools/chemenu/tests/test_raw_derive*.py'
|
||||
- 'tools/chemenu/tests/binary_formats.py'
|
||||
- 'tools/requirements.txt'
|
||||
- 'tools/requirements.lock'
|
||||
- '.gitea/workflows/converters.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -76,7 +77,7 @@ jobs:
|
||||
set -eu
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
tools/preflight.sh
|
||||
tools/.venv/bin/python -m pip install --quiet pytest
|
||||
tools/.venv/bin/python -m pip install --quiet --require-hashes -r tools/requirements-dev.lock
|
||||
|
||||
- name: Real documents
|
||||
# `-c pytest.ini` applies the suite's own configuration to a harness that lives outside
|
||||
|
||||
@@ -25,6 +25,15 @@
|
||||
# container, so it is installed before the checkout or the job dies with exit
|
||||
# 127. Do not re-derive this; see the header of ci.yml.
|
||||
#
|
||||
# Two more kinds of drift happen with no commit at all, in the packages the locks under
|
||||
# tools/ pin (Gitea #245), and the last three steps watch them without touching the tree:
|
||||
# a vulnerability published for a pinned version (`pip-audit` against every lock - red
|
||||
# means a security lift is due), and the next regular lift breaking the suite (a fresh
|
||||
# resolution with the same 7-day cooldown, in a venv of its own, and the suite against
|
||||
# it - red means the lift will need more than a new lock). They run even when an
|
||||
# earlier step failed, so a red lint never hides them. The procedure for either answer
|
||||
# is instructions/dev/dependency-locks.md.
|
||||
#
|
||||
# Failure is meant to be visible without opening the Actions page. That is
|
||||
# Gitea's own run notification, not something this workflow builds: a job that
|
||||
# files its own issue needs an Actions token with issue-write and a dedup rule,
|
||||
@@ -100,3 +109,46 @@ jobs:
|
||||
set -eu
|
||||
tools/wikitool sources coverage
|
||||
tools/wikitool migrate status
|
||||
|
||||
- name: Audit tools, in a venv of their own
|
||||
# pip-audit and uv come from the test tools' lock - never into tools/.venv, which
|
||||
# stays exactly what the preflight installed.
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
set -eu
|
||||
python3 -m venv /tmp/audit
|
||||
/tmp/audit/bin/python -m pip install --quiet --require-hashes -r tools/requirements-dev.lock
|
||||
|
||||
- name: No known vulnerability in any lock
|
||||
# --disable-pip audits the pinned versions as written, installing none of them.
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
set -eu
|
||||
/tmp/audit/bin/pip-audit --disable-pip --require-hashes --progress-spinner off \
|
||||
-r tools/requirements.lock -r tools/requirements-mcp.lock \
|
||||
-r tools/requirements-browser.lock -r tools/requirements-dev.lock
|
||||
|
||||
- name: The suite passes against a fresh resolution
|
||||
# What the next regular lift would produce today: every source file resolved again
|
||||
# with the cooldown, written outside the tree, installed into a venv of its own.
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
set -eu
|
||||
PATH="/tmp/audit/bin:$PATH" python3 tools/lock_requirements.py --out /tmp/fresh-locks
|
||||
python3 -m venv /tmp/fresh
|
||||
for lock in requirements requirements-mcp requirements-dev; do
|
||||
/tmp/fresh/bin/python -m pip install --quiet --require-hashes -r "/tmp/fresh-locks/${lock}.lock"
|
||||
done
|
||||
cd tools
|
||||
/tmp/fresh/bin/python -m pytest -q -p no:cacheprovider
|
||||
|
||||
- name: The tree is unchanged
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
set -eu
|
||||
changed=$(git status --porcelain)
|
||||
if [ -n "$changed" ]; then
|
||||
echo "The nightly changed the tree:"
|
||||
printf '%s\n' "$changed"
|
||||
exit 1
|
||||
fi
|
||||
@@ -94,7 +94,7 @@ jobs:
|
||||
set -eu
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
tools/preflight.sh
|
||||
tools/.venv/bin/python -m pip install --quiet pytest
|
||||
tools/.venv/bin/python -m pip install --quiet --require-hashes -r tools/requirements-dev.lock
|
||||
|
||||
- name: Real documents
|
||||
if: steps.version.outputs.skip != 'true'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# The live tracker suite, nightly (Gitea #156): the documented `task` and `review` workflow
|
||||
# against a real Super Productivity and a real CalDAV server, not against fakes.
|
||||
#
|
||||
# `ci.yml` already runs the CalDAV half on every push (Radicale is a pip install). This
|
||||
# `ci.yml` already runs the CalDAV half on every push (Radicale comes from tools/requirements-dev.lock). This
|
||||
# workflow adds the half that needs the desktop app, inside the prebuilt
|
||||
# `chemenu-sp-live` image (`sp-live-image.yml`), and runs both, so one green night covers both
|
||||
# providers.
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
set -eu
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
tools/preflight.sh
|
||||
tools/.venv/bin/python -m pip install --quiet pytest radicale
|
||||
tools/.venv/bin/python -m pip install --quiet --require-hashes -r tools/requirements-dev.lock
|
||||
|
||||
- name: Start Radicale
|
||||
run: .gitea/scripts/start-radicale.sh tools/.venv/bin/python /tmp/radicale
|
||||
|
||||
Reference in new issue
Block a user