Commit fe49d8d
committed
chore(dev): let the test tasks take paths and record two harness landmines
`server:test:unit` and `e2e:test:e2e` hardcoded `./...` while AGENTS.md
documented a `paths` var they never read, and the e2e task documented
`focusFilter`/`labelFilter` it never passed to ginkgo either. A scoped server
run now takes 4s instead of 1m50s, so the documented way to target a package
finally exists; `server:test:ai` takes the same var.
The two landmines cost a wasted step and a failed test in this session:
namespaced task targets exist only in the root Taskfile, and
`logboek.Context()` special-cases exactly `context.Background()` while any
derived context without a bound logger panics.
`test-the-tests` gains the mutation hazard an independent review hit here: a
test whose only barrier before a real daemon is a validation error inside the
code being mutated provisions real infrastructure the moment that validation is
inverted, and hangs instead of failing when nothing drains its output.
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>1 parent e2136e6 commit fe49d8d
4 files changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
| 326 | + | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | | - | |
333 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
334 | 337 | | |
335 | 338 | | |
336 | 339 | | |
| |||
0 commit comments