Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-33215

Build Failure with BuildConfig from Git Repository Containing Nexus LFS Files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.17.0
    • 4.12
    • Build
    • None
    • No
    • 2
    • Builds Sprint #5
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, builds could not set the `GIT_LFS_SKIP_SMUDGE` environment variable and use its value when cloning the source code. This caused builds to fail for some Git repositories with LFS files. With this release, the build is able to set this environment variable and use it during the `git clone` step of the build, which resolves the issue. (link:https://issues.redhat.com/browse/OCPBUGS-33215[*OCPBUGS-33215*])
      Show
      * Previously, builds could not set the `GIT_LFS_SKIP_SMUDGE` environment variable and use its value when cloning the source code. This caused builds to fail for some Git repositories with LFS files. With this release, the build is able to set this environment variable and use it during the `git clone` step of the build, which resolves the issue. (link: https://issues.redhat.com/browse/OCPBUGS-33215 [* OCPBUGS-33215 *])
    • Bug Fix
    • Done

      Description of problem:

      Builds from a buildconfig are failing on OCP 4.12.48. The developers are impacted since large files cant be cloned anymore within a BuildConfig.
      

      Version-Release number of selected component (if applicable):

      4.12.48

      How reproducible:

      Always

      Steps to Reproduce:

      The issue is fixed in version 4.12.45 as per https://issues.redhat.com/browse/OCPBUGS-23419 but still the issue persists in 4.12.48

      Actual results:

      The build is failing.

      Expected results:

      The build should work without any issues.

      Additional info:

      Build fails with error:
      ```
      Adding cluster TLS certificate authority to trust store
      Cloning "https://<path>.git" ...
      error: Downloading <github-repo>/projects/<path>.mp4 (70 MB)
      Error downloading object: <github-repo>/projects/<path>.mp44 (a11ce74): Smudge error: Error downloading <github-repo>/projects/<path>.mp4 (a11ce745c147aa031dd96915716d792828ae6dd17c60115b675aba75342bb95a): batch request: missing protocol: "origin.git/info/lfs"
      Errors logged to /tmp/build/inputs/.git/lfs/logs/20240430T112712.167008327.log
      Use `git lfs logs last` to view the log.
      error: external filter 'git-lfs filter-process' failed
      fatal: <github-repo>/projects/<path>.mp4: smudge filter lfs failed
      warning: Clone succeeded, but checkout failed.
      You can inspect what was checked out with 'git status'
      and retry with 'git restore --source=HEAD :/'
      ```
      
      
      

              rh-ee-apjagtap Apoorva Jagtap
              rhn-support-disharma Diksha Sharma
              Apoorva Jagtap Apoorva Jagtap
              Steven Smith Steven Smith
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: