[GH-ISSUE #1816] [Issue]: Long-Term Memory package browser regression fails intermittently (recall weights reset, Debug activity search) #1769

Closed
opened 2026-11-07 16:36:33 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1816

Originally assigned to: @Promansis on GitHub.

Summary

The Long-Term Memory package browser workflow fails intermittently. On one commit it failed at two different assertions, in two different features, neither of which that commit changed.

Affected package

long-term-memory (the CI browser regression, tests/long-term-memory-browser.regression.ts)

Expected behavior

The same commit gives the same result on every run of the browser regression.

Actual behavior

PR #1815 (head 85f5d844e, which only changed the "Other Agents can read memories" table and the 1.5.7 release files) ran the workflow three times. tests/long-term-memory-browser.regression.ts was identical to staging, and it never mentions the readers table.

The Long-Term Memory package regressions job passed on the same commit every time.

Steps to reproduce

  1. Open a PR that touches packages/long-term-memory.
  2. Let Long-Term Memory Package Browser run, then use "Re-run failed jobs".
  3. The failing assertion changes between runs on the same commit.

I did not reproduce either failure locally; the local runs for #1805 skipped the browser suite.

Environment

  • Marinara Engine version: Engine checkout built in CI (MARINARA_ENGINE_ROOT=$GITHUB_WORKSPACE/engine)
  • Package version: long-term-memory 1.5.7 (head 85f5d844e)
  • Install type: other (GitHub Actions)
  • OS + version: GitHub-hosted Linux runner
  • Browser or app shell: Playwright Chrome Headless Shell 156.0.8078.4

Logs, screenshots, or video

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
'0.105' !== '0.7'
    at tests/long-term-memory-browser.regression.ts:4976:16
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
1 !== 0
    at assertDebugActivity (tests/long-term-memory-browser.regression.ts:3789:16)
    at async openDebugActivity (tests/long-term-memory-browser.regression.ts:4409:9)

Additional context

Both look like the test asserting after a fixed delay or a single waitFor instead of waiting for the result. A likely fix is to use web-first retrying assertions (for example expect(...).toHaveValue and toHaveCount(0)), or to poll until the expected state with a clear timeout. The root cause is not confirmed; both are my reading of the test code, not measured.

PR #1815 merged anyway because the workflow is not a required check.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1816 Originally assigned to: @Promansis on GitHub. ## Summary The `Long-Term Memory package browser` workflow fails intermittently. On one commit it failed at two different assertions, in two different features, neither of which that commit changed. ## Affected package long-term-memory (the CI browser regression, `tests/long-term-memory-browser.regression.ts`) ## Expected behavior The same commit gives the same result on every run of the browser regression. ## Actual behavior PR #1815 (head `85f5d844e`, which only changed the "Other Agents can read memories" table and the 1.5.7 release files) ran the workflow three times. `tests/long-term-memory-browser.regression.ts` was identical to `staging`, and it never mentions the readers table. - Attempt 1, line 4976: recall weights, after "Reset to preset" is clicked. `'0.105' !== '0.7'` on `await recall.getByLabel("Meaning match", { exact: true }).inputValue()`. The test polls 40 times at 50 ms for the NumberField to copy the preset value into its text, then asserts, so a slow runner can finish the loop before the field catches up. Job: https://github.com/Pasta-Devs/Marinara-Agents/actions/runs/40687610856/job/122814606134 - Attempt 2, line 3789, called from `openDebugActivity` (line 4409): Debug activity search. `1 !== 0` on `activity.locator('[data-ltm-debug-operation="reported"]').count()`, read right after `waitFor()` on the `estimated` row. The filter may not have removed the `reported` row yet when the count is read. Job: https://github.com/Pasta-Devs/Marinara-Agents/actions/runs/40687610856/job/122815892169 - Attempt 3 had not finished when this was filed. The `Long-Term Memory package regressions` job passed on the same commit every time. ## Steps to reproduce 1. Open a PR that touches `packages/long-term-memory`. 2. Let `Long-Term Memory Package Browser` run, then use "Re-run failed jobs". 3. The failing assertion changes between runs on the same commit. I did not reproduce either failure locally; the local runs for #1805 skipped the browser suite. ## Environment - Marinara Engine version: Engine checkout built in CI (`MARINARA_ENGINE_ROOT=$GITHUB_WORKSPACE/engine`) - Package version: long-term-memory 1.5.7 (head `85f5d844e`) - Install type: other (GitHub Actions) - OS + version: GitHub-hosted Linux runner - Browser or app shell: Playwright Chrome Headless Shell 156.0.8078.4 ## Logs, screenshots, or video ``` AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: '0.105' !== '0.7' at tests/long-term-memory-browser.regression.ts:4976:16 ``` ``` AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: 1 !== 0 at assertDebugActivity (tests/long-term-memory-browser.regression.ts:3789:16) at async openDebugActivity (tests/long-term-memory-browser.regression.ts:4409:9) ``` ## Additional context Both look like the test asserting after a fixed delay or a single `waitFor` instead of waiting for the result. A likely fix is to use web-first retrying assertions (for example `expect(...).toHaveValue` and `toHaveCount(0)`), or to poll until the expected state with a clear timeout. The root cause is not confirmed; both are my reading of the test code, not measured. PR #1815 merged anyway because the workflow is not a required check. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-11-07 16:36:33 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1769
No description provided.