mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1578] [Issue]: CodeQL checks out 2.5 GB of artifacts it never analyzes #1553
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#1553
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/1578
Originally assigned to: @SpicyMarinara, @Promansis on GitHub.
Summary
Analyze javascript-typescriptis the slowest required check on every pull request, and about a third of its time is the checkout. The job checks outartifacts/, 2.46 GB of package zips that CodeQL never reads.Affected package
catalog/repository (CI:
.github/workflows/codeql.yml)Expected behavior
The CodeQL jobs check out only what they analyze: the repository sources, scripts, tests and
.github/. Withoutartifacts/the tree is about 80 MB, so the checkout should take a few seconds and the required check should finish about a minute sooner.Actual behavior
From the
pull_requestruns between 8 and 22 October 2026 (1,156 runs, 320 heads):The checkout is
actions/checkoutwith its defaults (depth 1, no sparse patterns), so it fetches every blob at HEAD. The HEAD tree is 2.54 GB, of whichartifacts/is 2.46 GB in 888 zips. A full-history fetch (fetch-depth: 0, used by Pull Request Checks) takes 35–50 s because the server reuses its packs; the shallow fetch here is slower, at about 90 s, because the server builds the pack on the fly. The tree size, not the history, is the cost.Analyze javascript-typescriptis the slowest required check, so every pull request waits for it before it can merge.Steps to reproduce
staging.Analyze javascript-typescriptrun and expand "Checkout repository": about 90 s.du -sh artifacts/(2.46 GB) and the rest of the tree (about 80 MB).Environment
ubuntu-latest)ubuntu-latestrunnerLogs, screenshots, or video
Run durations were read from the Actions API (
/actions/runs?event=pull_requestand each run's/jobs).Additional context
Minimal fix
.github/workflows/codeql.yml, "Checkout repository" step: add a sparse checkout that excludesartifacts/.When
sparse-checkoutis set,actions/checkoutfetches with--filter=blob:noneand the checkout only downloads the blobs the patterns select, so the zips are never transferred. Non-cone mode is needed because cone mode can only include directories, not exclude one.CodeQL's
javascript-typescriptextractor scans source files andactionsscans.github/workflows; neither reads zips, so the analysis is unchanged. Keep the workflow running on every pull request: a required check that is skipped by apathsfilter blocks the merge instead of speeding it up.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: