-
Notifications
You must be signed in to change notification settings - Fork 351
Closed as not planned
Description
Hello
We use r10k to create puppet environment based on an active git repository.
Sysadmins tend to create feature-branch (and do push-force in their dev environment).
Describe the Bug
Some environment (/etc/puppet/code/environments/dev_XXX) may be "stuck", git operations fail with something like:
fatal: bad object refs/remotes/cache/dev/YYY
error: ssh://<upstream repo>.git did not send all necessary objects
I encountered two types of issues:
- refs/remotes/cache/dev/YYY is gone (merged or deleted) => maybe --prune should be added (
def fetch(remote = 'cache') - refs/remotes/cache/dev/YYY: local hash does not exist anymore because DEV2 issued git push --force on his branch
Expected Behavior
On environment repositories (/etc/puppet/code/environments), maybe r10k should not do a "git fetch cache" as we just need code for a specific branch.
Steps to Reproduce
I think my issue is a race condition on active repository (aka concurrent r10k environment deploy) with people issuing "git push --force" on branches
Environment
- Version 3.15.4
- Platform Debian bookworm
alfsch