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

roachtest: add O-rsg to random syntax tests #109589

Merged
merged 1 commit into from
Aug 29, 2023
Merged

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Aug 28, 2023

The O-rsg label is now applied to issues created when a test with
randomized SQL syntax fails: sqlsmith, TLP, costfuzz, and unoptimized
query oracle tests.

Epic: None

Release note: None

@mgartner mgartner requested a review from rafiss August 28, 2023 14:05
@mgartner mgartner requested a review from a team as a code owner August 28, 2023 14:05
@mgartner mgartner requested review from herkolategan and renatolabs and removed request for a team August 28, 2023 14:05
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@renatolabs renatolabs left a comment

Choose a reason for hiding this comment

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

This seems to create a new field on the generic TestSpec struct (used by all tests across all teams) for a feature used exclusively (correct me if I'm wrong) by the SQL team.

I also wonder if the concept of a RandomSyntaxTest gets a little blurry. I'm thinking of cases where randomness plays a role in the SQL statement used (e.g., create a backup or a changefeed with certain options randomly) but that probably wouldn't be categorized as a RandomSyntaxTest as defined here, if I understand correctly.

For consideration: what if, instead, we allowed the TestSpec to include ExtraLabels to be attached to GitHub issues when the test failed? You'd still be able to achieve your goal of adding O-rsg to some tests, while allowing the feature to be used by other teams and would remove the potential ambiguity around what defines a "random syntax test".

Would also be nice to add tests for this new field (see github_test.go).

@rafiss
Copy link
Collaborator

rafiss commented Aug 28, 2023

Can be in a separate PR, but just noting we'll also need to add this label to non-roachtests, specifically the ones in sql/tests/rsg_test.go

@mgartner
Copy link
Collaborator Author

For consideration: what if, instead, we allowed the TestSpec to include ExtraLabels to be attached to GitHub issues when the test failed?

Great idea. Done.

Can be in a separate PR, but just noting we'll also need to add this label to non-roachtests, specifically the ones in sql/tests/rsg_test.go

Thanks for pointing this out. I'll do that in a separate PR.

Copy link
Contributor

@renatolabs renatolabs left a comment

Choose a reason for hiding this comment

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

Test is missing a datadriven file (see echotest.Require call), but otherwise
:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @herkolategan and @rafiss)

@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 28, 2023

Build failed:

The `O-rsg` label is now applied to issues created when a test with
randomized SQL syntax fails: sqlsmith, TLP, costfuzz, and unoptimized
query oracle tests.

Release note: None
@mgartner
Copy link
Collaborator Author

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 29, 2023

Build succeeded:

@craig craig bot merged commit e04c45c into cockroachdb:master Aug 29, 2023
@mgartner mgartner deleted the o-rsg branch August 29, 2023 20:20
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.

4 participants