docs(brief-28): name the filter trap precisely — file name ≠ suite name
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
The PostsModelTests.swift file holds free-function @Tests AND the PostsModelWriteRailTests suite; the filter matched neither. The devlog row said 'free functions' alone, which undersold it.
This commit is contained in:
1 parent
108075239d
commit
97712fbacb
1 file changed
+1
-1
@@ -115,7 +115,7 @@ path (`repoint(to:)` then `bind`).
|
||||
| Problem | Root Cause | Fix |
|
||||
|---------|------------|-----|
|
||||
| Stale-scan pin's park probe never passed (5 s poll timeout) | `pollUntil` re-evaluates its `where !condition()` per iteration WITHOUT sleeping when true, and `DispatchSemaphore.wait` consumes — two parked scans drained the count in two iterations, the final `#expect(condition())` saw zero | A non-consuming `ParkedFlag` (NSLock box, `@unchecked Sendable`); the park itself is a bounded `release.wait(timeout: .now() + 30)` so a failed test never leaks a parked cooperative thread |
|
||||
| `-only-testing:MuseionTests/PostsModelTests` matched ZERO tests in a filtered run (17 executed, not more) | Those `@Test`s are free functions; MuseionTests/AGENTS.md: "Suite-name filters do not run free functions" — the rail passed only because the sibling filters matched | The mid-pass pin is a `PostsModelWriteRailTests` member and ran in the FULL rail (715); no verification claim was taken from the filtered run for it |
|
||||
| `-only-testing:MuseionTests/PostsModelTests` matched ZERO tests in a filtered run (17 executed, not more) | The filter names a FILE, not a suite: `PostsModelTests.swift` holds free-function `@Test`s (unfilterable by suite) AND the `@Suite("write rail #179") struct PostsModelWriteRailTests`; "PostsModelTests" matches neither, and the rail's zero-match guard stays silent when sibling filters match | Filter by SUITE name (`grep '@Suite(' <file>`), never by file name. The mid-pass pin ran in the FULL rail (715) under its suite; no verification claim was taken from the filtered run for it |
|
||||
| Vanish-path rewrite first tore down the CAPTURED session | `openSessionTargets(id)` reads `session` now while `openSession?.teardown` hit the pre-scan object — a same-id reopen mid-scan would leave the live session armed | `if let open = session, open.targets(postID: id, home: home)` — the original shape (current session), identity-matched |
|
||||
| `swiftlint:disable:next large_tuple` flagged superfluous | The return type sat on the `) ->` line, not the `func` line the `:next` covers | Signature on one line so the tuple starts on the covered line (PostStore.swift:259 precedent) |
|
||||
| A context-fuzzy patch duplicated "The refusal" in a doc comment | The edit span started mid-line | Re-read and re-patched the two lines |
|
||||
|
||||
Reference in new issue
Block a user