fix: stabilize memory dreaming QA

This commit is contained in:
Peter Steinberger
2026-04-21 03:11:31 +01:00
parent a9bef83a0c
commit 8150c363b5
5 changed files with 155 additions and 12 deletions

View File

@@ -249,7 +249,7 @@ steps:
afterTs:
ref: cronRunStartedAt
timeoutMs:
expr: liveTurnTimeoutMs(env, 90000)
expr: liveTurnTimeoutMs(env, 180000)
- assert:
expr: "finishedRun.status === 'ok'"
message:
@@ -260,7 +260,7 @@ steps:
- lambda:
async: true
expr: "(async () => { const status = await readDoctorMemoryStatus(env); const lightReport = await fs.readFile(lightReportPath, 'utf8').catch(() => ''); const remReport = await fs.readFile(remReportPath, 'utf8').catch(() => ''); const promotedMemory = await fs.readFile(memoryPath, 'utf8').catch(() => ''); if (!lightReport.includes('# Light Sleep')) return undefined; if (!remReport.includes('# REM Sleep')) return undefined; if (!promotedMemory.includes(config.expectedNeedle)) return undefined; if (status.dreaming?.phases?.deep?.managedCronPresent !== true) return undefined; if ((status.dreaming?.promotedTotal ?? 0) < 1) return undefined; return { status, lightReport, remReport, promotedMemory }; })()"
- expr: liveTurnTimeoutMs(env, 90000)
- expr: liveTurnTimeoutMs(env, 180000)
- 1000
finally:
- call: patchConfig