Skip to content

Commit cc82b60

Browse files
authored
fix test coverage (pushing data)
1 parent 0498ccd commit cc82b60

File tree

8 files changed

+11
-35
lines changed

8 files changed

+11
-35
lines changed

.github/workflows/cloud-tests.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,6 @@ jobs:
2525
steps:
2626
- name: allowed message
2727
run: echo "Allowed to run"
28-
- name: check Github action bot comment
29-
if: github.event_name == 'pull_request'
30-
uses: peter-evans/find-comment@v3
31-
id: find-bot-comment
32-
with:
33-
issue-number: ${{ github.event.pull_request.number }}
34-
comment-author: github-actions[bot]
35-
body-includes: 'https://app.codecov.io/github/mongodb/mongodb-atlas-kubernetes/commit'
36-
- name: edit comment if exists
37-
if: github.event_name == 'pull_request' && steps.find-bot-comment.outputs.comment-id != ''
38-
uses: peter-evans/create-or-update-comment@v4
39-
with:
40-
edit-mode: replace
41-
comment-id: ${{ steps.find-bot-comment.outputs.comment-id }}
42-
body: https://app.codecov.io/github/mongodb/mongodb-atlas-kubernetes/commit/${{ github.event.pull_request.head.sha }}
43-
- name: comment PR
44-
if: github.event_name == 'pull_request' && steps.find-bot-comment.outputs.comment-id == ''
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
run: |
48-
gh pr comment ${{ github.event.pull_request.number }} -R mongodb/mongodb-atlas-kubernetes -b "https://app.codecov.io/github/mongodb/mongodb-atlas-kubernetes/commit/${{ github.event.pull_request.head.sha }}"
4928

5029
int-tests:
5130
needs: allowed

.github/workflows/test-e2e-gov.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,8 @@ jobs:
3838
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3939
AWS_ACCOUNT_ARN_LIST: ${{ secrets.AWS_ACCOUNT_ARN_LIST }}
4040
PAGER_DUTY_SERVICE_KEY: ${{ secrets.PAGER_DUTY_SERVICE_KEY }}
41-
run: |
42-
devbox run -- '
43-
GOWORK=off &&
44-
cd test/e2e &&
45-
ginkgo labels &&
46-
echo "Running: AKO_E2E_TEST=1 ginkgo --label-filter=\"atlas-gov\" --timeout 120m --nodes=10 --flake-attempts=1 --randomize-all --race --cover --v --trace --show-nodes-events --output-interceptor-mode=none" &&
47-
AKO_E2E_TEST=1 ginkgo --label-filter="atlas-gov" --timeout 120m --nodes=10 --flake-attempts=1 \
48-
--randomize-all --race --cover --v --trace --show-node-events --output-interceptor-mode=none \
49-
--coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/...' --coverprofile=.coverprofile.out
41+
TEST_NAME: "atlas-gov"
42+
run: devbox run -- ./scripts/launch-ci-e2e.sh
5043
- name: Upload operator logs
5144
if: ${{ failure() }}
5245
uses: actions/upload-artifact@v4

.github/workflows/test-e2e.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ jobs:
280280
if: ${{ success() }}
281281
uses: codecov/codecov-action@v5
282282
with:
283-
name: ${{ matrix.test }}
283+
name: e2e-${{ matrix.test }}
284+
flags: e2e,${{ matrix.test }}
284285
token: ${{ secrets.CODECOV_TOKEN }}
285286
files: test/e2e/coverprofile.out
286287
verbose: true

.github/workflows/test-int.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ jobs:
5656
- name: Upload coverage to Codecov
5757
uses: codecov/codecov-action@v5
5858
with:
59-
name: ${{ matrix.test }}
59+
name: int-${{ matrix.test }}
60+
flags: integration,${{ matrix.test }}
6061
token: ${{ secrets.CODECOV_TOKEN }}
61-
files: ${{ matrix.path }}/coverprofile.out
62+
files: coverprofile.out
6263
verbose: true
6364

.github/workflows/test-unit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: codecov/codecov-action@v5
2929
with:
3030
name: unit-tests
31+
flags: unit
3132
token: ${{ secrets.CODECOV_TOKEN }}
3233
files: coverage.out
3334
verbose: true

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
needs:
5050
- run-tests
5151
uses: ./.github/workflows/test-unit.yml
52+
secrets: inherit
5253

5354
check-licenses:
5455
needs:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ KUBEBUILDER_ASSETS ?= $(ENVTEST_ASSETS_DIR)/k8s/$(ENVTEST_K8S_VERSION)-$(TARGET_
9797
# Ginkgo configuration
9898
GINKGO_NODES ?= 12
9999
GINKGO_EDITOR_INTEGRATION ?= true
100-
GINKGO_OPTS = -vv --randomize-all --output-interceptor-mode=none --trace --timeout 90m --flake-attempts=1 --race --nodes=$(GINKGO_NODES) --cover --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/... --coverprofile=.coverprofile.out
100+
GINKGO_OPTS = -vv --randomize-all --output-interceptor-mode=none --trace --timeout 90m --flake-attempts=1 --race --nodes=$(GINKGO_NODES) --cover --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/... --coverprofile=coverprofile.out
101101
GINKGO_FILTER_LABEL ?=
102102
ifneq ($(GINKGO_FILTER_LABEL),)
103103
GINKGO_FILTER_LABEL_OPT := --label-filter="$(GINKGO_FILTER_LABEL)"

scripts/launch-ci-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ fi
1515

1616
AKO_E2E_TEST=1 ginkgo --output-interceptor-mode=none --label-filter="${filter}" --timeout 120m --nodes=10 \
1717
--flake-attempts=1 --race --cover --v --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/... \
18-
--coverprofile=.coverprofile.out
18+
--coverprofile=coverprofile.out

0 commit comments

Comments
 (0)