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

Git Resource (PipelineResource) seems to be broken for GitHub LFS #2997

Closed
eqqe opened this issue Jul 23, 2020 · 4 comments
Closed

Git Resource (PipelineResource) seems to be broken for GitHub LFS #2997

eqqe opened this issue Jul 23, 2020 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@eqqe
Copy link
Contributor

eqqe commented Jul 23, 2020

Expected Behavior

A Git Resource pointing to a GitHub using LFS should be cloned correctly.

Actual Behavior

The large files are not cloned correctly they are replaced by small files (100 Bytes instead of 150MB)

Steps to Reproduce the Problem

  1. Create a GitHub repository and push large files using Git LFS
  2. Create a Git Resource (PipelineResource) pointing to this GitHub repository
  3. Launch the pipeline and see that the message "Successfully cloned" and notice that the files size is incorrect.

Additional Info

  • Kubernetes version:

    Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
  • Tekton Pipeline version:

    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
    v0.14.2

@eqqe eqqe added the kind/bug Categorizes issue or PR as related to a bug. label Jul 23, 2020
@ghost
Copy link

ghost commented Jul 23, 2020

I hadn't heard of git lfs before, for anyone else looking at this it's documented here: https://git-lfs.github.com/

Sounds like we'd need to install the lfs extension as part of tekton's git-init image.

@vdemeester
Copy link
Member

@eqqe @sbwsg indeed, we do not have git-lfs installed in our git-init image so we don't support Git LFS. As PipelineResource are not in v1beta1 and their future still being discussed, I think the best "workaround" right now would be to use a git-clone task (like the one in the catalog but with a different image/script 😅 ).

@eqqe
Copy link
Contributor Author

eqqe commented Jul 24, 2020

@vdemeester I opened PR #3006 to install git-lfs int the git-init image. Is it a problem for the future of PipelineResource as you have mentioned it?

@ghost
Copy link

ghost commented Sep 10, 2020

Looks like this has been resolved by #3006 which was in the 0.16 release.

@ghost ghost closed this as completed Sep 10, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants