From 8198c17bd024d47e233d89a7107a9076ff35ad07 Mon Sep 17 00:00:00 2001 From: Dom Del Nano Date: Sat, 7 Oct 2023 09:54:44 -0700 Subject: [PATCH] Remove git lfs from the repo to avoid quota exhausted issues in CI build --- .gitattributes | 1 - .gitignore | 1 + Makefile | 11 ++++++++--- 3 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 3c332ba8..00000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -**/*.iso filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore index 472d0cad..571e2aad 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ main.tf terraform.tfstate* dist/ vendor +xoa/testdata/alpine-virt-3.17.0-x86_64.iso diff --git a/Makefile b/Makefile index b0ea2639..d4eda740 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: import testacc testclient test dist +.PHONY: import testacc testclient test dist ci TIMEOUT ?= 40m GOMAXPROCS ?= 5 @@ -36,7 +36,12 @@ test: testclient testacc testclient: cd client; go test $(TEST) -v -count 1 -testacc: +testacc: xoa/testdata/alpine-virt-3.17.0-x86_64.iso TF_ACC=1 $(TF_LOG) go test $(TEST) -parallel $(GOMAXPROCS) -v -count 1 -timeout $(TIMEOUT) -sweep=true -ci: + +# This file was previously stored in the git repo with git lfs. GitHub +# has a very low quota for number of allowed clones and so this needed +# to be removed from the repo. Add a target to enforce that the CI system +# has copied that file into place before the tests run +ci: xoa/testdata/alpine-virt-3.17.0-x86_64.iso TF_ACC=1 gotestsum --debug --rerun-fails=5 --max-fails=15 --packages=./xoa -- ./xoa -v -count=1 -timeout=$(TIMEOUT) -sweep=true -parallel=$(GOMAXPROCS)