cockroachdb / cockroachdb/cockroach

changefeedccl: add data driven testing

Open
#124,222 1 comment 0 reactions 0 assignees View on GitHub
A-cdc C-bug P-1 T-cdc
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Changefeeds are not currently exercised in logic tests or other data driven testing. Adding coverage here could close some test coverage gaps and add an intuitive method to test changefeeds.

Some brainstorm ideas on how to expand data driven testing:
- Add a changefeed logic test config that allows the logic test framework to create changefeeds on tables created in logic tests and compares the rows emitted to results from the queries or a testdata file
- Could try to stream to a table (experimental sql sink) and query the table for results
- Could stream to different sink types. May need to add support to convert each sink's feed into a universally comparable format.
- Add logic test directives to manipulate sinks (e.g., dump content, slow response)

Jira issue: CRDB-38781

Epic CRDB-38755

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.