[GH-ISSUE #1414] [Issue]: Long-Term Memory: 15 of its regression tests never run in CI, including routes and storage #715

Closed
opened 2026-10-20 17:30:01 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Promansis on GitHub.

Summary

CI runs 9 of the Long-Term Memory regression tests. Another 15 run only when a contributor remembers to run them by hand. They include the 6,325-line routes test, the storage test, the runtime test and the installation test.

All 15 pass at 1.4.38 when run the way the existing LTM browser job runs its test: through the Engine checkout's tsx, with no Marinara-Agents dependencies installed. Together they take under a minute. Adding them to that job, which only runs for LTM changes, closes the gap without slowing PRs for other packages.

Affected package

long-term-memory 1.4.38 (upstream/staging 97c0486f8). Workflows:

  • .github/workflows/pull-request-checks.yml runs on every PR. It runs long-term-memory-feedback-clarity-ui.regression.mjs plus 7 Engine-free LTM tests: scope-targets, scope-fallback-labels, tab-keys, review-queue-ambiguous-link, source-task, source-pagination and debug-activity.
  • .github/workflows/ltm-browser.yml runs only when LTM files change. It checks out and installs Engine staging and runs long-term-memory-browser.regression.ts.

Expected behavior

Every LTM regression runs in CI on LTM PRs.

Actual behavior

These 15 tests never run in CI:

Needs the Engine Test file (tests/long-term-memory-*)
No (11) candidate-reconciliation, conversation-summary-import, debug-log, delta-review, extraction-graph, extraction-reliability, index-keys, local-characters, reconciliation-recall, storage, loading.regression.mjs
Yes (4) routes (all scenarios when run directly), runtime, installation, host-styles

Not needed separately:

  • the five routes-* scenario wrappers, which are subsets of routes;
  • lifecycle, which runs browser and installation.

Steps to reproduce

  1. Search both workflows for each tests/long-term-memory-* file name. The 15 above don't appear.
  2. Run them as below; all pass.

Environment

  • Marinara Engine version: 2.5.0 line (local Engine checkout at 2039583ca)
  • Package version: long-term-memory 1.4.38 (upstream/staging 97c0486f8)
  • Install type: source
  • OS + version: Linux, Node 24.15.0
  • Browser or app shell: not applicable

Logs, screenshots, or video

Local run, 2026-10-15, on a clean copy of upstream/staging with no Agents node_modules, using pnpm --dir <engine> --filter @marinara-engine/server exec tsx <test> and MARINARA_ENGINE_ROOT set. All 15 pass:

  • the 11 Engine-free tests, routes and installation together in 33 s;
  • runtime in 9 s;
  • host-styles in 3 s.

The 11 Engine-free tests also pass with plain npx tsx and no Engine available, in 22 s.

Minimal fix

In ltm-browser.yml, add one step after "Run Long-Term Memory browser regression":

      - name: Run Long-Term Memory regressions
        env:
          MARINARA_ENGINE_ROOT: ${{ github.workspace }}/engine
        run: |
          for test in candidate-reconciliation conversation-summary-import debug-log delta-review extraction-graph \
            extraction-reliability index-keys local-characters reconciliation-recall storage routes runtime installation host-styles; do
            pnpm --dir engine --filter @marinara-engine/server exec tsx "$GITHUB_WORKSPACE/tests/long-term-memory-$test.regression.ts"
          done
          node tests/long-term-memory-loading.regression.mjs
  • No new install step: the job already has the Engine checkout and its dependencies.
  • Runner: ubuntu-latest provides unzip for the installation test.
  • Self-proving: the path filter includes the workflow file itself, so this PR's own run is the proof.

Additional context

  • Why this job rather than pull-request-checks.yml: it only runs for LTM changes, so PRs for other packages don't wait for or get blocked by LTM tests. Adding a step doesn't rename any check.
  • Risks:
    • The job tests against Engine staging, which moves. An Engine change can now fail LTM PRs. That is useful signal (Engine drift), but someone has to look at it promptly.
    • The 15-minute job timeout has room: these tests take about a minute.
    • The storage test isn't root-safe (a chmod check), but GitHub runners don't run as root.
  • Out of scope:
    • moving the 8 LTM tests out of pull-request-checks.yml;
    • a strict tsc job (44 errors at 1.4.8; not re-counted).

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1414 Originally assigned to: @Promansis on GitHub. ## Summary CI runs 9 of the Long-Term Memory regression tests. Another 15 run only when a contributor remembers to run them by hand. They include the 6,325-line routes test, the storage test, the runtime test and the installation test. All 15 pass at 1.4.38 when run the way the existing LTM browser job runs its test: through the Engine checkout's `tsx`, with no Marinara-Agents dependencies installed. Together they take under a minute. Adding them to that job, which only runs for LTM changes, closes the gap without slowing PRs for other packages. ## Affected package `long-term-memory` 1.4.38 (`upstream/staging` 97c0486f8). Workflows: - `.github/workflows/pull-request-checks.yml` runs on every PR. It runs `long-term-memory-feedback-clarity-ui.regression.mjs` plus 7 Engine-free LTM tests: scope-targets, scope-fallback-labels, tab-keys, review-queue-ambiguous-link, source-task, source-pagination and debug-activity. - `.github/workflows/ltm-browser.yml` runs only when LTM files change. It checks out and installs Engine `staging` and runs `long-term-memory-browser.regression.ts`. ## Expected behavior Every LTM regression runs in CI on LTM PRs. ## Actual behavior These 15 tests never run in CI: | Needs the Engine | Test file (`tests/long-term-memory-*`) | |---|---| | No (11) | `candidate-reconciliation`, `conversation-summary-import`, `debug-log`, `delta-review`, `extraction-graph`, `extraction-reliability`, `index-keys`, `local-characters`, `reconciliation-recall`, `storage`, `loading.regression.mjs` | | Yes (4) | `routes` (all scenarios when run directly), `runtime`, `installation`, `host-styles` | Not needed separately: - the five `routes-*` scenario wrappers, which are subsets of `routes`; - `lifecycle`, which runs `browser` and `installation`. ## Steps to reproduce 1. Search both workflows for each `tests/long-term-memory-*` file name. The 15 above don't appear. 2. Run them as below; all pass. ## Environment - Marinara Engine version: 2.5.0 line (local Engine checkout at 2039583ca) - Package version: long-term-memory 1.4.38 (`upstream/staging` 97c0486f8) - Install type: source - OS + version: Linux, Node 24.15.0 - Browser or app shell: not applicable ## Logs, screenshots, or video Local run, 2026-10-15, on a clean copy of `upstream/staging` with no Agents `node_modules`, using `pnpm --dir <engine> --filter @marinara-engine/server exec tsx <test>` and `MARINARA_ENGINE_ROOT` set. All 15 pass: - the 11 Engine-free tests, routes and installation together in 33 s; - runtime in 9 s; - host-styles in 3 s. The 11 Engine-free tests also pass with plain `npx tsx` and no Engine available, in 22 s. ## Minimal fix In `ltm-browser.yml`, add one step after "Run Long-Term Memory browser regression": ```yaml - name: Run Long-Term Memory regressions env: MARINARA_ENGINE_ROOT: ${{ github.workspace }}/engine run: | for test in candidate-reconciliation conversation-summary-import debug-log delta-review extraction-graph \ extraction-reliability index-keys local-characters reconciliation-recall storage routes runtime installation host-styles; do pnpm --dir engine --filter @marinara-engine/server exec tsx "$GITHUB_WORKSPACE/tests/long-term-memory-$test.regression.ts" done node tests/long-term-memory-loading.regression.mjs ``` - **No new install step:** the job already has the Engine checkout and its dependencies. - **Runner:** `ubuntu-latest` provides `unzip` for the installation test. - **Self-proving:** the path filter includes the workflow file itself, so this PR's own run is the proof. ## Additional context - **Why this job rather than `pull-request-checks.yml`:** it only runs for LTM changes, so PRs for other packages don't wait for or get blocked by LTM tests. Adding a step doesn't rename any check. - **Risks:** - The job tests against Engine `staging`, which moves. An Engine change can now fail LTM PRs. That is useful signal (Engine drift), but someone has to look at it promptly. - The 15-minute job timeout has room: these tests take about a minute. - The storage test isn't root-safe (a `chmod` check), but GitHub runners don't run as root. - **Out of scope:** - moving the 8 LTM tests out of `pull-request-checks.yml`; - a strict `tsc` job (44 errors at 1.4.8; not re-counted). ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:30:01 +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#715
No description provided.