Skip to content
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

server: bark loudly if the test tenant cannot be created #106832

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

knz
Copy link
Contributor

@knz knz commented Jul 14, 2023

Informs #76378
Informs #103772.
Epic: CRDB-18499

For context, the automatic test tenant machinery is currently dependent on a CCL enterprise license check.
(This is fundamentally not necessary - see #103772 - but sadly this is the way it is for now)

Prior to this patch, if the user or a test selected the creation of a test tenant, but the test code forgot to import the required CCL go package, the framework would announce that "a test tenant was created" but it was actually silently failing to do so.

This led to confusing investigations where a test tenant was expected, a test was appearing to succeed, but with a release build the same condition would fail.

This commit enhances the situation by ensuring we have clear logging output when the test tenant cannot be created due to the missing CCL import.

Release note: None

For context, the automatic test tenant machinery is currently
dependent on a CCL enterprise license check.
(This is fundamentally not necessary - see cockroachdb#103772 - but
sadly this is the way it is for now)

Prior to this patch, if the user or a test selected the creation of a
test tenant, but the test code forgot to import the required CCL go
package, the framework would announce that "a test tenant was created"
but it was actually silently failing to do so.

This led to confusing investigations where a test tenant was expected,
a test was appearing to succeed, but with a release build the same
condition would fail.

This commit enhances the situation by ensuring we have clear logging
output when the test tenant cannot be created due to the missing
CCL import.

Release note: None
@knz knz requested review from herkolategan and stevendanna July 14, 2023 15:42
@knz knz requested review from a team as code owners July 14, 2023 15:42
@knz knz requested review from srosenberg and removed request for a team July 14, 2023 15:43
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@herkolategan herkolategan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@knz
Copy link
Contributor Author

knz commented Jul 14, 2023

TFYR!

bors r=herkolategan

@craig
Copy link
Contributor

craig bot commented Jul 14, 2023

Build succeeded:

@craig craig bot merged commit b5e9cfd into cockroachdb:master Jul 14, 2023
@knz knz deleted the 20230714-test-reporting branch July 14, 2023 16:46
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.

3 participants