Skip to content

Conversation

@yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented Nov 6, 2025

upgrade: remove unused SQLStats testing knobs

sql: do not set sqlstats knobs

This was added in 2fad679 because we called CreateTestServerParams in other tests. That is no longer the case as of 5adea01, so I don't think we need that.

sql: remove createTestServerParamsAllowTenants

This commit removes createTestServerParamsAllowTenants. Previously, this method returned two arguments, but the second one was only used only in a handful of spots - we now inline the necessary code to create CommandFilters in each spots. In all other spots the helper method no longer (given the change in the previous commit) provided any value, so we replaced all its usages with directly constructing the TestServerArgs.

Additionally some stale comments are removed.

Epic: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@yuzefovich yuzefovich added the O-No-AI-Review Prevents AI Review from running label Nov 6, 2025
This was added in 2fad679 because we
called CreateTestServerParams in other tests. That is no longer the case
as of 5adea01, so I don't think we need
that.

Release note: None
This commit removes `createTestServerParamsAllowTenants`. Previously,
this method returned two arguments, but the second one was only used
only in a handful of spots - we now inline the necessary code to create
CommandFilters in each spots. In all other spots the helper method no
longer (given the change in the previous commit) provided any value, so
we replaced all its usages with directly constructing the
TestServerArgs.

Additionally some stale comments are removed.

Release note: None
@yuzefovich yuzefovich changed the title WIP on minor test cleanup sql: remove createTestServerParamsAllowTenants Nov 7, 2025
@yuzefovich yuzefovich marked this pull request as ready for review November 7, 2025 21:19
@yuzefovich yuzefovich requested review from a team as code owners November 7, 2025 21:19
@yuzefovich yuzefovich removed the O-No-AI-Review Prevents AI Review from running label Nov 7, 2025
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants