-
Notifications
You must be signed in to change notification settings - Fork 5k
fix:refactor log messages in test cases to remove "successfully executed" for consistency #34422
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
Conversation
…ted" for consistency
Summary of ChangesHello @tomchon, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on a significant refactoring effort within the test suite. The primary objective is to streamline and standardize the logging output by eliminating repetitive 'successfully executed' messages. This change enhances the readability of test logs, ensuring that only meaningful information is presented, which in turn aids in quicker debugging and clearer understanding of test execution flows. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors a large number of test cases to remove "successfully executed" log messages for consistency. The changes are mostly correct and align with the PR's goal. However, I've found one critical issue where a stop method was completely removed, potentially causing resource leaks. I've also identified several files where the change results in the removal of the trailing newline, which should be fixed for style and compatibility reasons. Please address these points.
I am having trouble creating individual review comments. Click here to see my feedback.
test/cases/18-StreamProcessing/30-OldPyCases/test_oldcase_snode_restart_with_checkpoint.py (112-118)
The run and stop methods have been removed. Removing stop also removes the call to tdSql.close(), which can lead to resource leaks. Removing run may prevent the test from being executed if the test runner relies on this method. It seems only the log message in stop should have been removed. Please verify if these methods can be safely removed, and if not, restore them while only removing the log line.
test/cases/19-TSMAs/test_tsma.py (1695-1696)
The empty line after the log message is removed, but the teardown_class method is now empty. It should contain a pass statement to be syntactically correct.
pass
test/cases/06-DataIngestion/04-Import/test_write_import_csv.py (93)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/02-Databases/03-Alter/test_db_alter_database.py (170)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/11-Functions/03-Selection/test_fun_select_bottom.py (244)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/11-Functions/03-Selection/test_fun_select_last.py (2460)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/11-Functions/03-Selection/test_fun_select_top.py (521)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/12-UDFs/test_udf_main.py (491)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/04-SuperTables/01-Create/test_stable_create_rowlength64k_benchmark.py (177)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/03-Tables/03-PrimaryKey/test_primary_key_delete.py (256)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/70-Cluster/test_5dnode3mnode_recreate_mnode.py (181)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/70-Cluster/test_6dnode3mnode_insert_less_data_alter_rep3to1to3.py (183)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/70-Cluster/test_mnode_encrypt.py (63)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
test/cases/81-Tools/03-Benchmark/test_benchmark_commandline.py (706)
This change removes the trailing newline from the file. It's a good practice to end files with a newline character for POSIX compatibility and to adhere to common style guides. Please add a newline at the end of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
https://project.feishu.cn/taosdata_td/defect/detail/6737619751
refactor log messages in test cases to remove "successfully executed" for consistency