mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1579] [Issue]: Catalog validation runs 48 steps serially; the catalog check itself is 5 s #1555
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#1555
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?
Originally created by @Promansis on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1579
Originally assigned to: @SpicyMarinara, @Promansis on GitHub.
Summary
The required
Catalog validationcheck takes about 3.3 minutes, of which the catalog validation itself is 5 seconds. The job runs 48 steps one after another on a 4-vCPU runner, and its three biggest steps (lint, typecheck, tests) are each single-threaded and serial. Running the independent work concurrently should bring the job to about 2 minutes.Affected package
catalog/repository (CI:
.github/workflows/pull-request-checks.yml,package.jsonscripts,scripts/typecheck-packages.mjs)Expected behavior
The job uses the runner's cores: ESLint lints on several threads while Prettier runs alongside it, the seven package typechecks run at once, and the independent regression tests run concurrently, with each command's output kept together in the log.
Actual behavior
Medians over the last 12 successful runs (job median 199 s):
npm run check: Prettier, then ESLint, one after the other)fetch-depth: 0; needed, the artifact validation reads the zips)typecheck:packages:tscfor 7 packages, sequentially)npm ci--concurrency, and with 4 workers it takes 11 s. ESLint's rules take about 8 s; the rest is parsing.scripts/typecheck-packages.mjsrunstsconce per package withexecFileSync. Locally the seven runs take 31 s in total; the largest (slurp2) peaks at about 900 MB, so running all seven at once needs under 4 GB.After the CodeQL checkout fix (sparse checkout without
artifacts/), this job becomes the slowest required check, so it sets the time to mergeable for every pull request.Steps to reproduce
stagingand open theCatalog validationjob.Environment
ubuntu-latest, 4 vCPU)ubuntu-latestrunnerLogs, screenshots, or video
Step durations were read from the Actions API (each run's
/jobsendpoint).Additional context
Minimal fix
package.json:lintgets--concurrency auto;checkrunsformat:checkandlintat the same time instead of&&.scripts/typecheck-packages.mjs: run the packages concurrently withexecFileinstead ofexecFileSync, keeping each package's output together and the existing "Could not run tsc" failure whentsccannot start (scripts/tests/typecheck-packages-missing-tsc.regression.mjs).scripts/run-parallel.mjs, that runs the commands it is given (arguments, or one per line on stdin) with up to one process per core, buffers each command's output and prints it as a log group when it finishes, runs every command even after a failure, and exits non-zero if any failed.checkand the workflow's test step both use it..github/workflows/pull-request-checks.yml: the test steps between "Test package security invariants" and "Test owner approval evaluator" become one step that feeds the same commands, with their comments, to the runner. Checkout,npm ci,npm run check, the typecheck and the whitespace check stay as separate steps.Expected effect: lint 58 → about 30 s (Prettier is the floor), typecheck 28 → about 10 s, tests about 49 s plus overhead → about 25 s (the Pixelforge test is the floor). Together about 3.3 → 2 min. These are estimates from a 12-core machine scaled to 4 vCPU; the first run on a pull request measures it.
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 and marks failed commands with an error annotation.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: