-
Notifications
You must be signed in to change notification settings - Fork 10
Fix the async-profiler re-fetch #249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🔧 Report generated by pr-comment-scanbuild |
| commandLine 'rm', '-rf', targetDir.absolutePath | ||
| } | ||
| exec { | ||
| commandLine 'git', 'clone', '--branch', branch_lock, 'https://github.com/datadog/async-profiler.git', targetDir.absolutePath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove the depth 1 ?
exec {
commandLine 'git', 'clone', '--depth', '1', '--branch', branch_lock, 'https://github.com/datadog/async-profiler.git', targetDir.absolutePath
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not allow moving the branch head and locking on a certain commit. It basically defeats the purpose of having the commit hash in the lock.
The async-profiler history is pretty light-weight so we are not saving that much by having just 1 level.
We may revisit this later and maybe lock the branch only and use the commit just as a check for whether we need to refresh the contents?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comment otherwise LGTM
The 'fetch/checkout' combo is not working well for updating the upstream repo.
It is replaced with 'clean/clone/checkout' instead