Skip to content

Commit 1c7c438

Browse files
authored
chore: remove test tags (#4089)
1 parent 3751528 commit 1c7c438

File tree

134 files changed

+175
-242
lines changed

Some content is hidden

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

134 files changed

+175
-242
lines changed

.github/workflows/code-health.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
go install github.com/mattn/[email protected]
5151
- run: make unit-test
5252
- name: Send coverage
53+
if: matrix.os == 'ubuntu-latest'
5354
env:
5455
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
5556
run: goveralls -parallel -coverprofile="$COVERAGE" -ignore=test/* -service=github

.github/workflows/update-e2e-tests.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -13,53 +13,53 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
tags:
17-
- atlas,autogeneration
18-
- atlas,backup,compliancepolicy
19-
- atlas,backup,flex
20-
- atlas,backup,exports,buckets
21-
- atlas,backup,exports,jobs
22-
- atlas,backup,restores
23-
- atlas,backup,schedule
24-
- atlas,backup,snapshot
25-
- atlas,clusters,file
26-
- atlas,clusters,flags
27-
- atlas,clusters,flex
28-
- atlas,clusters,m0
29-
- atlas,clusters,sharded
30-
- atlas,clusters,upgrade
31-
- atlas,datafederation,db
32-
- atlas,datafederation,privatenetwork
33-
- atlas,datafederation,querylimits
34-
# - atlas,decrypt # requires live calls to GCP/AWS/Azure
35-
# - atlas,deployments,atlasclusters # one assertion connects to DB (needs live mode)
36-
# - atlas,deployments,local,auth,deprecated # needs docker to run
37-
# - atlas,deployments,local,auth,new # needs docker to run
38-
# - atlas,deployments,local,nocli # needs docker to run
39-
# - atlas,deployments,local,noauth # needs docker to run
40-
- atlas,generic
41-
- atlas,interactive
42-
- atlas,ldap
43-
- atlas,livemigrations
44-
- atlas,logs
45-
- atlas,metrics
46-
- atlas,networking
47-
- atlas,onlinearchive
48-
- atlas,performanceAdvisor
49-
- atlas,plugin,install
50-
- atlas,plugin,run
51-
- atlas,plugin,uninstall
52-
- atlas,plugin,update
53-
- atlas,processes
54-
- atlas,search
55-
- atlas,search_nodes
56-
- atlas,serverless,instance
57-
- atlas,streams
58-
- atlas,streams_with_cluster
59-
- atlas,clusters,iss
16+
packages:
17+
- atlas/autogeneration
18+
- atlas/backup/compliancepolicy
19+
- atlas/backup/flex
20+
- atlas/backup/exports/buckets
21+
- atlas/backup/exports/jobs
22+
- atlas/backup/restores
23+
- atlas/backup/schedule
24+
- atlas/backup/snapshot
25+
- atlas/clusters/file
26+
- atlas/clusters/flags
27+
- atlas/clusters/flex
28+
- atlas/clusters/m0
29+
- atlas/clusters/sharded
30+
- atlas/clusters/upgrade
31+
- atlas/datafederation/db
32+
- atlas/datafederation/privatenetwork
33+
- atlas/datafederation/querylimits
34+
- atlas/decrypt
35+
- atlas/deployments/atlasclusters
36+
- atlas/deployments/local/auth/deprecated
37+
- atlas/deployments/local/auth/new
38+
- atlas/deployments/local/nocli
39+
- atlas/deployments/local/noauth
40+
- atlas/generic
41+
- atlas/interactive
42+
- atlas/ldap
43+
- atlas/livemigrations
44+
- atlas/logs
45+
- atlas/metrics
46+
- atlas/networking
47+
- atlas/onlinearchive
48+
- atlas/performanceAdvisor
49+
- atlas/plugin/install
50+
- atlas/plugin/run
51+
- atlas/plugin/uninstall
52+
- atlas/plugin/update
53+
- atlas/processes
54+
- atlas/search
55+
- atlas/search_nodes
56+
- atlas/serverless/instance
57+
- atlas/streams
58+
- atlas/streams_with_cluster
59+
- atlas/clusters/iss
60+
- atlas/iam
6061
- brew
6162
- config
62-
- atlas,iam
6363
- kubernetes
6464
steps:
6565
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
@@ -78,7 +78,7 @@ jobs:
7878
- run: make e2e-test
7979
env:
8080
TEST_CMD: gotestsum --junitfile e2e-tests.xml --format standard-verbose --
81-
E2E_TAGS: ${{ matrix.tags }}
81+
E2E_TEST_PACKAGES: ./test/e2e/{{ matrix.packages }}..
8282
MONGODB_ATLAS_ORG_ID: ${{ secrets.MONGODB_ATLAS_ORG_ID }}
8383
MONGODB_ATLAS_PROJECT_ID: ${{ secrets.MONGODB_ATLAS_PROJECT_ID }}
8484
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.MONGODB_ATLAS_PUBLIC_API_KEY }}
@@ -101,13 +101,14 @@ jobs:
101101
E2E_TIMEOUT: 3h
102102
- name: set artifact name
103103
if: always()
104+
id: set-artifact-name
104105
run: |
105-
echo "NAME=snapshots_${{ matrix.tags }}" | sed "s|,|_|g" >> "$GITHUB_ENV"
106+
echo "NAME=snapshots_${{ matrix.packages }}" | sed "s|/|_|g" >> "$GITHUB_OUTPUT"
106107
- name: upload artifact
107108
if: always()
108109
uses: actions/[email protected]
109110
with:
110-
name: ${{ env.NAME }}
111+
name: ${{ steps.set-artifact-name.outputs.NAME }}
111112
path: test/e2e/testdata/.snapshots
112113
include-hidden-files: true
113114
- name: Test Summary
@@ -135,7 +136,7 @@ jobs:
135136
- run: make e2e-test
136137
env:
137138
TEST_CMD: gotestsum --junitfile e2e-tests.xml --format standard-verbose --
138-
E2E_TAGS: atlas,cleanup
139+
E2E_TEST_PACKAGES: ./test/internal..
139140
MONGODB_ATLAS_ORG_ID: ${{ secrets.MONGODB_ATLAS_ORG_ID }}
140141
MONGODB_ATLAS_PROJECT_ID: ${{ secrets.MONGODB_ATLAS_PROJECT_ID }}
141142
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.MONGODB_ATLAS_PUBLIC_API_KEY }}
@@ -154,7 +155,6 @@ jobs:
154155
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
155156
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
156157
E2E_TIMEOUT: 3h
157-
E2E_TEST_PACKAGES: ./test/internal..
158158
- name: Test Summary
159159
if: always()
160160
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@ The following is a short list of commands that can be run in the root of the pro
6767
- Run `make` to see a list of available targets.
6868
- Run `make test` to run all unit tests.
6969
- Run `make lint` to validate against our linting rules.
70-
- Run `E2E_TAGS=e2e,atlas make e2e-test` will run end-to-end tests against an Atlas instance,
70+
- Run `make e2e-test` will run end-to-end tests,
7171
please make sure to have set `MCLI_*` variables pointing to that instance.
72-
- Run `E2E_TAGS=cloudmanager,remote,generic make e2e-test` will run end-to-end tests against a Cloud Manager instance.<br />
73-
Please remember to: (a) have a running automation agent, and (b) set MCLI\_\* variables to point to your Cloud Manager instance.
7472
- Run `make build` to generate a local binary in the `./bin` folder.
7573

7674
We provide a git pre-commit hook to format and check the code, to install it run `make link-git-hooks`.

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ DEBUG_FLAGS=all=-N -l
2626

2727
TEST_CMD?=go test
2828
E2E_TEST_PACKAGES?=./test/e2e..
29-
E2E_TAGS?=e2e
3029
E2E_TIMEOUT?=60m
3130
E2E_PARALLEL?=1
3231
E2E_EXTRA_ARGS?=
@@ -175,11 +174,11 @@ build-debug: ## Generate a binary in ./bin for debugging atlascli
175174
e2e-test: build-debug ## Run E2E tests
176175
# the target assumes the MCLI_* environment variables are exported
177176
@echo "==> Running E2E tests..."
178-
$(TEST_CMD) -v -p 1 -parallel $(E2E_PARALLEL) -v -timeout $(E2E_TIMEOUT) -tags="$(E2E_TAGS)" ${E2E_TEST_PACKAGES}. $(E2E_EXTRA_ARGS)
177+
$(TEST_CMD) -v -p 1 -parallel $(E2E_PARALLEL) -v -timeout $(E2E_TIMEOUT) ${E2E_TEST_PACKAGES}. $(E2E_EXTRA_ARGS)
179178

180179
.PHONY: e2e-test-snapshots
181180
e2e-test-snapshots: build-debug ## Run E2E tests
182-
UPDATE_SNAPSHOTS=false E2E_SKIP_CLEANUP=true DO_NOT_TRACK=1 $(TEST_CMD) -v -timeout $(E2E_TIMEOUT) -tags="e2eSnap" ${E2E_TEST_PACKAGES}. $(E2E_EXTRA_ARGS)
181+
UPDATE_SNAPSHOTS=false E2E_SKIP_CLEANUP=true DO_NOT_TRACK=1 $(TEST_CMD) -v -timeout $(E2E_TIMEOUT) ${E2E_TEST_PACKAGES}. $(E2E_EXTRA_ARGS)
183182
go tool covdata textfmt -i $(GOCOVERDIR) -o $(COVERAGE)
184183

185184
.PHONY: unit-test

0 commit comments

Comments
 (0)