Commit Graph

19 Commits

Author SHA1 Message Date
Teknium
b1ccce898b Merge origin/main (#38: 70 commits to c57331677d) into feat/unified-gateway-runtime
Conflicts: tests/hermes_cli/test_finite_chat_delegation.py and
tests/tools/test_completed_process_results.py, where main's lint sweep (0006a5e229) added
check=False to subprocess.run calls this branch had rewritten. Kept the branch's test bodies
and carried check=False onto their subprocess.run calls.
2026-10-10 17:47:35 -07:00
Maciej Lisiewski
0006a5e229 ci: fix PLW1509, PLW1510, PLW2101 linter errors 2026-10-10 15:20:13 +02:00
Teknium
408cc0d12e Merge origin/main (#32: 36 commits to cf23a1a5cc) into feat/unified-gateway-runtime
17 conflicts, all from main's lint sweep (ruff UP007/UP017/UP022/UP028/UP031/UP037/UP041,
FURB188/FURB192); no other main commit touches a conflicted file. Resolution: the branch side
of each file plus main's exact autofix (ruff 0.15.10, main's ruff.strict.toml, --fix
--unsafe-fixes). ruff.strict.toml takes main's copy. The pool-retirement live fixture stays
deleted with the pooled backend this branch retires.
2026-10-09 10:24:04 -07:00
Maciej Lisiewski
2ff58849f4 ci: ruff UP037 fixes 2026-10-09 17:34:38 +02:00
Teknium
65bec86e37 Merge origin/main (#27: 19 commits to 517b5e10fe) into feat/unified-gateway-runtime
45 conflicts, all from #135177 (lefthook + `ruff check --fix` over 2,366 files). No other main commit
touches a conflicted file. Resolution: the branch side of each file, then main's exact autofix
(ruff 0.15.10, `--config ./ruff.strict.toml --fix`) on it — rewrites only (typing generics, noqa
drops, import forms), no import removed. tests/cron/test_bot_chat_cli_home.py stays deleted
(1cc9cb9199 retired its lane).
2026-10-08 12:09:24 -07:00
Maciej Lisiewski
d76cce4f11 ci: apply all automatic linter fixes available 2026-10-08 17:22:54 +02:00
teknium1
534255de98 test(windows-e2e): stop the gateway a prompt auto-started for each home
Under the attach model a hermes turn starts the profile's daemon, which outlives the turn;
the Windows lane has no sandbox reaper, so its job-level leftover sweep failed on those
gateways. Each home made by a test gets a graceful gateway stop, then the lane's
ownership-based kill as the backstop.
2026-09-27 04:06:18 -07:00
teknium1
c6dc7ab120 Merge remote-tracking branch 'origin/main' into feat/unified-gateway-runtime
Merge #8: 2,771 commits from main (4b05f764fa). Ports main's moved code into the
unified runtime (run.py/run_turn.py splits, tui_gateway server, backup/restore
split), keeps the detached-daemon Desktop lifecycle, and adapts main's new tests
to the owner/authority contracts (canonical session deletes, retired-id
tombstones, zero-writer browsing, hermes_yaml, platforms() markers).
2026-09-27 02:30:04 -07:00
teknium1
d02a9c1e20 test: align suites with the unified runtime contracts
- oauth rig becomes subreaper so the daemon a child spawns stays killable in-tree.
- vertex: one daemon process mints one bearer across the resumed turn.
- cron run exits 1 on a synchronous job failure (both codes carry the output).
- fallback #120608 pin matches the error, not the in-process "agent failed:" copy.
- config roundtrip, gateway_chat, TUI interrupt (#61520 tail segment) and a
  desktop lint reorder follow current main.
2026-09-27 00:49:29 -07:00
ethernet
8bef97fa16 Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-24 10:42:43 -04:00
teknium1
09d62097a3 test: make E2E known-bug pins merge-order safe 2026-09-24 07:12:17 -07:00
teknium1
aa8a33d22d test: classic-CLI E2Es type only into a live composer and leave the Enter real time
Root cause of the CI-only reds of test_resizes_keep_each_transcript_line_once_in_tmux_scrollback
("'t1w059' never appeared", provider saw 0 requests): the test typed its first question two
seconds after "Welcome to Hermes", but that line is printed before prompt_toolkit's app starts.
On a starved runner the app was not yet up, so the keys landed in the still-cooked tty: the
kernel echoed them (the plain "question zq1q please" row above the status bar), the echo
satisfied wait_for(question), and the later Enter completed the line in the kernel buffer. When
the app took raw mode it read text + Enter in one batch, and the rapid-input guard (#10994)
kept the Enter as a pasted newline: the question sat unsent in a two-line draft, "ctx --".

- Wait for the app-painted status bar before typing, and for the question on the "❯" composer
  row (the app's own render, never the tty echo) before the Enter.
- The Windows ConPTY composer test wrote "\r" the instant the echo painted, inside the same
  50 ms rapid-input window: give the Enter 0.5 s after the last typed key.
- Keep remain-on-exit so the SIGABRT faulthandler dump of the diagnostics stays readable.

Reproduced locally by delaying CLI startup 3 s after the welcome line: the pre-fix harness
fails with the exact CI screen and main=0; the fixed harness passes. No network is on the
turn path: every outbound call (update check -> api.github.com, tirith install -> GitHub
releases) runs on a daemon thread; black-holing all non-loopback DNS leaves the first turn
at 1.4 s (tmux) / 2.7 s (chat -q).
2026-09-24 06:58:07 -07:00
ethernet
e151c42166 test: wait for classic composer to settle before ConPTY submit 2026-09-24 09:38:27 -04:00
ethernet
8eb20a50ae Merge remote-tracking branch 'origin/main' into ethie/pm-clean
# Conflicts:
#	agent/learning_graph.py
#	hermes_cli/backup.py
#	tests/hermes_cli/test_backup.py
#	tests/hermes_cli/test_doctor_journal_modes.py
#	tests/hermes_cli/test_sessions_set_journal_mode.py
2026-09-24 08:51:52 -04:00
kshitijk4poor
a8a549ebb4 test(e2e): #120205 is fixed; drop the strict known-failure marker on the Windows state-db guard
CI's Windows E2E job XPASSed (strict) on this branch: the write guard now
refuses while a live gateway holds state.db.
2026-09-24 18:08:24 +05:30
ethernet
b91d1c931e test(e2e): exercise Windows source launcher under PM test environment 2026-09-24 08:24:42 -04:00
ethernet
090dd24638 test(e2e): use PM YAML and current Windows platform marker 2026-09-24 07:47:21 -04:00
teknium1
0616f72049 test(windows-e2e): find serve/gateway orphans by profile ownership, not ancestry
The serve tree-kill test snapshotted process_tree(first.pid) and then
checked that same tree after `taskkill /T /F` - the snapshot is exactly
what taskkill /T kills, so the check could not fail. Windows never
re-parents: a grandchild spawned detached (cmd /c start /b ...) keeps a
dangling ppid and is invisible to both Process.children() and
taskkill /T. Reviewer sabotage (web_server spawns two detached sleepers
before READY) passed while both orphans survived.

Survivors are now every live process created since the spawn whose
HERMES_HOME, cwd or argv points into the test's scratch profile
(owned_processes), with a positive control that the scan sees the
backend itself before the kill. Same check for gateway stop. Cleanup
kills everything the profile owns.

Also: state-db guard matches the holder PID as a whole number, and the
e2e-windows job ends with a scan that fails on any python.exe /
hermes.exe left running.
2026-09-24 04:25:48 -07:00
teknium1
8c44895e7b test: native Windows E2E suite on real Hermes processes (e2e-windows job)
Adds tests/e2e/core/windows (windows_only + integration; 18 tests, 5 strict-xfail KNOWN
entries for #120504 #121150 #121015 #121114 #120205) and an e2e-windows job in
tests-os.yml running it on windows-latest, one pytest process per file, no retries.
2026-09-24 04:25:48 -07:00