Skip to content

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

Closed

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

Activity

  1. pelikhan commented on Mar 18, 2026

    @pelikhan
    Collaborator

    @Mossaka we already support checkout keyword that lets you specify the actions/checkout field.

  2. pelikhan commented on Mar 18, 2026

    @pelikhan
    Collaborator

    /cloclo add a note in the FAQ frequently ask questions page about this topic

  3. github-actions commented on Mar 18, 2026

    @github-actions
    Contributor

    🎤 Bravo! /cloclo has delivered a stunning performance! Standing ovation! 🌟

  4. added a commit that references this issue on Mar 18, 2026
    08b42bf
  5. github-actions commented on Mar 18, 2026

    @github-actions
    Contributor

    Pull request created: #21655

    🎤 Magnifique! Performance by /cloclo

  6. github-actions commented on Mar 18, 2026

    @github-actions
    Contributor

    ✨ Cloclo via /cloclo

    Summary

    Magnifique! 🎭 I've added a glamorous new FAQ entry to the documentation covering the sparse checkout topic from this issue!

    Details

    The new FAQ question — "My workflow checkout is very slow because my repository is a large monorepo. How can I speed it up?" — has been added to the Configuration & Setup section of the Frequently Asked Questions page.

    The entry explains:

    • How to configure sparse-checkout under the checkout: frontmatter field
    • A single-repo example that fetches only the needed paths (e.g., reducing 25+ min checkout to seconds)
    • A multi-checkout example combining sparse patterns for different repositories
    • A reference link to the full Cross-Repository Operations docs

    Changes Made

    • 📝 docs/src/content/docs/reference/faq.md — added 30 lines with the new FAQ entry and code examples

    Next Steps

    A draft PR has been created with these changes for review and merging. ✅

    🎤 Magnifique! Performance by /cloclo · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions