-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
backupccl: allow backupRestoreTestSetup[Empty]WithParams to test within a tenant #88271
Conversation
855f385
to
efb6ee8
Compare
efb6ee8
to
b069fe8
Compare
@@ -7203,7 +7216,9 @@ func TestBackupExportRequestTimeout(t *testing.T) { | |||
|
|||
allowRequest := make(chan struct{}) | |||
defer close(allowRequest) | |||
params := base.TestClusterArgs{} | |||
|
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.
nvm, I figured this flake out. Will amend the commit after this current CI run
pkg/ccl/backupccl/testdata/backup-restore/external-connections-nodelocal
Show resolved
Hide resolved
@@ -180,31 +180,14 @@ query-sql | |||
WITH descs AS ( | |||
SHOW BACKUP LATEST IN 'nodelocal://0/test/' | |||
) | |||
SELECT database_name, parent_schema_name, object_name, object_type, is_full_cluster FROM descs | |||
SELECT |
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.
why did this change?
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.
got rid of the tenant_settings system table. I also don't think the test needed to show all these other rows anyway.
b069fe8
to
4113542
Compare
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.
RFAL!
pkg/ccl/backupccl/testdata/backup-restore/external-connections-nodelocal
Show resolved
Hide resolved
@@ -180,31 +180,14 @@ query-sql | |||
WITH descs AS ( | |||
SHOW BACKUP LATEST IN 'nodelocal://0/test/' | |||
) | |||
SELECT database_name, parent_schema_name, object_name, object_type, is_full_cluster FROM descs | |||
SELECT |
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.
got rid of the tenant_settings system table. I also don't think the test needed to show all these other rows anyway.
#88557 might help for some of the tests that aren't working because of testing hooks. |
a047ef3
to
710d680
Compare
ecaf793
to
c321fef
Compare
RFAL! |
3117472
to
81fc39c
Compare
@stevendanna friendly ping on this! |
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.
LGTM to merge as a first step as we tackle the remaining TODOs and skips. Nice work!
…in tenant Previously, all backup unit tests that called backupRestoreTestSetupWithParams and backupRestoreTestSetupEmptyWithParams were disabled to run within tenants, signficantly decreasing test coverage. This patch allows tests that call these helper methods to be probabilistically run within tenants (including most data driven tests). This patch also manually disables some of these tests to be run within tenants. Future work should continue to enable bulk unit tests to run within tenants by default. Fixes cockroachdb#88381, cockroachdb#88527, cockroachdb#88453, cockroachdb#88380 Release note: None
81fc39c
to
fd7f48d
Compare
TFTRs!!! bors r=adityamaru |
Build succeeded: |
@msbutler seeing TestDataDriven get pretty flaky and I suspect its this PR - https://teamcity.cockroachdb.com/viewLog.html?buildId=7032391&tab=buildResultsDiv&buildTypeId=Cockroach_Ci_TestsAwsLinuxArm64_UnitTests |
Flaky behaviour started around 1300 today https://teamcity.cockroachdb.com/project.html?projectId=Cockroach_Ci_TestsAwsLinuxArm64BigVm&testNameId=-4898685845226892981&tab=testDetails&branch_Cockroach_Ci_TestsAwsLinuxArm64BigVm=%3Cdefault%3E which roughly lines up with when this was merged. Looks like when run as a tenant the DD test is timing out the package. |
In cockroachdb#88271 we enabled most DD tests to run as tenants but we saw an uptick in timeouts on CI. This change disables these tests from being run as tenants while we dig into the timeouts. Release note: None
90302: backupccl: disable tenants in datadriven test r=stevendanna a=adityamaru In #88271 we enabled most DD tests to run as tenants but we saw an uptick in timeouts on CI. This change disables these tests from being run as tenants while we dig into the timeouts. Release note: None Epic: none Co-authored-by: adityamaru <[email protected]>
hmmm, i'll try stressing the DD test with MT on my gce worker to see if anything shakes out. |
TestDataDriven unit tests were recently enabled to run within tenants(cockroachdb#88271). This was quickly disabled as it caused TestDataDriven/restore-grants to flake (tracked in cockroachdb#90444). This patch re-enables TestDataDriven unit tests to run within a tenant, except for TestDataDriven/restore-grants. Further investigation is needed to understand why restore-grants hangs when run within a tenant. Informs cockroachdb#90444 Release note: None
TestDataDriven unit tests were recently enabled to run within tenants(cockroachdb#88271). This was quickly disabled as it caused TestDataDriven/restore-grants to flake (tracked in cockroachdb#90444). This patch re-enables TestDataDriven unit tests to run within a tenant, except for TestDataDriven/restore-grants. Further investigation is needed to understand why restore-grants hangs when run within a tenant. Informs cockroachdb#90444 Release note: None
90446: backupccl: re-enable data driven tests to run within a tenant r=adityamaru,stevendanna a=msbutler TestDataDriven unit tests were recently enabled to run within tenants(#88271). This was quickly disabled as it caused TestDataDriven/restore-grants to flake (tracked in #90444). This patch re-enables TestDataDriven unit tests to run within a tenant, except for TestDataDriven/restore-grants. Further investigation is needed to understand why restore-grants hangs when run within a tenant. Informs #90444 Release note: None Co-authored-by: Michael Butler <[email protected]>
In cockroachdb#88271 we enabled most DD tests to run as tenants but we saw an uptick in timeouts on CI. This change disables these tests from being run as tenants while we dig into the timeouts. Release note: None
Previously, all backup unit tests that called backupRestoreTestSetupWithParams
and backupRestoreTestSetupEmptyWithParams were disabled to run within tenants,
signficantly decreasing test coverage.
This patch allows tests that call these helper methods to be probabilistically
run within tenants (including most data driven tests). This patch also manually
disables some of these tests to be run within tenants. Future work should
continue to enable bulk unit tests to run within tenants by default.
Fixes #88381, #88527, #88453, #88380
Release note: None