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.

`exp`: CI runs require unshallow clone (fetch-depth: >1)

See original GitHub issue

Summary: dvc exp commands will not run in CML or other Github actions (and probably the same on other Git servers?) because they will only fetch the head commit by default, which is insufficient for internal git merges. The solution is in https://github.com/iterative/dvc/issues/7547#issuecomment-1088702706.

Not sure where to document this or even whether it belongs in DVC, CML, or both. @casperdcl Maybe you have thoughts?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
casperdclcommented, May 25, 2022

Not sure where to document this or even whether it belongs in DVC, CML, or both

definitely docs in both because

It’s an issue in many CI scenarios (with or without CML).

Makes sense to mention in:

3reactions
daavoocommented, May 25, 2022

What about creating a new section in https://dvc.org/doc/user-guide/troubleshooting , catching the specific exception on DVC side, and make it point to that URL

Read more comments on GitHub >

github_iconTop Results From Across the Web

`fetch-depth: 1` and not cloning tags are dangerous defaults ...
I've noticed that lerna runs & versions incorrectly in my github actions workflow, but once running lerna version locally, everything works fine ...
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 >
How and when to perform a git clone depth 1 example
In this git clone depth 1 example, we'll walk you through the process of pulling only one commit and one branch back from...
Read more >
Get up to speed with partial clone and shallow clone
git clone --depth=1 <url> creates a shallow clone. These clones truncate the commit history to reduce the clone size.
Read more >
GIT_DEPTH=0 does not work as expected, it does not ... - GitLab
The only work-around I found was to add - git fetch --unshallow ... Project Setting "Git shallow clone" and "GIT_DEPTH" no longer working....
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