Repository navigation
Commit f187cfe
committed
fix(s001): the CI serve step curled the heartbeat port, and the heartbeat fired
Run 34080826739 answered the Windows question and the answer supersedes a claim I have made
five times.
**Defect 10.** `grep -o '127.0.0.1:[0-9]*' | head -1` takes the first loopback address in
serve.log. On Windows that is ExTauri.ShutdownManager's heartbeat socket, not the endpoint:
the module selects a Unix domain socket on macOS and Linux and TCP on Windows, because the
BEAM cannot listen on a Unix socket there. The two runners that passed printed no loopback
line before the endpoint's, so head -1 was right by luck. Now matches the endpoint line.
**The heartbeat fired.**
[warning] [ExTauri.ShutdownManager] Heartbeat timeout (1824ms) - Tauri frontend appears to
have exited
1824 ms, well inside AC8's 5 s bound. I have written in NOTES.md, in PROOF.md under AC8, in
the Answer on the F1 issue and in the G3 record that the heartbeat has never been observed to
fire. That is now false. Earlier measurements missed it because the dev path killed the
sidecar in ~15 ms by a faster route and the production-shape runs never armed it.
My own curl armed it: connecting to the heartbeat port is a frontend connection as far as the
ShutdownManager can tell. So 'Windows does not serve' would also have been wrong — the app was
serving and shut down because I connected to its shutdown channel.
**Follow-up F2**, recorded not fixed: on Windows the heartbeat is an unauthenticated loopback
TCP port whose number is written to a file for discovery. Any local process that connects and
disconnects shuts Trinity down — a stray curl did it by accident. Design question for slice
100 alongside F1; macOS and Linux use a Unix socket with filesystem permissions.
mix gate exit=0.
Signed-off-by: Ayla Croft <aylacroft@proton.me>1 parent f95ca4d commit f187cfe
2 files changed
Lines changed: 84 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
207 | 217 | | |
208 | | - | |
| 218 | + | |
| 219 | + | |
209 | 220 | | |
210 | 221 | | |
211 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1521 | 1521 | | |
1522 | 1522 | | |
1523 | 1523 | | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
0 commit comments