-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Bootstrap storage pool in tests #11598
Bootstrap storage pool in tests #11598
Conversation
5ed6707
to
dc19af4
Compare
Tests analyticsTotal tests: 3748 Click here to see the affected service packages
View the build log |
Tests analyticsTotal tests: 3788 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 3791 Click here to see the affected service packages
Action takenFound 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 2949 Click here to see the affected service packages
View the build log |
Tests analyticsTotal tests: 3840 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. |
failing test |
/gcbrun |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 3955 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
func BootstrapComputeStoragePool(t *testing.T, storagePoolName, storagePoolType string) string { | ||
projectID := envvar.GetTestProjectFromEnv() | ||
zone := envvar.GetTestZoneFromEnv() | ||
|
||
storagePoolName = SharedStoragePoolPrefix + storagePoolName |
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 think it would make sense to include the storage pool type here - or only allow storagePoolType and remove storagePoolName if we only need one of each type per region.
func BootstrapComputeStoragePool(t *testing.T, storagePoolName, storagePoolType string) string { | |
projectID := envvar.GetTestProjectFromEnv() | |
zone := envvar.GetTestZoneFromEnv() | |
storagePoolName = SharedStoragePoolPrefix + storagePoolName | |
func BootstrapComputeStoragePool(t *testing.T, storagePoolType string) string { | |
projectID := envvar.GetTestProjectFromEnv() | |
zone := envvar.GetTestZoneFromEnv() | |
storagePoolName := SharedStoragePoolPrefix + storagePoolType |
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'll update it to storagePoolName = SharedStoragePoolPrefix + storagePoolType + storagePoolName
to make it easier to identify the type by reading the resource name. I'll also keep the storagePoolName, as we might need more than one storage pool per type as test cases expand.
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 3959 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
Tests such as `TestAccContainerNodePool_withDiskMachineAndStoragePoolUpdate` seem to be failing, possibly due to being promoted from beta to v1 Rather than update the regex in extractSP, use `tpgresource.GetRelativePath()` and return that from the bootstrap method, as mentioned here: GoogleCloudPlatform#11391 (comment) See GoogleCloudPlatform#11391 and GoogleCloudPlatform#11598
Given the limitations of storage pools per project, we'll need to bootstrap the storage pool resource in our testing project so it can be shared and reused across multiple tests to avoid hitting the quota limit.
This should help hashicorp/terraform-provider-google#19199 and #11391
Release Note Template for Downstream PRs (will be copied)