*: improve some tests#110008
Conversation
0908869 to
da39f62
Compare
da39f62 to
a958297
Compare
a958297 to
4a88e30
Compare
stevendanna
left a comment
There was a problem hiding this comment.
I didn't add much on top of Yahor's review. But there is one required change in my opinion.
Huge thanks for continuing to drive this forward.
Release note: None
Release note: None
Release note: None
Release note: None
Release note: None
The dialer for a given SQL layer dials across SQL servers using instance IDs. Release note: None
Release note: None
Release note: None
and link it to follow-up issue cockroachdb#110014. Release note: None
Release note: None
Release note: None
Release note: None
This incomplete configuration was noticed by `TestStatusGetFiles` once enabled to run over secondary tenants. This extra test coverage is enabled in the subsequent commit. Release note: None
Release note: None
Release note: None
This way the optimizing call to `TestingRestart` on the cap watcher is performed in all tests that use this API. Release note: None
e73b28b to
e3461bc
Compare
yuzefovich
left a comment
There was a problem hiding this comment.
Reviewed 4 of 4 files at r2, 13 of 13 files at r3, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @abarganier, @herkolategan, @michae2, @srosenberg, and @stevendanna)
abarganier
left a comment
There was a problem hiding this comment.
LGTM, I appreciate the clarity that's added from this overhaul.
| s := serverutils.StartServerOnly(t, base.TestServerArgs{}) | ||
| defer s.Stopper().Stop(ctx) | ||
| srv := serverutils.StartServerOnly(t, base.TestServerArgs{ | ||
| DefaultTestTenant: base.TestIsForStuffThatShouldWorkWithSecondaryTenantsButDoesntYet(110002), |
There was a problem hiding this comment.
base.TestIsForStuffThatShouldWorkWithSecondaryTenantsButDoesntYet(110002)
☠️ 😂
| baseCfg.SpanConfigsDisabled = kvServerCfg.BaseConfig.SpanConfigsDisabled | ||
| baseCfg.EnableDemoLoginEndpoint = kvServerCfg.BaseConfig.EnableDemoLoginEndpoint | ||
| baseCfg.DefaultZoneConfig = kvServerCfg.BaseConfig.DefaultZoneConfig | ||
| baseCfg.HeapProfileDirName = kvServerCfg.BaseConfig.HeapProfileDirName |
There was a problem hiding this comment.
nit: does this impact tests? Or is it just some cleanup along the way.
There was a problem hiding this comment.
This is exercised in tests; its lack was noticed by a failure in #110001.
|
TFYRs! bors r=stevendanna,yuzefovich,abargainier |
|
Build succeeded: |
110001: serverutils: redirect the implicit `ApplicationLayerInterface` properly r=stevendanna a=knz All commits but the last 3 are from #110008. Epic: CRDB-18499 Prior to this patch, the *implicit* `ApplicationLayerInterface` implementation inside `TestServerInterface` was redirecting to `SystemLayer()`. This was confusing, likely the source of bugs, and resulted in insufficient test coverage. This commit fixes it. followup issues identified thanks to this work: - actual bug: #110003 - possible bug: #110002 - possible bug: #110007 - possible bug: #110012 - feature gap: #110009 - feature gap: #110018 - feature gap: #110019 - feature gap: #110020 - feature gap: #110022 - feature gap: #110023 - feature gap: #110024 Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net>
This PR contains the test improvements prerequisite to #110001.
Epic: CRDB-18499