[PR #2164] [MERGED] chore(ci): run the ruleset package regression only when ruleset inputs change (#2163) #2159

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2164
Author: @Promansis
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @Promansis

Base: staging ← Head: chore(ci)/ruleset-job-gate


📝 Commits (2)

  • ee9413e chore(ci): run the ruleset package regression only when ruleset inputs change (#2163)
  • 9d71da4 Merge upstream/staging into chore(ci)/ruleset-job-gate

📊 Changes

3 files changed (+65 additions, -37 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+7 -34)
➕ .github/workflows/ruleset-package-regression.yml (+55 -0)
📝 package.json (+3 -3)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #2163

Why this change

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. staging is strict, so every merge re-runs it on every open PR. Catalog validation also spends 41-54 s fetching full history for one git diff --check.

What changed

  • New .github/workflows/ruleset-package-regression.yml holds the moved job. It runs on pull_request only when ruleset inputs change (paths:), and on every push to staging as a safety net. It uses fetch-depth: 1, no npm ci (the test and its imports use only Node built-ins) and its own concurrency group.
  • pull-request-checks.yml: the ruleset job is removed. Catalog validation checks out fetch-depth: 2 and runs git diff --check HEAD^1 HEAD (on a pull_request run, HEAD^1 is the current base). The workflow still has no paths filter, because Catalog validation is a required check.
  • Root package.json: Prettier --experimental-cli on format / format:check, ESLint --cache in node_modules/.cache/eslint/ on lint.
  • Plan correction: scripts/catalog-path-safety.mjs and scripts/build-ruleset-packages.mjs are in paths: because the test imports or checks them.
  • Known limit: GitHub reads at most 300 changed files against paths; the staging push run covers that case.

Package and security impact

  • Affected package IDs: none (repository CI only)
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none; the new workflow has contents: read, pinned action SHAs and persist-credentials: false
  • Restart, storage, update, or uninstall impact: none
  • Required checks are unchanged; "Ruleset package regression" is not a required check. dottore-review-approve.yml fires on Pull Request Checks completing, so on ruleset PRs it no longer waits for the ruleset test (merge gating is unchanged).

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

Run locally by the author: node scripts/validate-pr-triage.mjs and npm run check pass on the merged HEAD; Prettier verdicts match between the old and --experimental-cli commands on dirty and clean trees; git diff --check HEAD~1 HEAD exits 2 on a trailing space.

Hosted proof still to record on this PR: the ruleset job passes here (this PR touches the new workflow file) with no npm ci, and its time vs 10-17 min; Catalog validation checkout and total time (was 41-54 s, 178-286 s); a throwaway trailing-space commit fails the whitespace step on the merge ref; after merge, the staging push run of the new workflow appears and passes.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

🤖 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/2164 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 11/7/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `chore(ci)/ruleset-job-gate` --- ### 📝 Commits (2) - [`ee9413e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ee9413e74b8a7550f7b4a6d5e636e9b7266fe731) chore(ci): run the ruleset package regression only when ruleset inputs change (#2163) - [`9d71da4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9d71da429e027a00cbdc798f57cb2385a0c5560b) Merge upstream/staging into chore(ci)/ruleset-job-gate ### 📊 Changes **3 files changed** (+65 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+7 -34) ➕ `.github/workflows/ruleset-package-regression.yml` (+55 -0) 📝 `package.json` (+3 -3) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #2163 ## Why this change 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. `staging` is strict, so every merge re-runs it on every open PR. Catalog validation also spends 41-54 s fetching full history for one `git diff --check`. ## What changed - New `.github/workflows/ruleset-package-regression.yml` holds the moved job. It runs on `pull_request` only when ruleset inputs change (`paths:`), and on every push to `staging` as a safety net. It uses `fetch-depth: 1`, no `npm ci` (the test and its imports use only Node built-ins) and its own concurrency group. - `pull-request-checks.yml`: the ruleset job is removed. Catalog validation checks out `fetch-depth: 2` and runs `git diff --check HEAD^1 HEAD` (on a `pull_request` run, `HEAD^1` is the current base). The workflow still has no `paths` filter, because Catalog validation is a required check. - Root `package.json`: Prettier `--experimental-cli` on `format` / `format:check`, ESLint `--cache` in `node_modules/.cache/eslint/` on `lint`. - Plan correction: `scripts/catalog-path-safety.mjs` and `scripts/build-ruleset-packages.mjs` are in `paths:` because the test imports or checks them. - Known limit: GitHub reads at most 300 changed files against `paths`; the staging push run covers that case. ## Package and security impact - Affected package IDs: none (repository CI only) - Engine compatibility impact: none - New or changed permissions/entrypoints: none; the new workflow has `contents: read`, pinned action SHAs and `persist-credentials: false` - Restart, storage, update, or uninstall impact: none - Required checks are unchanged; "Ruleset package regression" is not a required check. `dottore-review-approve.yml` fires on `Pull Request Checks` completing, so on ruleset PRs it no longer waits for the ruleset test (merge gating is unchanged). ## 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 Run locally by the author: `node scripts/validate-pr-triage.mjs` and `npm run check` pass on the merged HEAD; Prettier verdicts match between the old and `--experimental-cli` commands on dirty and clean trees; `git diff --check HEAD~1 HEAD` exits 2 on a trailing space. Hosted proof still to record on this PR: the ruleset job passes here (this PR touches the new workflow file) with no `npm ci`, and its time vs 10-17 min; Catalog validation checkout and total time (was 41-54 s, 178-286 s); a throwaway trailing-space commit fails the whitespace step on the merge ref; after merge, the staging push run of the new workflow appears and passes. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation 🤖 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 changed title from [PR #2164] chore(ci): run the ruleset package regression only when ruleset inputs change (#2163) to [PR #2164] [MERGED] chore(ci): run the ruleset package regression only when ruleset inputs change (#2163) 2026-11-08 00:47:12 +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#2159
No description provided.