[PR #1821] [MERGED] ci(browser): decline live catalog updates so the update dialog never blocks a suite #1982

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

📋 Pull Request Information

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

Base: staging ← Head: ci/browser-tests-local-catalog


📝 Commits (3)

  • c2120c7 ci(browser): decline live catalog updates for test Engines so the update dialog never blocks a suite (#1820)
  • a7ef21f fix(ci): warn when the published catalog lane is missing; only the overlay may be absent
  • 9a8ac4d Merge remote-tracking branch 'origin/staging' into ci/browser-tests-local-catalog

📊 Changes

5 files changed (+190 additions, -6 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 scripts/install-package-browser-fixture.mjs (+65 -2)
📝 scripts/start-package-browser-servers.mjs (+7 -4)
➕ scripts/tests/package-browser-update-prompt.regression.mjs (+107 -0)
📝 tests/README.md (+8 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.

Linked issue

Fixes #1820

Why this change

Package browser suites failed whenever the PR branch was behind staging for a package they install. This happened on #1793 and #1808: the test Engine compared the branch's packages with the live published catalog and opened Agent updates available, which intercepts every click until the test times out. Each new release on staging broke every open branch's browser job until it merged staging again.

What changed

  • scripts/install-package-browser-fixture.mjs:
    • readLiveCatalogVersions reads, once per run, the two documents the test Engines read: the staging lane for the Engine's major and the staging preview overlay. A published entry wins over an overlay one, as in the Engine.
    • declineLiveUpdates records each installed package's newer live version as declined in the Engine's capability-packages/update-decisions-v1.json, beside installed.json, so no update is pending.
    • If the caller set MARINARA_AGENT_CATALOG_URL, nothing is read or declined. An unreadable document only warns, and an absent overlay (404) is quiet.
  • scripts/start-package-browser-servers.mjs applies it before the Engines start, so the runner and Playwright's own server start both get it.
  • New scripts/tests/package-browser-update-prompt.regression.mjs, wired into Pull Request Checks:
    • lane and overlay URLs for release, prerelease and development versions;
    • precedence between published and overlay entries;
    • quiet 404s and warning failures;
    • a caller override reading nothing;
    • only differing versions declined, in the shape the Engine reads.
  • tests/README.md notes the behaviour.

Design note

The first idea was to serve the checkout's own catalog to the test Engines over loopback (issue text). It doesn't work: the Engine fetches catalogs and artifacts only over https and never from local addresses. Pointing it at loopback made every catalog request fail with HTTP 500, which broke the Noodle and Slurp suites. This version declines the updates instead, and no request fails.

For the maintainer

  • Serving the checkout's catalog would need Marinara-Engine to accept an explicitly configured loopback catalog. That is a security change in the Engine, not made here.
  • A release that lands on staging during a run can still prompt. Only versions live at the start are declined; this is marked ponytail:.

Package and security impact

  • Affected package IDs: none (test infrastructure only).
  • Engine compatibility impact: none. It writes only the test Engine's own data directory.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none outside browser test runs.

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

Agent-side checks, against the real Engine (2.5.1):

Run Pending updates Dialog Click
Old scripts, installed package older than live 1 update shown times out
These scripts none not shown works
These scripts, caller set MARINARA_AGENT_CATALOG_URL 1 update shown times out (override respected)

With these scripts:

  • the Otome Forge suite passes, 10 tests;
  • Otome Forge beside Gacha Forge passes, 2 tests (it fails on the old scripts behind the dialog);
  • Slurp2 passes (23 passed, 3 skipped);
  • Noodle passes (56 passed, 12 skipped);
  • the Gacha Forge seasonal-events spec passes, 4 tests.

The new regression fails under eight deliberate breakages. npm run check and git diff --check are clean.

Please verify by hand:

  • Manually verify a package PR branch that is behind staging for an installed package no longer fails its browser job on the update dialog.

🤖 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/1821 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `ci/browser-tests-local-catalog` --- ### 📝 Commits (3) - [`c2120c7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c2120c75d905f9fe51e9e206d8755667958b8cc4) ci(browser): decline live catalog updates for test Engines so the update dialog never blocks a suite (#1820) - [`a7ef21f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a7ef21fb8d0c4384d6b19225c57ef52e91d8c6fa) fix(ci): warn when the published catalog lane is missing; only the overlay may be absent - [`9a8ac4d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9a8ac4d68330024b0672fb5ade919f7731e09a2b) Merge remote-tracking branch 'origin/staging' into ci/browser-tests-local-catalog ### 📊 Changes **5 files changed** (+190 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `scripts/install-package-browser-fixture.mjs` (+65 -2) 📝 `scripts/start-package-browser-servers.mjs` (+7 -4) ➕ `scripts/tests/package-browser-update-prompt.regression.mjs` (+107 -0) 📝 `tests/README.md` (+8 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. ## Linked issue Fixes #1820 ## Why this change Package browser suites failed whenever the PR branch was behind `staging` for a package they install. This happened on #1793 and #1808: the test Engine compared the branch's packages with the live published catalog and opened **Agent updates available**, which intercepts every click until the test times out. Each new release on staging broke every open branch's browser job until it merged staging again. ## What changed - `scripts/install-package-browser-fixture.mjs`: - `readLiveCatalogVersions` reads, once per run, the two documents the test Engines read: the staging lane for the Engine's major and the staging preview overlay. A published entry wins over an overlay one, as in the Engine. - `declineLiveUpdates` records each installed package's newer live version as declined in the Engine's `capability-packages/update-decisions-v1.json`, beside `installed.json`, so no update is pending. - If the caller set `MARINARA_AGENT_CATALOG_URL`, nothing is read or declined. An unreadable document only warns, and an absent overlay (404) is quiet. - `scripts/start-package-browser-servers.mjs` applies it before the Engines start, so the runner and Playwright's own server start both get it. - New `scripts/tests/package-browser-update-prompt.regression.mjs`, wired into Pull Request Checks: - lane and overlay URLs for release, prerelease and development versions; - precedence between published and overlay entries; - quiet 404s and warning failures; - a caller override reading nothing; - only differing versions declined, in the shape the Engine reads. - `tests/README.md` notes the behaviour. ### Design note The first idea was to serve the checkout's own catalog to the test Engines over loopback (issue text). It doesn't work: the Engine fetches catalogs and artifacts only over https and never from local addresses. Pointing it at loopback made every catalog request fail with HTTP 500, which broke the Noodle and Slurp suites. This version declines the updates instead, and no request fails. ### For the maintainer - Serving the checkout's catalog would need Marinara-Engine to accept an explicitly configured loopback catalog. That is a security change in the Engine, not made here. - A release that lands on staging during a run can still prompt. Only versions live at the start are declined; this is marked `ponytail:`. ## Package and security impact - Affected package IDs: none (test infrastructure only). - Engine compatibility impact: none. It writes only the test Engine's own data directory. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none outside browser test runs. ## 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 Agent-side checks, against the real Engine (2.5.1): | Run | Pending updates | Dialog | Click | |---|---|---|---| | Old scripts, installed package older than live | 1 update | shown | times out | | These scripts | none | not shown | works | | These scripts, caller set `MARINARA_AGENT_CATALOG_URL` | 1 update | shown | times out (override respected) | With these scripts: - the Otome Forge suite passes, 10 tests; - Otome Forge beside Gacha Forge passes, 2 tests (it fails on the old scripts behind the dialog); - Slurp2 passes (23 passed, 3 skipped); - Noodle passes (56 passed, 12 skipped); - the Gacha Forge seasonal-events spec passes, 4 tests. The new regression fails under eight deliberate breakages. `npm run check` and `git diff --check` are clean. Please verify by hand: - [ ] Manually verify a package PR branch that is behind staging for an installed package no longer fails its browser job on the update dialog. 🤖 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:30 +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#1982
No description provided.