You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(ci-visibility): unshallow repository when git >= 2.27 [backport 1.17] (#6495)
Backport d4d2f78 from
#6268 to 1.17.
An unshallow command compatible with git >= 2.27 is now used when a
shallow repository is detected.
Additionally, packfile upload is improved by searching for commits found
in the repo that are not known to the ITR backend, rather than just
HEAD.
For tests, a shallow clone was created using `git clone --depth=1
https://github.com/pallets/flask.git`, with git log showing only one
result:
```
% git log --pretty=oneline
cb825687a592709f902f3d320d93987a0546fd28 (grafted, HEAD -> main, origin/main, origin/HEAD) Bump actions/checkout from 3.5.2 to 3.5.3 (#5186)
```
After:
```
cb825687a592709f902f3d320d93987a0546fd28 (HEAD -> main, origin/main, origin/HEAD) Bump actions/checkout from 3.5.2 to 3.5.3 (#5186)
51bf0fdd9018d63b7bc09db52a66b726c2c4bad8 Bump slsa-framework/slsa-github-generator from 1.6.0 to 1.7.0 (#5185)
0da5788efbda92b6b6239352c2b9a835efe0888f Bump dessant/lock-threads from 4.0.0 to 4.0.1 (#5184)
# ... ~20 lines
32d2f47ed1bf3f27fd46e1a54dd136688de9ab81 [pre-commit.ci] pre-commit autoupdate
c9b6110dec52ff483b42b1428221f903bf143788 (grafted) Merge branch '2.3.x'
7dbb2f7e05d2c0963e90016b1f7a3a45e98a865a (grafted) retarget pre-commit.ci
```
This is gated behind the unreleased Intelligent Test Runner (ITR)
functionality, so there is no risk of unexpectedly unshallowing
repositories.
## Checklist
- [x] Change(s) are motivated and described in the PR description.
- [x] Testing strategy is described if automated tests are not included
in the PR.
- [x] Risk is outlined (performance impact, potential for breakage,
maintainability, etc).
- [x] Change is maintainable (easy to change, telemetry, documentation).
- [x] [Library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
are followed. If no release note is required, add label
`changelog/no-changelog`.
- [x] Documentation is included (in-code, generated user docs, [public
corp docs](https://github.com/DataDog/documentation/)).
- [x] Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))
## Reviewer Checklist
- [x] Title is accurate.
- [x] No unnecessary changes are introduced.
- [x] Description motivates each change.
- [x] Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes unless absolutely necessary.
- [x] Testing strategy adequately addresses listed risk(s).
- [x] Change is maintainable (easy to change, telemetry, documentation).
- [x] Release note makes sense to a user of the library.
- [x] Reviewer has explicitly acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment.
- [x] Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
Co-authored-by: Romain Komorn <[email protected]>
0 commit comments