Drop remaining test-suite references from topo.md and guard.sh
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
87aeee6f93
commit
5bb415c7bc
2 files changed
+5
-9
No files matched your search
+3
-6
@@ -34,15 +34,13 @@ graph TD
|
||||
App[mwb executable] --> Core
|
||||
App --> Net
|
||||
App --> Mac
|
||||
CT[MWBCoreTests] --> Core
|
||||
NT[MWBNetTests] --> Net
|
||||
```
|
||||
|
||||
Standing promises:
|
||||
|
||||
- `MWBCore ─▶ everyone` (standing promise): imports only `Foundation`
|
||||
and `CommonCrypto`. Enforced by a test in `MWBCoreTests` that greps
|
||||
the target's sources.
|
||||
and `CommonCrypto` (CryptoKit for hashing). Enforced by the layering
|
||||
grep in `tools/gates.sh`.
|
||||
- `MWBNet` and `MWBMac` never import each other. The executable is the
|
||||
only place they meet.
|
||||
- Nothing outside `MWBCore` interprets packet bytes; `MWBNet` hands
|
||||
@@ -74,8 +72,7 @@ Standing promises:
|
||||
| `Pasteboard.swift` | clipboard-inband | |
|
||||
| `StatusItem.swift` | menubar-app | |
|
||||
|
||||
`MWBNet/Placeholder.swift` is deleted by control-channel;
|
||||
`Tests/MWBNetTests/PlaceholderTests.swift` likewise.
|
||||
`MWBNet/Placeholder.swift` is deleted by control-channel.
|
||||
|
||||
Tooling (`tools/`, `Package.swift`, `.swift-format`, `Resources/`) is the
|
||||
lead's; a lane needing a change there files a Handshake request.
|
||||
|
||||
+2
-3
@@ -2,15 +2,14 @@
|
||||
# Run a command under a memory and wall-clock guard.
|
||||
#
|
||||
# Usage: tools/guard.sh [-m MAX_GB] [-t MAX_SECONDS] -- <command...>
|
||||
# tools/guard.sh -m 8 -t 900 -- swift test
|
||||
# tools/guard.sh -m 8 -t 900 -- swift build -c release
|
||||
#
|
||||
# Every second the resident set of the command's whole process tree is
|
||||
# summed; if it exceeds MAX_GB (default 8) or the clock exceeds MAX_SECONDS
|
||||
# (default 1800) the tree is killed (TERM, then KILL) and the script exits
|
||||
# 137 with a line saying why. Inherited from the lucisv repo, where a runaway
|
||||
# test once consumed 100 GB and took the machine down (2026-09-03): agents
|
||||
# run every `swift test`, fuzzer, soak test and two-process loopback run
|
||||
# through this.
|
||||
# run any long or uncertain command (build sweeps, soaks) through this.
|
||||
#
|
||||
# macOS has no enforced `ulimit -v`, so the guard is a poller, not a cap:
|
||||
# a process that allocates faster than one second's worth of headroom can
|
||||
|
||||
Reference in new issue
Block a user