ci: --fetch-depth
See original GitHub issueBacktracking 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 runninggit fetch --depth=2
because the latter may not work as expected (?) if the repo was checked out weirdly (visactions/checkout@v3
breaking changes)cml ci --fetch-depth=2
is cross-CI compatible unlikeactions/checkout.with.fetch-depth: 2
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:13 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?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.