mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1580] [MERGED] ci(codeql): leave artifacts/ out of the CodeQL checkout #1574
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#1574
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/1580
Author: @Promansis
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @Promansis
Base:
staging← Head:chore(ci)/1578-codeql-sparse-checkout📝 Commits (2)
664eac8ci(codeql): leave artifacts/ out of the CodeQL checkout (#1578)887d7f9Merge branch 'staging' into chore(ci)/1578-codeql-sparse-checkout📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
.github/workflows/codeql.yml(+7 -0)📄 Description
Pull request
Linked issue
Closes #1578
Why this change
Analyze javascript-typescriptis the slowest required check on every pull request (median 4.3 min over 8–22 October), and about 90 s of it is the checkout.artifacts/is 2.46 GB of package zips in 888 files. CodeQL never reads them. The rest of the tree is about 80 MB.Analyze actionspays the same 90 s for a 2.3 min job.What changed
.github/workflows/codeql.yml, "Checkout repository": a non-cone sparse checkout that takes everything exceptartifacts/, with a comment saying why.When
sparse-checkoutis set,actions/checkoutfetches with--filter=blob:none, so the fetch transfers only the commit and trees, and the checkout then downloads just the blobs the patterns select. Non-cone mode is needed because cone mode can only include directories, not exclude one. The workflow still runs on every pull request: a required check skipped by apathsfilter would block the merge instead of speeding it up.Package and security impact
Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdRun locally on the pushed commit:
actionlint 1.7.7on the workflow passes.The checkout was emulated with git 2.43.0 using the same steps as
actions/checkout(core.sparseCheckout=true, the two patterns ininfo/sparse-checkout,fetch --filter=blob:none --depth=1,checkout --force <sha>) against a local mirror ofstaging(96e05d42b) withuploadpack.allowFilteron, as GitHub has it:Afterwards
artifacts/is absent, its 888 index entries are skip-worktree, the tree on disk is 85 MB, and.github/workflowshas all 14 files. Against a server that does not allow filters the same steps fetched all 3,880 blobs (2.4 GB), which is why the saving depends on theblob:nonefilter rather than on the sparse patterns alone.git diff --checkis clean.npm run checkwas not run: its Prettier and ESLint globs don't include.github/workflows.CodeQL runs on
pull_request, so this PR's ownAnalyzeruns use the changed workflow and measure the saving.Measured on this PR's first run (
664eac8b0), against the 8–22 October medians:Both jobs succeeded and the
CodeQLcheck passed.Manual verification notes
Analyze javascript-typescriptrun, manually verify the "Checkout repository" step takes a few seconds (recent staging PRs: about 90 s) and that "Setting up sparse checkout" appears in its log.Analyzejobs complete and upload results, with no "no source code was seen" error, and that the alert count matches a recent staging run.Merge Danger
Door: two-way. One workflow step, fully undone by a revert.
Blast radius: the two CodeQL jobs. If the sparse checkout misbehaved, the required check would fail on every PR until reverted; no other workflow, package or artifact is touched.
Documentation impact
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.