From 21eb3c59ba6f059296f5c29c861dec345e955683 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Wed, 2 Jun 2021 12:44:50 +0300 Subject: [PATCH] Add e2e tests for large Git repositories Signed-off-by: Stefan Prodan --- .github/workflows/e2e.yaml | 5 +++++ config/testdata/git/large-repo.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 config/testdata/git/large-repo.yaml diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index e7cdce0dd..230c10c78 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -97,6 +97,11 @@ jobs: kubectl -n source-system apply -f ./config/testdata/helmchart-from-bucket/source.yaml kubectl -n source-system wait bucket/charts --for=condition=ready --timeout=1m kubectl -n source-system wait helmchart/helmchart-bucket --for=condition=ready --timeout=1m + - name: Run large Git repo tests + run: | + kubectl -n source-system apply -f ./config/testdata/git/large-repo.yaml + kubectl -n source-system wait gitrepository/large-repo-go-git --for=condition=ready --timeout=2m + kubectl -n source-system wait gitrepository/large-repo-libgit2 --for=condition=ready --timeout=2m - name: Logs run: | kubectl -n source-system logs deploy/source-controller diff --git a/config/testdata/git/large-repo.yaml b/config/testdata/git/large-repo.yaml new file mode 100644 index 000000000..3d641a54c --- /dev/null +++ b/config/testdata/git/large-repo.yaml @@ -0,0 +1,27 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta1 +kind: GitRepository +metadata: + name: large-repo-go-git +spec: + gitImplementation: go-git + interval: 10m + url: https://github.com/hashgraph/hedera-mirror-node.git + ref: + branch: master + ignore: | + /* + !/charts +--- +apiVersion: source.toolkit.fluxcd.io/v1beta1 +kind: GitRepository +metadata: + name: large-repo-libgit2 +spec: + gitImplementation: libgit2 + interval: 10m + url:https://github.com/hashgraph/hedera-mirror-node.git + ref: + branch: master + ignore: | + /* + !/charts