The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore(install-e2e): make the backend-origin mismatch and the composer inspectable
ethernet7d4eab88f1a1
diff --git a/tests-js/scripts/desktop-smoke-process.ts b/tests-js/scripts/desktop-smoke-process.tsindex 2cef4119288..04238633f06 100644--- a/tests-js/scripts/desktop-smoke-process.ts+++ b/tests-js/scripts/desktop-smoke-process.ts@@ -156,7 +156,9 @@ export function assertBackendOrigin(backend: NativeProcess, root: string, originconst importRoot = backend.sourceRoot || backend.cwdif (moduleLaunch && importRoot) {if (fs.realpathSync(importRoot) !== fs.realpathSync(root)) {- throw new Error('Source backend listener imports a different source tree')+ throw new Error('Source backend listener imports a different source tree'+ + ` (cwd=${backend.cwd ?? '(unreadable)'}, HERMES_PYTHON_SRC_ROOT=${backend.sourceRoot ?? '(unset)'},`+ + ` expected=${root}, command=${backend.command})`)}return}diff --git a/tests/install/e2e-assets/desktop-smoke.ts b/tests/install/e2e-assets/desktop-smoke.tsindex a749205e315..4464b17ecf5 100644--- a/tests/install/e2e-assets/desktop-smoke.ts+++ b/tests/install/e2e-assets/desktop-smoke.ts@@ -328,6 +328,10 @@ export async function runInstalledDesktopSmoke(options: SmokeOptions): Promise<v}}const backend = localBackendProcess(Number(base.port), running.pid)+ // Evidence before assertions: the backend's identity must be on disk when+ // assertBackendOrigin fails, or the leg reports a mismatch with nothing to+ // inspect.+ fs.writeFileSync(path.join(out, `desktop-backend-${options.phase}.log`), connection.logs.map(redact).join('\n'))assertBackendOrigin(backend, options.root, options.origin)const provenanceCommit = readInstallationCommit(options.root, options.origin)if (provenanceCommit !== options['expect-commit']) { throw new Error('Installed commit differs from --expect-commit') }