Open afscrome opened 1 week ago
Setting AGENT_USE_FETCH_FILTER_IN_CHECKOUT_TASK
no longer seems to be required, but the issue still occurs.
I believe the problem is the final checkout call is missing credentials (presumably --config-env=http.extraheader=env_var_http.extraheader
)
git checkout --progress --force refs/remotes/origin/edb49c62b56ceb393542ebb413c58b39130fd07e
If you add a second checkout step before with persistCredential: true
, then the treeless clone works correctly.
steps:
# Fake checkout in order to get credentials persisted, after which point the second treeless clone works
- checkout: self
persistCredentials: true
path: fake
- checkout: self
fetchFilter: tree:0
fetchDepth: 1
fetchTags: false
What happened?
If you add a
fetchFilter
(from #4693) to the checkout task (as well as enabling theAGENT_USE_FETCH_FILTER_IN_CHECKOUT_TASK
knob), then the checkout manages to fetch objects from the remotes, but fails on the finalgit checkout
task with an authentication issue:There is a warning in the result suggesting changing
fetchDepth
, however I get the same issue regardless of whether I set fetch depthRepo pipeline:
Versions
Current agent version: '3.241.0'
Operating System Ubuntu 22.04.4 LTS
Runner Image Image: ubuntu-22.04 Version: 20240616.1.0 Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240616.1/images/ubuntu/Ubuntu2204-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240616.1
Runner Image Provisioner 2.0.370.1 Current image version: '20240616.1.0'
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 22.04.04 LTS
Version controll system
Git
Relevant log output