Commit eaef3da
Assert the resolved URL, not the dial, in the Avahi discovery check
The first CI run showed the discovery half working and the check failing
anyway. `-s mdns:<name>` filters on the TXT `name` record rather than the
instance label, and avahi-publish was given only the REQUIRED `path`, so
select_server() matched nothing and no dial was ever logged -- while the
line that matters was there all along:
I discovery: found server "..." (name: <unnamed>) at ws://10.1.0.147:8927/sendspin
That line is the better assertion as well as the passing one. It is
emitted the moment discovered_server_url() succeeds, which cannot happen
with an empty address list, which only DNSServiceQueryRecord fills -- so
it pins the compat-layer claim directly, where the dial only pinned it via
RetryPacer's schedule. The published service now carries a `name` record
too, so the -s filter is exercised rather than silently matching nothing.
The tree also stops claiming three things this makes untrue: that the
Linux dns_sd path has only been read (item 5 and the mdns_dnssd.cpp
header), that `main` does not compile on Linux (item 6), and that the
Linux dual-backend configuration is unbuilt (item 4). Item 4's is narrowed
rather than dropped -- the matrix builds that configuration and asserts
the backend list, but nothing has run `-l` or heard ALSA on Linux.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 9566b3b commit eaef3da
3 files changed
Lines changed: 28 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
| |||
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
| 237 | + | |
231 | 238 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 239 | + | |
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
238 | 243 | | |
239 | | - | |
240 | | - | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments