Skip to content

Commit c730fbc

Browse files
perdasilvaPer Goncalves da Silvatmshort
authored
🌱 bump all the things (#3374)
* update libraries Signed-off-by: Per Goncalves da Silva <[email protected]> * update vendor Signed-off-by: Per Goncalves da Silva <[email protected]> * update generated code Signed-off-by: Per Goncalves da Silva <[email protected]> * fixes Signed-off-by: Per Goncalves da Silva <[email protected]> * Update to generics Signed-off-by: Todd Short <[email protected]> * Separate out e2e flakes Signed-off-by: Todd Short <[email protected]> --------- Signed-off-by: Per Goncalves da Silva <[email protected]> Signed-off-by: Todd Short <[email protected]> Co-authored-by: Per Goncalves da Silva <[email protected]> Co-authored-by: Todd Short <[email protected]>
1 parent 27f347e commit c730fbc

File tree

2,322 files changed

+91344
-59871
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,322 files changed

+91344
-59871
lines changed

.bingo/Variables.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ $(KIND): $(BINGO_DIR)/kind.mod
4141
@echo "(re)installing $(GOBIN)/kind-v0.23.0"
4242
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=kind.mod -o=$(GOBIN)/kind-v0.23.0 "sigs.k8s.io/kind"
4343

44-
SETUP_ENVTEST := $(GOBIN)/setup-envtest-v0.0.0-20240522175850-2e9781e9fc60
44+
SETUP_ENVTEST := $(GOBIN)/setup-envtest-v0.0.0-20240813183042-b901db121e1f
4545
$(SETUP_ENVTEST): $(BINGO_DIR)/setup-envtest.mod
4646
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
47-
@echo "(re)installing $(GOBIN)/setup-envtest-v0.0.0-20240522175850-2e9781e9fc60"
48-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=setup-envtest.mod -o=$(GOBIN)/setup-envtest-v0.0.0-20240522175850-2e9781e9fc60 "sigs.k8s.io/controller-runtime/tools/setup-envtest"
47+
@echo "(re)installing $(GOBIN)/setup-envtest-v0.0.0-20240813183042-b901db121e1f"
48+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=setup-envtest.mod -o=$(GOBIN)/setup-envtest-v0.0.0-20240813183042-b901db121e1f "sigs.k8s.io/controller-runtime/tools/setup-envtest"
4949

5050
YQ := $(GOBIN)/yq-v3.0.0-20201202084205-8846255d1c37
5151
$(YQ): $(BINGO_DIR)/yq.mod

.bingo/setup-envtest.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ go 1.22.0
44

55
toolchain go1.22.3
66

7-
require sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240522175850-2e9781e9fc60
7+
require sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240813183042-b901db121e1f

.bingo/setup-envtest.sum

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
33
github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
44
github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
5+
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
6+
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
57
github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ=
68
github.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR8/Gg=
9+
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
710
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
811
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
912
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
@@ -27,12 +30,18 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
2730
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
2831
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
2932
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
33+
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
34+
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
3035
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
3136
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3237
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
3338
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
3439
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
3540
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240522175850-2e9781e9fc60 h1:ihaeBTCFuEYPL1T1/FqAavDY7z5UcKSnWpnb+I3DYeM=
3641
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240522175850-2e9781e9fc60/go.mod h1:4+4tM2Es0ycqPedATtzPer5RTrUq3Xab59BYogt0mCE=
42+
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240813183042-b901db121e1f h1:RIqUbZQO5yizUt9nozxQdzyLRD1sG6s2oi/QZrlg/hs=
43+
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240813183042-b901db121e1f/go.mod h1:IaDsO8xSPRxRG1/rm9CP7+jPmj0nMNAuNi/yiHnLX8k=
3744
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
3845
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
46+
sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=
47+
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=

.bingo/variables.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ HELM="${GOBIN}/helm-v3.15.1"
1616

1717
KIND="${GOBIN}/kind-v0.23.0"
1818

19-
SETUP_ENVTEST="${GOBIN}/setup-envtest-v0.0.0-20240522175850-2e9781e9fc60"
19+
SETUP_ENVTEST="${GOBIN}/setup-envtest-v0.0.0-20240813183042-b901db121e1f"
2020

2121
YQ="${GOBIN}/yq-v3.0.0-20201202084205-8846255d1c37"
2222

.github/workflows/e2e-tests.yml

Lines changed: 72 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
parallel-id: [0, 1, 2, 3, flakes]
42+
parallel-id: [0, 1, 2, 3]
4343
runs-on: ubuntu-latest
4444
env:
4545
# absolute path to test artifacts directory
@@ -92,7 +92,6 @@ jobs:
9292
9393
# run non-flakes if matrix-id is not 'flakes'
9494
- name: Run e2e tests
95-
if: ${{ matrix.parallel-id != 'flakes' }}
9695
# calculate the number of chunks as the number of parallel jobs minus 1 (flakes job)
9796
# use the split tool to split the test suite into chunks and run the chunk corresponding to the matrix-id
9897
# focus on those tests and skip tests marked as FLAKE
@@ -101,13 +100,6 @@ jobs:
101100
GINKGO_OPTS="${GINKGO_OPTS} -focus '$(go run ./test/e2e/split/... -chunks $E2E_TEST_NUM_CHUNKS -print-chunk $E2E_TEST_CHUNK ./test/e2e)' -skip '\[FLAKE\]'" \
102101
make e2e;
103102
104-
# run e2e tests for flakes if matrix-id is 'flakes'
105-
- name: Run flaky e2e tests
106-
if: ${{ matrix.parallel-id == 'flakes' }}
107-
# focus on tests marked as FLAKE
108-
run: |
109-
GINKGO_OPTS="${GINKGO_OPTS} -focus '\[FLAKE\]'" make e2e
110-
111103
# archive test results
112104
- name: Archive Test Artifacts
113105
if: ${{ always() }}
@@ -128,4 +120,74 @@ jobs:
128120
if: ${{ needs.e2e.result == 'failure' }}
129121
run: |
130122
echo 'Failure: at least one e2e matrix job has failed'
131-
exit 1
123+
exit 1
124+
125+
# Run e2e tests in parallel jobs
126+
# Take olm image from the previous stage
127+
e2e-flakes:
128+
needs: build
129+
strategy:
130+
fail-fast: false
131+
runs-on: ubuntu-latest
132+
env:
133+
# absolute path to test artifacts directory
134+
ARTIFACT_DIR: ${{ github.workspace }}/artifacts
135+
E2E_NODES: 1
136+
E2E_KUBECONFIG_ROOT: ${{ github.workspace }}/kubeconfigs
137+
steps:
138+
# checkout code and setup go
139+
- uses: actions/checkout@v4
140+
- uses: actions/setup-go@v5
141+
with:
142+
go-version-file: "go.mod"
143+
144+
# load the olm image
145+
- name: Load OLM Docker image
146+
uses: actions/download-artifact@v4
147+
with:
148+
name: olm-image.tar
149+
path: .
150+
- run: docker load < olm-image.tar
151+
152+
# set e2e environment variables
153+
# Set ginkgo output and parallelism
154+
- run: echo "GINKGO_OPTS=-output-dir ${ARTIFACT_DIR} -junit-report junit_e2e.xml -nodes ${E2E_NODES}" >> $GITHUB_ENV
155+
156+
# Setting -kubeconfig-root tells the e2e test suite to look for kubeconfigs
157+
# in <kubeconfig-root>/kubeconfig-<node-number>
158+
# This is used to run tests in parallel on multiple clusters as the current e2e
159+
# test suite does not support running tests in parallel on a single cluster
160+
- run: echo "E2E_OPTS=-kubeconfig-root=${E2E_KUBECONFIG_ROOT}" >> $GITHUB_ENV
161+
162+
# run e2e tests
163+
# create artifacts directory
164+
- run: mkdir -p ${ARTIFACT_DIR}
165+
166+
# deploy test clusters
167+
- name: Deploy test cluster(s)
168+
# create kubeconfig root and store the kubeconfig for each cluster within it as you create the clusters
169+
# Add kind and helm options to specify kubeconfig location
170+
# Deploy the new cluster and helm install olm for testing
171+
run: |
172+
mkdir -p ${E2E_KUBECONFIG_ROOT}
173+
for i in $(seq 1 ${E2E_NODES}); do
174+
KIND_CLUSTER_NAME="kind-olmv0-${i}" \
175+
KIND_CREATE_OPTS="--kubeconfig=${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
176+
HELM_INSTALL_OPTS="--kubeconfig ${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
177+
make kind-create deploy;
178+
done
179+
180+
# run e2e tests for flakes if matrix-id is 'flakes'
181+
- name: Run flaky e2e tests
182+
# focus on tests marked as FLAKE
183+
run: |
184+
GINKGO_OPTS="${GINKGO_OPTS} -focus '\[FLAKE\]'" make e2e
185+
186+
# archive test results
187+
- name: Archive Test Artifacts
188+
if: ${{ always() }}
189+
uses: actions/upload-artifact@v4
190+
with:
191+
name: e2e-test-output-${{ (github.event.pull_request.head.sha || github.sha) }}-${{ github.run_id }}-flakes
192+
path: ${{ env.ARTIFACT_DIR }}/*
193+
# TODO: create job to combine test artifacts using code in https://github.com/operator-framework/operator-lifecycle-manager/pull/1476

0 commit comments

Comments
 (0)