- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4k
changefeedccl: enable a couple of tests with test tenant #156306
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
Conversation
Release note: None
| // Test uses SPLIT AT, which isn't currently supported for | ||
| // secondary tenants. Tracked with #76378. | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | 
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.
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.
The comments here are definitely stale, which is why I decided to remove them to avoid possible confusion. (In particular, when this comment was added, we needed to explicitly add tenantcapabilitiespb.CanAdminSplit to the tenant, but now this capability is granted by default, so no need to do anything about it. Perhaps the test will just work, perhaps it'll require some other adjustments, but SPLIT AT should just work.)
I'm working on doing first level triage of all things that reference #76378 with the goal of closing that issue soon. All tests / packages that have test tenant randomization disabled will have a separate, specific issue, and #142799 is the common issue for all CDC tests.
| const nodes = 4 | ||
| args := base.TestClusterArgs{ | ||
| ServerArgs: base.TestServerArgs{ | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, // need nodelocal and splits. | 
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.
This comment too, is it not accurate for why this test wasn't working for tenants?
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.
This comment is somewhat stale for sure. CanUseNodelocalStorage capability should now be granted in the tests by default (see testServer.grantDefaultTenantCapabilities).
|  | ||
| ctx := context.Background() | ||
| s, db, _ := serverutils.StartServer(t, base.TestServerArgs{ | ||
| // TODO(#98816): cdctest.GetHydratedTableDescriptor does not work with tenant dbs. | 
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.
Awesome, nice that we have this test back.
| Is the extended CI failure related? The unit test failure might be a flake. | 
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.
TFTR!
Both essential CI and extended CI failures seem like flakes.
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @aerfrei)
| const nodes = 4 | ||
| args := base.TestClusterArgs{ | ||
| ServerArgs: base.TestServerArgs{ | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, // need nodelocal and splits. | 
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.
This comment is somewhat stale for sure. CanUseNodelocalStorage capability should now be granted in the tests by default (see testServer.grantDefaultTenantCapabilities).
| // Test uses SPLIT AT, which isn't currently supported for | ||
| // secondary tenants. Tracked with #76378. | ||
| DefaultTestTenant: base.TODOTestTenantDisabled, | ||
| DefaultTestTenant: base.TestDoesNotWorkWithSecondaryTenantsButWeDontKnowWhyYet(142799), | 
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.
The comments here are definitely stale, which is why I decided to remove them to avoid possible confusion. (In particular, when this comment was added, we needed to explicitly add tenantcapabilitiespb.CanAdminSplit to the tenant, but now this capability is granted by default, so no need to do anything about it. Perhaps the test will just work, perhaps it'll require some other adjustments, but SPLIT AT should just work.)
I'm working on doing first level triage of all things that reference #76378 with the goal of closing that issue soon. All tests / packages that have test tenant randomization disabled will have a separate, specific issue, and #142799 is the common issue for all CDC tests.
| TFTRs! bors r+ | 
| bors r+ | 
Fixes: #98816
Informs: #142799
Release note: None