mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1581] [MERGED] ci: run the Catalog validation lint, typecheck and tests concurrently #1575
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1575
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1581
Author: @Promansis
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @Promansis
Base:
staging← Head:chore(ci)/1579-pr-checks-parallel📝 Commits (7)
73c6760ci: run the Catalog validation lint, typecheck and tests concurrently (#1579)435affcMerge branch 'staging' into chore(ci)/1579-pr-checks-parallelda39a38ci: settle each typecheck package alone and bound the parallel runner (#1579)e4af531Merge remote-tracking branch 'upstream/staging' into chore(ci)/1579-pr-checks-parallelff8fca5ci: kill a timed-out command's whole process group and keep a failed package's gathered report (#1579)89859ecci: settle a timed-out command on its shell's exit (#1579)b2c141dci: let the runner's ceiling settle a timed-out command itself (#1579)📊 Changes
4 files changed (+237 additions, -130 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+74 -106)📝
package.json(+2 -2)➕
scripts/run-parallel.mjs(+116 -0)📝
scripts/typecheck-packages.mjs(+45 -22)📄 Description
Pull request
Linked issue
Closes #1579
Why this change
Catalog validationcheck takes about 3.3 min (median 199 s over the last 12 successful runs). The catalog validation itself is 5 s of that.npm run check(Prettier, then ESLint) 58 s,typecheck:packages(tsc once per package) 28 s, and about 38 test steps totalling about 49 s plus about 20 s of per-step overhead.artifacts/(#1578), this job becomes the slowest required check and sets the time to mergeable for every pull request.What changed
scripts/run-parallel.mjs(new, 75 lines): runs the commands it is given as arguments, or one per line on stdin with#comments, with up to one process per core. Each command's output is buffered and printed when it finishes, as a collapsed::group::on GitHub Actions; a failed command is printed expanded with an::error::annotation. Every command runs even after a failure, so one job shows every failure, and the exit status is 1 if any command failed and 2 for an empty command list.package.json:checkrunsformat:checkandlintthrough the runner at the same time (both must still pass);lintgets--concurrency auto.scripts/typecheck-packages.mjs: the packages are checked concurrently withexecFileinstead ofexecFileSync. Each package's report is printed together, in argument order, once every run has finished. The "Could not run tsc" failure when tsc cannot start is kept (error.codeis the exit code withexecFile; a string such asENOENTor no code still fails the run)..github/workflows/pull-request-checks.yml: the steps from "Test the package typecheck fails without tsc" to "Test owner approval evaluator" become one step that feeds the same commands to the runner through a heredoc, keeping their comments. Checkout,npm ci,npm run check, the typecheck and the whitespace check stay separate steps.Trade-off: a failing test is found in one step's log instead of a named red step. The runner keeps each command's output in its own group, names the failed command in the error annotation, and still runs every other command.
Package and security impact
Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdRun locally on the pushed commit, pinned to 4 cores with
taskset -c 0-3to match a runner:npm run checknpm run typecheck:packagespackages/pixelforge/test-brief.mjs20.4 s,scripts/validate-catalog.mjs7.1 s and the Noodle timeline context budget regression 7.0 s. All 57 passed.node scripts/tests/typecheck-packages-missing-tsc.regression.mjspasses against the changed script: a tree withoutnode_modules/.bin/tscfails withCould not run tsc (ENOENT).--jobs xexits 2;true+exit 3+echo hi; falseruns all three, prints each one's output and exits 1; withGITHUB_ACTIONS=truea passing command is wrapped in::group::/::endgroup::and a failing one gets::error::and stays expanded; a missing binary reportsexit 127.actionlint 1.7.7on the workflow passes.git diff --checkis clean.npm run check(the new form) passes; Prettier formatted the two changed scripts.Measured on this PR's two runs (
73c6760ac, draft and ready-for-review events), against the medians of the last 12 successfulstagingruns:Smaller than the local estimate: the runner's Prettier run is the floor of the lint step at about 45 s, and the seven typechecks share four slower cores. Both runs passed all 57 commands.
Manual verification notes
Catalog validationrun, manually verify the step durations against the table above and that the job finishes in about 2 minutes.57 of 57 commands passed.exit 1line in the heredoc on a scratch branch) shows as an::error::annotation naming the command, with the other commands still run.Merge Danger
Door: two-way. A revert restores the serial steps; no data, package or artifact changes.
Blast radius: the required
Catalog validationcheck and the contributor-facingnpm run check. A test that is sensitive to running alongside others would show up as a failure in the combined step; locally all 57 passed at 4 and at 12 jobs. The 38 step names disappear from the Checks UI in favour of log groups.feature(saucelings)/saucelingsadds a test step and apackage.jsonline in the replaced region and will need a small conflict resolution whichever lands second.Documentation impact
CONTRIBUTING.mddescribesnpm run checkas verifying Prettier and ESLint; it still does, so no docs change.UI evidence (if applicable)
Not applicable (CI only).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.