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
+25
-8
@@ -27,11 +27,23 @@ pwsh -NoProfile -ExecutionPolicy Bypass -File tools/preflight.ps1 # PowerShell
|
||||
|
||||
The preflight is the one way a checkout gets its environment: it checks the
|
||||
tools listed in `prerequisites.txt`, records their absolute paths in
|
||||
`../.wikitool-tools.json`, creates `.venv` and installs `requirements.txt` into
|
||||
it with `-m pip`. It is POSIX sh because it has to run before Python is known
|
||||
`../.wikitool-tools.json`, creates `.venv` and installs `requirements.lock` into
|
||||
it with `-m pip --require-hashes`. It is POSIX sh because it has to run before Python is known
|
||||
to exist; exit 42 means the user has to act, and its output says how. The
|
||||
procedure an agent follows around it is `instructions/preflight.md`.
|
||||
|
||||
Python is admitted in a span, both ends in `prerequisites.txt` (3.13 to 3.14): what CI checks
|
||||
is exactly what the preflight and `doctor` accept. A `.venv` built on a Python outside it is
|
||||
built again on the one the preflight found.
|
||||
|
||||
Every `requirements*.txt` holds lower bounds only and is never installed itself. Beside each
|
||||
sits a `.lock` with exact versions and SHA-256 hashes for everything it resolves to, written
|
||||
from it with a 7-day cooldown on new releases; the preflight stamps the lock's hash into
|
||||
`.venv/.chemenu-requirements.sha256` and installs it again whenever it changes, so an
|
||||
instance follows the lock of the stack it runs, up or down. The three locks resolve against
|
||||
each other, so a package that sits in two has one version. They are written in the origin
|
||||
repository, never by hand.
|
||||
|
||||
Each release also attaches `preflight.sh` and `preflight.ps1` as assets, for the first install
|
||||
before any tree exists. `release.yml` writes the download address of that same release into two
|
||||
placeholder lines of the copy (`RELEASE_ARCHIVE_URL`/`RELEASE_CHECKSUM_URL` in the shell script,
|
||||
@@ -74,7 +86,7 @@ but are imported only when a PDF or an Outlook `.msg` is derived, so a missing o
|
||||
that format alone; `doctor` reports each.
|
||||
|
||||
Playwright is the one package that is not in `requirements.txt`: it sits in
|
||||
`requirements-browser.txt`, which the preflight installs - together with the Chromium it
|
||||
`requirements-browser.txt` (installed from its lock), which the preflight installs - together with the Chromium it
|
||||
drives, into `.venv/ms-playwright` - only when the user runs it with `--with browser`, and
|
||||
keeps up to date from then on (`.venv/.chemenu-browser.sha256` remembers the choice). Only
|
||||
`raw login` and a page a site handler declares `render` need it; `browser.py` imports it
|
||||
@@ -288,7 +300,13 @@ ignoring generated copies.
|
||||
|
||||
The suite exists in the origin repository only: `dist export` leaves out `chemenu/tests/`,
|
||||
`pytest.ini` and `.coveragerc`, because the suite tests that repository's own type-specs and
|
||||
conventions, not an instance's.
|
||||
conventions, not an instance's. The same goes for the test tools - `requirements-dev.txt` and
|
||||
its lock (pytest, pytest-cov, radicale, pip-audit, uv) - and `lock_requirements.py`, which
|
||||
writes every lock; `instructions/dev/dependency-locks.md` has the procedure.
|
||||
|
||||
```bash
|
||||
.venv/bin/python -m pip install --require-hashes -r requirements-dev.lock # one time
|
||||
```
|
||||
|
||||
```bash
|
||||
cd tools && .venv/bin/python -m pytest -q
|
||||
@@ -300,13 +318,12 @@ cd tools && .venv/bin/python -m pytest -q
|
||||
Coverage is optional locally and measured on every CI run:
|
||||
|
||||
```bash
|
||||
.venv/bin/pip install pytest-cov # one time, CI-only dependency
|
||||
.venv/bin/python -m pytest -q --cov
|
||||
```
|
||||
|
||||
`pytest-cov` is deliberately not in `requirements.txt`: that file is what an *instance*
|
||||
needs at runtime and ships with `dist export`, and an instance does not measure this
|
||||
suite. Configuration is `.coveragerc` (coverage.py does not read `pytest.ini`), which
|
||||
`pytest-cov` is deliberately not in `requirements.txt` but in `requirements-dev.txt`: the
|
||||
first is what an *instance* needs at runtime and ships with `dist export`, and an instance
|
||||
does not measure this suite. Configuration is `.coveragerc` (coverage.py does not read `pytest.ini`), which
|
||||
measures `chemenu/` without `chemenu/tests/` and sets no threshold - the origin repository's developer guide, `docs/dev/development.md`
|
||||
§ "How much of the stack the suite reaches", has the measured number and how to read it.
|
||||
|
||||
|
||||
Reference in new issue
Block a user