gustavobini opened a new issue, #7468:
URL: https://github.com/apache/incubator-devlake/issues/7468

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   When syncing GitHub, a few repositories had errors as they were cloned with 
`--bare --shallow-since=2024-03-09T13:24:51Z` and the last commit on these 
repositories was over 3 months before the date.
   
   ### What do you expect to happen
   
   I expected a warning to be shown and not an error, as it's expected for the 
extractor to not do anything if there's no repository.
   
   ### How to reproduce
   
   Set the sync policy to only include the last day and sync a GitHub 
repository with changes before that date.
   
   ### Anything else
   
   ```
   time="2024-05-14 00:04:15" level=info msg=" [pipeline service] [pipeline 
#773] [task #60301] executing subtask Clone Git Repo"
   time="2024-05-14 00:04:15" level=debug msg=" [pipeline service] [pipeline 
#773] [task #60301] [Clone Git Repo] [gitcli] git [clone 
https://git:<redacted>@github.com/org/repo.git /tmp/gitextractor1800277984 
--bare --progress --shallow-since=2024-03-09T13:24:51Z]"
   time="2024-05-14 00:04:16" level=error msg=" [pipeline service] [pipeline 
#773] [task #60301] [Clone Git Repo] [gitcli] git exited with error\nstderr: 
Cloning into bare repository '/tmp/gitextractor1800277984'...\nstderr: fatal: 
error processing shallow info: 4\n\n\tcaused by: exit status 128"
   time="2024-05-14 00:04:16" level=info msg=" [pipeline service] [pipeline 
#773] [task #60301] finished step: 1 / 4"
   time="2024-05-14 00:04:16" level=info msg=" [pipeline service] [pipeline 
#773] [task #60301] executing subtask Collect Commits"
   time="2024-05-14 00:04:16" level=error msg=" [pipeline service] [pipeline 
#773] [task #60301] run task failed with panic\n\tcaused by: run task failed 
with panic 
(github.com/apache/incubator-devlake/plugins/gitextractor/tasks.getGitRepo:87)\n\tWraps:
 (2) git repo is empty, please check subtask: clone repo\n\tError types: (1) 
*hintdetail.withDetail (2) *errors.errorString"
   ```
   
   ### Version
   
   v1.0.0-beta7
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to