Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-matrix-mcp/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 7b1435eaea hive-matrix-mcp: bound each secondary retry, warn once per outage
Three follow-ups to argus's review of #5237:

- A down secondary's retry runs `restore` under RESTORE_TIMEOUT (2 min).
  Tries run one per tick on one future, so a restore that never resolved
  held back every other down account's retries for good; a try that
  outlasts the timeout now counts as a failure like any other.
- `client::build_and_restore` warns about a rejected token only for the
  primary, which exits right after. For a secondary it logs at debug: the
  retry loop already warns once per outage (`DownAccounts::failed` is news
  on the first failure and on a changed reason, and an account that came
  up starts afresh), so the extra warn repeated on every try.
- `a_secondary_that_comes_up_late_does_not_wipe_the_todos` runs the late
  bring-up in a child process of the test binary with HIVE_AGENT_SOCKET
  pointed at the test's listener. In-process the variable was unset, so a
  wipe placed back in the bring-up path was a no-op and the test passed.

New tests: a_second_rejection_in_a_row_does_not_warn_again (captured logs, alone
in a child process since tracing caches callsite interest process-wide;
a stub whoami answering M_UNKNOWN_TOKEN, the real build_and_restore),
a_failure_after_the_account_came_up_is_news_again, and
an_account_whose_restore_hangs_does_not_hold_back_the_others (paused time).
2026-10-15 02:54:09 +02:00
..
accounts.rs hive-matrix-mcp: quieter retries, unique snapshot tmp file, accurate comments 2026-10-14 16:20:04 +02:00
client.rs hive-matrix-mcp: bound each secondary retry, warn once per outage 2026-10-15 02:54:09 +02:00
credential.rs hive-matrix-mcp: quieter retries, unique snapshot tmp file, accurate comments 2026-10-14 16:20:04 +02:00
handlers.rs hive-matrix-mcp: test the retry path and the once-only todo clear 2026-10-14 16:20:04 +02:00
lib.rs hive-matrix-mcp: read the main account's token from the store too 2026-09-25 08:31:01 +02:00
main.rs hive-matrix-mcp: bound each secondary retry, warn once per outage 2026-10-15 02:54:09 +02:00
mcp.rs hive-matrix-mcp: retry a secondary account that failed to come up 2026-10-14 16:20:04 +02:00
paths.rs hive-matrix-mcp: read the main account's token from the store too 2026-09-25 08:31:01 +02:00
protocol.rs matrix: wake and unread-guard on own read receipt, not push-rule count 2026-08-03 17:41:24 +02:00
timeline.rs hive-matrix-mcp: test the retry path and the once-only todo clear 2026-10-14 16:20:04 +02:00
wake.rs hive-matrix-mcp: test the retry path and the once-only todo clear 2026-10-14 16:20:04 +02:00