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

sql: add telemetry block regexps and fix flake #117558

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Jan 9, 2024

sqltestutils: allow blocking regexps in telemetry feature list

The feature-allowlist directive for telemetry tests has been renamed
feature-list and it now supports blocking regexps. Any line in the
feature-list that starts with "!" is a block regexp that prevents any
features matching the regexp from being included in the output of the
feature-usage and feature-counters directives. This is helpful
because Go's regexps do not support negative look-aheads, so adding
features that should not be matched is difficult and tedious.

Release note: None

sql: ignore "sql.schema.create_stats" in schema telemetry test

This commit ignores the sql.schema.create_stats in the schema
telemetry tests because it causes sporadic failures.

Fixes #117309

Release note: None

The `feature-allowlist` directive for telemetry tests has been renamed
`feature-list` and it now supports blocking regexps. Any line in the
`feature-list` that starts with "!" is a block regexp that prevents any
features matching the regexp from being included in the output of the
`feature-usage` and `feature-counters` directives. This is helpful
because Go's regexps do not support negative look-aheads, so adding
features that should not be matched is difficult and tedious.

Release note: None
This commit ignores the `sql.schema.create_stats` in the `schema`
telemetry tests because it causes sporadic failures.

Fixes cockroachdb#117309

Release note: None
@mgartner mgartner requested review from a team and michae2 and removed request for a team January 9, 2024 17:13
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@michae2 michae2 left a comment

Choose a reason for hiding this comment

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

:lgtm: Nice!

Reviewed 27 of 27 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @mgartner)

@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jan 11, 2024

Build succeeded:

@craig craig bot merged commit f428c19 into cockroachdb:master Jan 11, 2024
9 checks passed
@mgartner mgartner deleted the 117309-telemetry-fix branch January 12, 2024 21:43
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.

sql: TestTelemetry failed
3 participants