question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ci: --fetch-depth

See original GitHub issue

Backtracking on not doing this earlier - cml ci --fetch-depth=<int> is a good idea

  • depth=0 could be an alias for --unshallow
  • could thus deprecate (hide) --unshallow
  • things like depth=2 is useful for e.g. dvc metrics diff HEAD~1 CC @shcheklein @dberenbaum @pmrowla
  • cml ci --fetch-depth=2 is more trustworthy than manually running git fetch --depth=2 because the latter may not work as expected (?) if the repo was checked out weirdly (vis actions/checkout@v3 breaking changes)
  • cml ci --fetch-depth=2 is cross-CI compatible unlike actions/checkout.with.fetch-depth: 2

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
deepyamancommented, Oct 3, 2022

Hello! I’ve been curious about CML for some time, and Hacktoberfest seems like a good opportunity to dive in. Can I take a stab at this issue?

Based on a quick look, I think this would involve modifying similar code as in https://github.com/iterative/cml/pull/957/files. @casperdcl Just to confirm, based on your description, should the fix deprecate --unshallow at the same time?

2reactions
deepyamancommented, Oct 12, 2022

Sorry for the delay. This is still very much on my list of things to do; got busy, but I hope to have a PR by later this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

YAML build ignores fetchDepth - Visual Studio Feedback
Some time on 2018-07-13 our YAML build stopped taking fetchDepth parameter into ... Creating a CI/CD pipeline with Azure Pipelines by Google Cloud....
Read more >
Shallow fetch for repository - Stack Overflow
I have an Azure Pipeline (yaml) which uses templates and I'm trying to figure out how to setup the fetch depth of the...
Read more >
Build Azure Repos Git repositories - Azure Pipelines
Continuous integration (CI) triggers cause a pipeline to run whenever ... each time fetchDepth: number # the depth of commits to ask Git...
Read more >
ci | CML
Command Reference: ci. cml ci [options]. Prepares Git repository for CML ... --fetch-depth=<number> : Commits to fetch (use 0 for all branches &...
Read more >
GIT_DEPTH=0 does not work as expected, it does not ... - GitLab
here's a sample of mine. .gitlab-ci.yml: stages: - code quality - build - deploy ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found