mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-17 04:11:35 +00:00
desktop.log stamped each line with an ISO-8601 UTC time in brackets (`[2026-09-28T07:48:19.466Z]`), while agent.log, gui.log and errors.log use Python's local-time asctime (`2026-09-28 13:18:46,062`). Reading one incident across logs/ meant converting clocks by hand, and `hermes logs desktop --since 1h` returned every desktop line, because its timestamp regex expects the Python shape at the start of the line and lines it cannot parse pass the filter. formatLogStamp() now emits the Python shape in local time, and formatDesktopLogLine() puts it first: `2026-09-28 13:18:46,062 [hermes] ...`. The #84405 comment already said the stamp matched the Python convention; now it does.
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
/**
|
|
* The gates' signatures are part of the suite's contract: each must match the
|
|
* exact failing assertion its bug produces and nothing else, or a gate turns
|
|
* an unrelated regression into a silent expected-failure.
|
|
*/
|
|
|
|
import { expect, test } from '@playwright/test'
|
|
|
|
import { gateMatches, KNOWN } from './gates'
|
|
|
|
test('gate signatures match their bug and not neighbouring failures', () => {
|
|
const real =
|
|
'"Update now" hands off to the updater and the app quits for it; the app logged:\n' +
|
|
'2026-09-27 01:19:44,583 [hermes] [updates] state.db pre-flight failed: Python not found. Update cancelled before backend shutdown.'
|
|
|
|
expect(gateMatches(KNOWN.preflightPython, real)).toBe(true)
|
|
|
|
for (const decoy of [
|
|
'[updates] refusing posix hand-off: An update is already running (PID 670, started 2s ago).',
|
|
'[updates] state.db pre-flight failed: database disk image is malformed. Update cancelled before backend shutdown.',
|
|
'[updates] detached update FAILED',
|
|
'Timed out 120000ms waiting for the app to quit for the update hand-off',
|
|
'Python not found'
|
|
]) {
|
|
expect(gateMatches(KNOWN.preflightPython, decoy), decoy).toBe(false)
|
|
}
|
|
})
|