-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
migrate test-infra to testify for executor
#26854
Comments
This package is too complex to have its own issue and we'd migrate then in multiple batches. Please comment the filename you want to do and I will update the checklist. |
Some tests has both serial suite and suite, for example IMO a parent test may be built and acted as So should we wait for the upstream PR? Or propose other alternatives? |
@unconsolable almost we use testify checkers only and it is viable to setup/teardown tests with go testing. See also https://pkg.go.dev/testing#hdr-Subtests_and_Sub_benchmarks. testify is already aware of this issue stretchr/testify#187 years ago and the author of stretchr/testify#1109 isn't one of the maintainer. I don't think they will enable this feature soon. You can see how we migrate suite to go testing + testify previously. |
Please add #27097 as a sub task |
@unconsolable done. Thank you! |
When migrating the tests in
|
@unconsolable I hope we can enable goleak by #27405. |
@tisonkun tidb/executor/executor_test.go Lines 89 to 111 in 76267b2
From my point of view, code related to pingcap/check can still in TestT , while code related to testleak may be replaced by goleak enabled in TestMain . All the other code, may be moved to TestMain . WDYT
|
@unconsolable reasonable. I'd suggest you create an issue and start to work on it if you want to. Ask me to linked at this issue. |
Let's create issues for each of the files like other package issues? |
@karuppiah7890 yes. Creating... |
Closed as all subtasks done. Finally! |
executor/write_concurrent_test.go
#26160executor/cte_test.go
#27097executor
#27404TestTemporaryTableNoNetwork
#27459executor/aggfuncs
#28074executor/oomtest
#28075executor/seqtest
#28076TestT
toTestMain
#28440adapter_test.go
#28498admin_test.go
#28562aggregate_test.go
#28563analyze_test.go
#28564apply_cache_test.go
#28565batch_point_get_test.go
#28566benchmark_test.go
#28567brie_test.go
#28568chunk_size_control_test.go
#28569collation_test.go
#28570concurrent_map_test.go
#28571ddl_test.go
#28572delete_test.go
#28573distsql_test.go
#28574executor_pkg_test.go
#28575executor_required_rows_test.go
#28576executor_test.go
#28577explain_test.go
#28578explain_unit_test.go
#28579explainfor_test.go
#28580grant_test.go
#28581hash_table_test.go
#28582index_advise_test.go
#28583index_lookup_join_test.go
#28584index_lookup_merge_join_test.go
#28585index_merge_reader_test.go
#28586infoschema_reader_test.go
#28587insert_test.go
#28588inspection_common_test.go
#28589inspection_result_test.go
#28590inspection_summary_test.go
#28591join_pkg_test.go
#28592join_test.go
#28593joiner_test.go
#28594memory_test.go
#28595memtable_reader_test.go
#28596merge_join_test.go
#28597metrics_reader_test.go
#28598parallel_apply_test.go
#28599partition_table_test.go
#28600pkg_test.go
#28601point_get_test.go
#28602prepared_test.go
#28603revoke_test.go
#28604rowid_test.go
#28605sample_test.go
#28606select_into_test.go
#28607set_test.go
#28608show_placement_labels_test.go
#28609show_placement_test.go
#28610show_stats_test.go
#28611show_test.go
#28612shuffle_test.go
#28613simple_test.go
#28614slow_query_test.go
#28615sort_test.go
#28616split_test.go
#28617stale_txn_test.go
#28618statement_context_test.go
#28619table_readers_required_rows_test.go
#28620tiflash_test.go
#28621trace_test.go
#28622union_scan_test.go
#28623update_test.go
#28624utils_test.go
#28625window_test.go
#28626write_test.go
#28627The text was updated successfully, but these errors were encountered: