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 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 4949 needs :
5050 - run-tests
5151 uses : ./.github/workflows/test-unit.yml
52+ secrets : inherit
5253
5354 check-licenses :
5455 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_
9797# Ginkgo configuration
9898GINKGO_NODES ?= 12
9999GINKGO_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
101101GINKGO_FILTER_LABEL ?=
102102ifneq ($(GINKGO_FILTER_LABEL ) ,)
103103GINKGO_FILTER_LABEL_OPT := --label-filter="$(GINKGO_FILTER_LABEL ) "
Original file line number Diff line number Diff line change 1515
1616AKO_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
You can’t perform that action at this time.
0 commit comments