Skip to content

Commit e0b5c18

Browse files
authored
Separate the (experimental-)e2e coverage (#2130)
Give the experimental-e2e it's own set of output files for coverage vs the regular e2e.
1 parent 87e272b commit e0b5c18

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
- uses: codecov/[email protected]
8787
with:
8888
disable_search: true
89-
files: coverage/e2e.out
89+
files: coverage/experimental-e2e.out
9090
flags: experimental-e2e
9191
token: ${{ secrets.CODECOV_TOKEN }}
9292

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,14 @@ image-registry: ## Build the testdata catalog used for e2e tests and push it to
271271
test-e2e: SOURCE_MANIFEST := $(STANDARD_E2E_MANIFEST)
272272
test-e2e: KIND_CLUSTER_NAME := operator-controller-e2e
273273
test-e2e: GO_BUILD_EXTRA_FLAGS := -cover
274+
test-e2e: COVERAGE_NAME := e2e
274275
test-e2e: run image-registry prometheus e2e e2e-metrics e2e-coverage kind-clean #HELP Run e2e test suite on local kind cluster
275276

276277
.PHONY: test-experimental-e2e
277278
test-experimental-e2e: SOURCE_MANIFEST := $(EXPERIMENTAL_E2E_MANIFEST)
278279
test-experimental-e2e: KIND_CLUSTER_NAME := operator-controller-e2e
279280
test-experimental-e2e: GO_BUILD_EXTRA_FLAGS := -cover
281+
test-experimental-e2e: COVERAGE_NAME := experimental-e2e
280282
test-experimental-e2e: run image-registry prometheus experimental-e2e e2e e2e-metrics e2e-coverage kind-clean #HELP Run experimental e2e test suite on local kind cluster
281283

282284
.PHONY: prometheus
@@ -316,7 +318,7 @@ test-upgrade-e2e: kind-cluster run-latest-release image-registry pre-upgrade-set
316318

317319
.PHONY: e2e-coverage
318320
e2e-coverage:
319-
COVERAGE_OUTPUT=./coverage/e2e.out ./hack/test/e2e-coverage.sh
321+
COVERAGE_NAME=$(COVERAGE_NAME) ./hack/test/e2e-coverage.sh
320322

321323
#SECTION KIND Cluster Operations
322324

hack/test/e2e-coverage.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
COVERAGE_OUTPUT="${COVERAGE_OUTPUT:-${ROOT_DIR}/coverage/e2e.out}"
5+
COVERAGE_NAME="${COVERAGE_NAME:-e2e}"
66

77
OPERATOR_CONTROLLER_NAMESPACE="olmv1-system"
88
OPERATOR_CONTROLLER_MANAGER_DEPLOYMENT_NAME="operator-controller-controller-manager"
@@ -13,7 +13,8 @@ CATALOGD_MANAGER_DEPLOYMENT_NAME="catalogd-controller-manager"
1313
COPY_POD_NAME="e2e-coverage-copy-pod"
1414

1515
# Create a temporary directory for coverage
16-
COVERAGE_DIR=${ROOT_DIR}/coverage/e2e
16+
COVERAGE_OUTPUT=${ROOT_DIR}/coverage/${COVERAGE_NAME}.out
17+
COVERAGE_DIR=${ROOT_DIR}/coverage/${COVERAGE_NAME}
1718
rm -rf ${COVERAGE_DIR} && mkdir -p ${COVERAGE_DIR}
1819

1920
# Coverage-instrumented binary produces coverage on termination,

0 commit comments

Comments
 (0)