File tree Expand file tree Collapse file tree 8 files changed +11
-35
lines changed Expand file tree Collapse file tree 8 files changed +11
-35
lines changed Original file line number Diff line number Diff line change 25
25
steps :
26
26
- name : allowed message
27
27
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 }}"
49
28
50
29
int-tests :
51
30
needs : allowed
Original file line number Diff line number Diff line change 38
38
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39
39
AWS_ACCOUNT_ARN_LIST : ${{ secrets.AWS_ACCOUNT_ARN_LIST }}
40
40
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
50
43
- name : Upload operator logs
51
44
if : ${{ failure() }}
52
45
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -280,7 +280,8 @@ jobs:
280
280
if : ${{ success() }}
281
281
uses : codecov/codecov-action@v5
282
282
with :
283
- name : ${{ matrix.test }}
283
+ name : e2e-${{ matrix.test }}
284
+ flags : e2e,${{ matrix.test }}
284
285
token : ${{ secrets.CODECOV_TOKEN }}
285
286
files : test/e2e/coverprofile.out
286
287
verbose : true
Original file line number Diff line number Diff line change 56
56
- name : Upload coverage to Codecov
57
57
uses : codecov/codecov-action@v5
58
58
with :
59
- name : ${{ matrix.test }}
59
+ name : int-${{ matrix.test }}
60
+ flags : integration,${{ matrix.test }}
60
61
token : ${{ secrets.CODECOV_TOKEN }}
61
- files : ${{ matrix.path }}/ coverprofile.out
62
+ files : coverprofile.out
62
63
verbose : true
63
64
Original file line number Diff line number Diff line change 28
28
uses : codecov/codecov-action@v5
29
29
with :
30
30
name : unit-tests
31
+ flags : unit
31
32
token : ${{ secrets.CODECOV_TOKEN }}
32
33
files : coverage.out
33
34
verbose : true
Original file line number Diff line number Diff line change 49
49
needs :
50
50
- run-tests
51
51
uses : ./.github/workflows/test-unit.yml
52
+ secrets : inherit
52
53
53
54
check-licenses :
54
55
needs :
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ KUBEBUILDER_ASSETS ?= $(ENVTEST_ASSETS_DIR)/k8s/$(ENVTEST_K8S_VERSION)-$(TARGET_
97
97
# Ginkgo configuration
98
98
GINKGO_NODES ?= 12
99
99
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
101
101
GINKGO_FILTER_LABEL ?=
102
102
ifneq ($(GINKGO_FILTER_LABEL ) ,)
103
103
GINKGO_FILTER_LABEL_OPT := --label-filter="$(GINKGO_FILTER_LABEL ) "
Original file line number Diff line number Diff line change 15
15
16
16
AKO_E2E_TEST=1 ginkgo --output-interceptor-mode=none --label-filter=" ${filter} " --timeout 120m --nodes=10 \
17
17
--flake-attempts=1 --race --cover --v --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/... \
18
- --coverprofile=. coverprofile.out
18
+ --coverprofile=coverprofile.out
You can’t perform that action at this time.
0 commit comments