[GH-ISSUE #2163] [Feature]: Run the ruleset package regression only when ruleset inputs change, and trim PR-check checkouts #2157

Closed
opened 2026-11-07 23:44:32 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

The ruleset package regression takes 10-17 min on every PR and is over 80% of CI time, but only 8 of 1,108 staging commits since 2026-10-24 touched its inputs. Agents staging is strict, so every merge re-runs it on every open PR. Catalog validation also spends 41-54 s fetching 1.2 GB of history for one git diff --check.

Proposed package or change

Repository CI only, no package change.

  1. New .github/workflows/ruleset-package-regression.yml holding the ruleset-package-regression job, triggered on pull_request with a paths: filter (packages/ruleset-*/**, artifacts/ruleset-*, scripts/package-file.mjs, scripts/ruleset-*.mjs, scripts/catalog-path-safety.mjs, scripts/build-5e-srd-catalogs.mjs, scripts/build-agent-catalog.mjs, scripts/tests/ruleset-package.regression.mjs, the workflow file) and on push to staging as a safety net. fetch-depth: 1, no npm ci (the test and its imports use only Node built-ins), own concurrency group.
  2. pull-request-checks.yml: remove that job; Catalog validation uses fetch-depth: 2 and git diff --check HEAD^1 HEAD. No paths filter on this workflow, since Catalog validation is a required check.
  3. Root package.json: Prettier --experimental-cli on format and format:check; ESLint --cache on lint.

Why should this be optional?

Not a package. Merge-gate behaviour is unchanged: Catalog validation stays required and always runs; the ruleset job still runs whenever its inputs change and on every staging push.

Alternatives considered

A GitHub merge queue for this repository (removes strict-mode re-runs entirely) needs a ruleset change and is out of scope here.

Additional context

Follow-ups, not in this issue: the ruleset test code speed-ups (separate issue) and the local test-ci.sh replay.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2163 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? The ruleset package regression takes 10-17 min on every PR and is over 80% of CI time, but only 8 of 1,108 staging commits since 2026-10-24 touched its inputs. Agents `staging` is strict, so every merge re-runs it on every open PR. Catalog validation also spends 41-54 s fetching 1.2 GB of history for one `git diff --check`. ## Proposed package or change Repository CI only, no package change. 1. New `.github/workflows/ruleset-package-regression.yml` holding the `ruleset-package-regression` job, triggered on `pull_request` with a `paths:` filter (`packages/ruleset-*/**`, `artifacts/ruleset-*`, `scripts/package-file.mjs`, `scripts/ruleset-*.mjs`, `scripts/catalog-path-safety.mjs`, `scripts/build-5e-srd-catalogs.mjs`, `scripts/build-agent-catalog.mjs`, `scripts/tests/ruleset-package.regression.mjs`, the workflow file) and on `push` to `staging` as a safety net. `fetch-depth: 1`, no `npm ci` (the test and its imports use only Node built-ins), own concurrency group. 2. `pull-request-checks.yml`: remove that job; Catalog validation uses `fetch-depth: 2` and `git diff --check HEAD^1 HEAD`. No `paths` filter on this workflow, since Catalog validation is a required check. 3. Root `package.json`: Prettier `--experimental-cli` on `format` and `format:check`; ESLint `--cache` on `lint`. ## Why should this be optional? Not a package. Merge-gate behaviour is unchanged: `Catalog validation` stays required and always runs; the ruleset job still runs whenever its inputs change and on every staging push. ## Alternatives considered A GitHub merge queue for this repository (removes strict-mode re-runs entirely) needs a ruleset change and is out of scope here. ## Additional context Follow-ups, not in this issue: the ruleset test code speed-ups (separate issue) and the local `test-ci.sh` replay. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-11-08 00:47:04 +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#2157
No description provided.