game-ci / docker

Series of CI-specialised docker images for Unity.
https://hub.docker.com/u/unityci
MIT License
392 stars 121 forks source link

Fail to build containers because of failing git lfs checkout #230

Closed HaSa1002 closed 6 months ago

HaSa1002 commented 9 months ago

Bug description

Your git lfs quota ran out and thus we can't build our custom windows docker images. Please consider to not use git lfs even though these files are big but they don't seem to be updated often.

How to reproduce

git clone https://github.com/game-ci/docker.git . git lfs pull

Expected behavior

The assets should be checked out.

Additional details

I shared the full actions.yml here: https://github.com/game-ci/documentation/issues/38#issuecomment-1668276824 Anyway here's the issue:


Run docker build https://github.com/game-ci/docker.git#main:images/windows/base --build-arg windowsImage="mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022" -t unityci/base:22
unable to prepare context: unable to 'git clone' to temporary context directory: error checking out main: Downloading reference-project/Assets/ExampleAssets/Models/ConstructionLight_Low.fbx (128 KB)
Error downloading object: reference-project/Assets/ExampleAssets/Models/ConstructionLight_Low.fbx (b4a1b74): Smudge error: Error downloading reference-project/Assets/ExampleAssets/Models/ConstructionLight_Low.fbx (b4a1b74c94d69fd330a28c37c65fb85d8f0eb62b7a8f04e94efa301152707b37): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Errors logged to 'C:\Users\hive_actionrunner\AppData\Local\Temp\docker-build-git3450166669\.git\lfs\logs\20231004T044043.9965492.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: reference-project/Assets/ExampleAssets/Models/ConstructionLight_Low.fbx: smudge filter lfs failed
: exit status 128
Error: Process completed with exit code 1.
HaSa1002 commented 9 months ago

CC @salvluc, @avexules, @RosaMeissner fyi

AndrewKahr commented 6 months ago

The LFS file is more for our testing workflows, none of the files critical to image building relies on lfs. Thus you can pull using the following to skip lfs files and not be impacted should this happen again in the future:

set GIT_LFS_SKIP_SMUDGE=1
git clone https://github.com/game-ci/docker.git .