Skip to content
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

Concurrent vendir processes interfere with each other #346

Closed
Zebradil opened this issue Dec 30, 2023 · 0 comments · Fixed by #345
Closed

Concurrent vendir processes interfere with each other #346

Zebradil opened this issue Dec 30, 2023 · 0 comments · Fixed by #345
Labels
bug This issue describes a defect or unexpected behavior carvel-accepted This issue should be considered for future work and that the triage process has been completed

Comments

@Zebradil
Copy link
Member

What steps did you take:

I ran several vendir processes with the same working directory.

What happened:

At least one of the processes failed.

What did you expect:

Vendir successfully finishes the job.

Anything else you would like to add:

Test script:

#!/usr/bin/env bash

oldDir="$PWD"

cd "$(mktemp -d)" || exit

for i in {1..2}; do
    cat <<EOF | vendir sync -f - &
apiVersion: vendir.k14s.io/v1alpha1
kind: Config
directories:
- path: vendor/dest-$i
  contents:
  - path: .
    git:
      url: https://github.com/carvel-dev/ytt
      ref: v0.27.x
      depth: 1
    includePaths:
      - README.md
      - pkg/version/version.go
EOF
done

wait
find .
cd "$oldDir" || exit

Result:

$ bash test.sh
Fetching: vendor/dest-1 + . (git from https://github.com/carvel-dev/ytt@v0.27.x)

  --> git init
Fetching: vendor/dest-2 + . (git from https://github.com/carvel-dev/ytt@v0.27.x)

vendir: Error: Syncing directory 'vendor/dest-1':
  Syncing directory '.' with git contents:
    Fetching git repository:
      Git [init]: fork/exec /usr/bin/git: no such file or directory (stderr: )

vendir: Error: Syncing directory 'vendor/dest-2':
  Syncing directory '.' with git contents:
    Creating incoming dir '/tmp/tmp.VpBZuEtCGA/.vendir-tmp/incoming/git' for git: mkdir /tmp/tmp.VpBZuEtCGA/.vendir-tmp/incoming/git: no such file or directory
.

Environment:

  • vendir version 0.38.0
  • OS: latest Arch Linux x86_64

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@Zebradil Zebradil added bug This issue describes a defect or unexpected behavior carvel-triage This issue has not yet been reviewed for validity labels Dec 30, 2023
@renuy renuy moved this to In Progress in Carvel Jan 2, 2024
@renuy renuy added carvel-accepted This issue should be considered for future work and that the triage process has been completed and removed carvel-triage This issue has not yet been reviewed for validity labels Jan 2, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Closed in Carvel Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a defect or unexpected behavior carvel-accepted This issue should be considered for future work and that the triage process has been completed
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants