mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
ci: require mapped model actions in spec traces
This commit is contained in:
1 parent
6ed99b411b
commit
aedd3002bd
8 files changed
+204
-32
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
# Model citations for mapped files
|
||||
|
||||
The spec-trace workflow reads `model-code-trace.tsv` and the validator from
|
||||
the target branch. A PR cannot replace its own mapping or checker.
|
||||
|
||||
Each non-comment line has two tab-separated columns: an exact repository
|
||||
path and `Module.Action`. Repeat a path to list alternative actions that
|
||||
cover it. Paths are case-sensitive; directories and glob patterns are not
|
||||
expanded. Missing, empty or malformed mappings refuse the check.
|
||||
|
||||
For every changed mapped path, including deletions, the PR's `Model:` line
|
||||
must contain a listed action or `NONE (pure function of Module)` for that
|
||||
module. Separate multiple citations with semicolons, for example:
|
||||
|
||||
```text
|
||||
Model: Snapshot.Begin; Lease.Renew; NONE (pure function of Codec)
|
||||
```
|
||||
|
||||
Unmapped paths keep the existing spec-trace policy. The pure-function
|
||||
declaration is a review claim; CI checks its module, not its truth.
|
||||
|
||||
This branch is a trial. Populate the canonical mapping and run the complete
|
||||
shell self-test on Linux before enabling it by merging the workflow.
|
||||
Reference in new issue
Block a user