[PR #1819] [MERGED] Long-Term Memory: stop the browser regression flaking (#1816) #1981

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1819
Author: @Promansis
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @Promansis

Base: staging ← Head: fix(long-term-memory)/browser-test-flake


📝 Commits (4)

  • 89326e8 fix(long-term-memory): wait for the result in the flaky browser assertions (#1816)
  • caffe0f fix(long-term-memory): wait for focus to return before the picker keyboard test (#1816)
  • 648fe2d Merge upstream/staging into fix(long-term-memory)/browser-test-flake
  • 6b0adfd Merge branch 'staging' into fix(long-term-memory)/browser-test-flake

📊 Changes

1 file changed (+10 additions, -8 deletions)

View changed files

📝 tests/long-term-memory-browser.regression.ts (+10 -8)

📄 Description

Linked issue

Closes #1816

Why this change

The Long-Term Memory package browser workflow failed on the same commit at two different assertions. Both read the page before it had finished updating: the Debug activity search counted the reported row before the deferred filter removed it, and the recall weights reset polled for 2 s and then asserted, so a slow runner could run out of polls before the field showed the preset.

What changed

  • tests/long-term-memory-browser.regression.ts only (+10/−8): wait for the reported row to detach before counting it, wait for the Meaning match field to hold the preset value with waitForFunction, and wait for Save settings to detach instead of a poll loop, and wait for focus to land on the Review button after Stay before the place picker is driven by keyboard (the first CI run failed there: Stay returns focus on the next frame and swallowed the picker's Enter). The assertions and their messages are unchanged.
  • No package, manifest, generated output or version change.

Package and security impact

  • Affected package IDs: none (test only)
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

The flake never reproduced locally. npm run check passes and the browser regression passed five runs in a row against Engine 345cd747c. Repeat CI runs are the real check.

Documentation impact

  • No documentation changes needed

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1819 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/browser-test-flake` --- ### 📝 Commits (4) - [`89326e8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/89326e817ac0ff75bf8d0d7fa72469ea2fc67699) fix(long-term-memory): wait for the result in the flaky browser assertions (#1816) - [`caffe0f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/caffe0fad8ec15f7a139384a0f4480037c0af1fb) fix(long-term-memory): wait for focus to return before the picker keyboard test (#1816) - [`648fe2d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/648fe2d4851f17a83c402d6bedab1744124a537b) Merge upstream/staging into fix(long-term-memory)/browser-test-flake - [`6b0adfd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6b0adfd98ea8c3c128c9d49256225cf65c8fcb80) Merge branch 'staging' into fix(long-term-memory)/browser-test-flake ### 📊 Changes **1 file changed** (+10 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `tests/long-term-memory-browser.regression.ts` (+10 -8) </details> ### 📄 Description ## Linked issue Closes #1816 ## Why this change The Long-Term Memory package browser workflow failed on the same commit at two different assertions. Both read the page before it had finished updating: the Debug activity search counted the `reported` row before the deferred filter removed it, and the recall weights reset polled for 2 s and then asserted, so a slow runner could run out of polls before the field showed the preset. ## What changed - `tests/long-term-memory-browser.regression.ts` only (+10/−8): wait for the `reported` row to detach before counting it, wait for the Meaning match field to hold the preset value with `waitForFunction`, and wait for `Save settings` to detach instead of a poll loop, and wait for focus to land on the Review button after Stay before the place picker is driven by keyboard (the first CI run failed there: Stay returns focus on the next frame and swallowed the picker's Enter). The assertions and their messages are unchanged. - No package, manifest, generated output or version change. ## Package and security impact - Affected package IDs: none (test only) - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes The flake never reproduced locally. `npm run check` passes and the browser regression passed five runs in a row against Engine 345cd747c. Repeat CI runs are the real check. ## Documentation impact - [x] No documentation changes needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:29 +07:00
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#1981
No description provided.