Commit 9fbd478
authored
Fix 218 (#219)
* start new dev branch; add audit file
* Sync wamp-ai/wamp-cicd submodules + bump version to 26.6.1 (#218)
Coordinated WAMP 26.6.1 release-train sync:
- Bump .ai submodule bfb4804 -> 4669dc8 (docs: README/justfile).
- Bump .cicd submodule 08c9305 -> f77ca2b: picks up the GHSA-6658
shell-injection hardening in the shared identifiers.yml reusable
workflow (untrusted event fields passed via env: with a fail-closed
branch-name allowlist), plus release-notes/changelog scripts and the
verified-artifact actions used by #212. identifiers.yml is consumed
via @main, so the fix is already live at runtime; this aligns the
pinned pointer and the local .cicd scripts for reproducibility.
- Bump version 25.12.2 -> 26.6.1 (pyproject.toml, src/txaio/_version.py).
- Add 26.6.1 changelog section.
No caller changes required: the identifiers.yml interface is unchanged
and the workflow structure already matches zlmdb/autobahn-python.
Note: This work was completed with AI assistance (Claude Code).
* Exclude .ai/.cicd submodules from ruff linting (#218)
The .cicd submodule bump (08c9305 -> f77ca2b) added shared scripts,
including .cicd/scripts/git_version.py, which uses a substituted
__git_version__ placeholder that trips ruff F821 ("undefined name").
The check-format recipe runs `ruff check .`, which traversed into the
submodule and failed CI.
These submodules carry their own source with their own linting/CI and
are not txaio source, so exclude them via a top-level [tool.ruff]
extend-exclude (file-discovery exclude; the [tool.ruff.lint] exclude
does not affect traversal). This keeps F821 and the other checks active
for txaio's own code, rather than globally suppressing F821 as a
workaround.
Note: This work was completed with AI assistance (Claude Code).
* Follow latest ty (venv dep) + fix ty invalid-argument-type in tx.py (#218)
The newer ty on CI (0.0.50 vs a stale local 0.0.44) flagged tx.py:297:
globalLogBeginner.beginLoggingTo(_observers) — `list[_LogObserver]` not
assignable to `Iterable[ILogObserver]`. _LogObserver provides ILogObserver
via zope.interface's @Provider, which static checkers cannot follow.
Tooling (mirrors zlmdb so local and CI track the same latest ty):
- Declare `ty>=0.0.44` in the [dev] extra ("follow latest", unpinned) and
run it from the venv (`${VENV_PATH}/bin/ty`) instead of a global install.
- check-typing now depends on install-tools (which provides ty) + install
(which provides twisted stubs).
- Drop the global `uv tool install ty` step (and the `ty --version` check)
from the quality job in main.yml.
Fix:
- Localized `cast(ILogObserver, _observer)` in tx.py, keeping ty's
invalid-argument-type rule active elsewhere (txaio keeps a tighter ignore
set than autobahn/zlmdb, which blanket-ignore this rule).
Verified locally with ty 0.0.50 on cpy311 (twisted installed):
`just check-typing cpy311` -> All checks passed; `ruff check .` clean.
Note: This work was completed with AI assistance (Claude Code).1 parent 6205af2 commit 9fbd478
9 files changed
Lines changed: 46 additions & 14 deletions
File tree
- .audit
- .github/workflows
- docs
- src/txaio
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
- .github/workflows/identifiers.yml+109-41
- README.md+32-2
- SLSA.md+419
- actions/download-artifact-verified/action.yml+95-40
- actions/upload-artifact-verified/action.yml+4
- justfile+12-3
- scripts/download-release-artifacts.sh+148
- scripts/flatc/README.md+43
- scripts/flatc/_flatc.py+112
- scripts/flatc/smoke_test_flatc.py+165
- scripts/generate-release-notes.sh+329
- scripts/git_version.py+44
- scripts/prepare-changelog.sh+213
- templates/README.md+42-56
- templates/pull_request_template.md
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
528 | | - | |
| 527 | + | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
| 545 | + | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
130 | 141 | | |
131 | 142 | | |
132 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
295 | 299 | | |
296 | | - | |
| 300 | + | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
| |||
0 commit comments