-
Notifications
You must be signed in to change notification settings - Fork 205
test: Updates all test workflows to use advanced_cluster TPF implementation #3580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
8dd6255
a9f8fb5
177581e
e9d1239
f419e76
dc53484
95c3428
1062349
1bf0f23
0bcb43e
4358b36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ on: | |
type: string | ||
required: false | ||
test_group: | ||
description: 'Test group to run, e.g. advanced_cluster, empty for all' | ||
description: 'Test group to run, e.g. advanced_cluster_tpf, empty for all' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. curious about the context: why do we still need to specify the _tpf? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i made a similar comment, we can remove tpf now that it's the only test group There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
||
type: string | ||
required: false | ||
test_name: | ||
|
@@ -26,7 +26,7 @@ on: | |
type: string | ||
required: false | ||
reduced_tests: | ||
description: 'If run only minimum tests for advanced_cluster, e.g. in PRs' | ||
description: 'If run only minimum tests for advanced_cluster_tpf, e.g. in PRs' | ||
type: boolean | ||
required: false | ||
default: false | ||
|
@@ -241,7 +241,6 @@ jobs: | |
env: | ||
mustTrigger: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.test_group == '' ) }} | ||
outputs: # ensure resources are sorted alphabetically | ||
advanced_cluster: ${{ steps.filter.outputs.advanced_cluster == 'true' || env.mustTrigger == 'true' }} | ||
advanced_cluster_tpf: ${{ steps.filter.outputs.advanced_cluster_tpf == 'true' || env.mustTrigger == 'true' }} | ||
assume_role: ${{ steps.filter.outputs.assume_role == 'true' || env.mustTrigger == 'true' }} | ||
autogen: ${{ steps.filter.outputs.autogen == 'true' || env.mustTrigger == 'true' }} | ||
|
@@ -274,9 +273,6 @@ jobs: | |
if: ${{ inputs.test_group == '' && env.mustTrigger == 'false' }} | ||
with: | ||
filters: | | ||
advanced_cluster: | ||
- 'internal/service/advancedcluster/!(*_test).go' # matches any adv_cluster file change except test files | ||
- 'internal/service/advancedclustertpf/common*.go' | ||
advanced_cluster_tpf: | ||
- 'internal/service/advancedclustertpf/*.go' | ||
- 'internal/service/advancedcluster/*_test.go' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there any test in adv_cluster (without tpf) or we can delete filter path 'internal/service/advancedcluster/*_test.go' ? we're only running package There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed 'internal/service/advancedcluster/*_test.go' ty! |
||
|
@@ -408,7 +404,6 @@ jobs: | |
HTTP_MOCKER_CAPTURE: 'true' | ||
ACCTEST_REGEX_RUN: ${{ inputs.reduced_tests && '^TestAccMockable' || env.ACCTEST_REGEX_RUN }} | ||
ACCTEST_PACKAGES: | | ||
./internal/service/advancedcluster | ||
./internal/service/advancedclustertpf | ||
run: make testacc | ||
|
||
|
@@ -436,7 +431,7 @@ jobs: | |
MONGODB_ATLAS_LAST_1X_VERSION: ${{ inputs.mongodb_atlas_last_1x_version }} | ||
ACCTEST_REGEX_RUN: '^TestMig' | ||
ACCTEST_PACKAGES: | | ||
./internal/service/advancedcluster | ||
./internal/service/advancedclustertpf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we still need advanced_cluster_tpf_mig_from_sdkv2 tests? Maybe we can remove it, and remove logic associated with env.var MONGODB_ATLAS_TEST_SDKV2_TO_TPF from the code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recommended in the team to keep these for at least a couple next releases until we have a better idea of adoption & may also help us understand if we need to handle any additional scenarios that might come up based on changes in the next releases |
||
run: make testacc | ||
|
||
assume_role: | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package advancedcluster_test | ||
package advancedclustertpf_test | ||
|
||
import ( | ||
"os" | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about renaming all occurences in this file from advanced_cluster_tpf to advanced_cluster as that's the only one now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that would be done later as part of the cleanup when we finally delete advancedcluster? but no strong opinion, will update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, ok, the cleanup was more about the service folders but i see your point here, feel free to keep it as it is if you prefer that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated now