Skip to content

git-clone: sparse checkout no longer uses blobless clone, making it slow for large repos #5725

Description

@knikoloski

Checklist

  • I've searched the issue queue to verify this is not a duplicate bug report.
  • I've included steps to reproduce the bug.
  • I've pasted the output of kargo version.
  • I've pasted logs, if applicable.

Description

Sparse checkout was introduced in v1.9.0 and worked great — our git-clone step completed in ~15 seconds for a 2 GB monorepo.

After upgrading to v1.9.2, the same promotion takes 45+ minutes. It appears the blobless clone filter is no longer being applied, as the full repository is downloaded every time.

We've had to pin to v1.9.0 to keep promotions usable. Is there a timeline for fixing this?

Steps to Reproduce

  1. Configure a git-clone step with sparse checkout against a large repository (2 GB+)
  2. Run a promotion on v1.9.0 — completes in ~15 seconds
  3. Upgrade to v1.9.2 — same promotion takes 45+ minutes
- uses: git-clone
  config:
    repoURL: https://bitbucket.org/example/monorepo.git
    checkout:
      - branch: master
        create: true
        path: ./monorepo
        sparse:
          - charts/app/environments/qa

Metadata

Metadata

Assignees

Labels

area/controllerAffects the (main) controllerarea/crdsAffects custom resource definitionskind/bugSomething isn't working as intended; If unsure that something IS a bug, start a discussion insteadkind/enhancementAn entirely new featurepriority/normalThis is the priority for most work

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions