CircleCI-Public / CircleCI-Public/path-filtering-orb

Can we enable shallow cloning?

Open
#71 16 comments 9 reactions 0 assignees View on GitHub
backlog enhancement
Dominant language
Shell
Stars
29
Forks
70
PR merge metrics
No merged PRs in 30d

Description

## Describe Request:
The code checkout step of this orb is the vast majority of the build time for this step in our CircleCI workflow. Shallow checkout (ie: using `git clone --depth=1` would cut this step's duration by roughly 75% for our monolith codebase
## Examples:
I don't know enough about how this orb works to provide code examples, but I _may_ be willing to learn if it's not too involved
## Supporting Documentation Links:
Here's our current task that uses this orb:
Screenshot 2023-04-14 at 10 27 02 AM

We use this `shallow_checkout` orb (https://circleci.com/developer/orbs/orb/datacamp/shallow-checkout) for the following steps of this build, and it routinely runs the code checkout step in 9-10 seconds, which would be a great benefit to speed up our builds a bit

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue identifies the orb's code checkout step but names no file or test. Start by tracing the checkout implementation and any existing workflow checks in the repository; done means the orb supports the requested shallow checkout behavior without breaking its current checkout flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.