Skip to content

Support sparse-checkout in compiled workflows for large monorepos #21630

@Mossaka

Description

@Mossaka

Problem

The test repo is 33GB. Full actions/checkout takes 25+ minutes on the agent job, leaving insufficient time for the actual agent work.

Evidence from v6: fastify checkout took 24m38s (was 59s in v5 when repo was smaller). The agent only got 3m24s of actual execution time.

Suggested Implementation

Add sparse-checkout support to workflow frontmatter:

checkout:
  sparse:
    - node/fastify
    - .github

The compiler would then generate the agent job's checkout step with:

with:
  sparse-checkout: |
    node/fastify
    .github

This would reduce checkout from 25min to seconds for large monorepos.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions