-
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
owner: migrate test-infra to testify #26770
Conversation
Signed-off-by: hu00yan <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Welcome @hu00yan! |
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
@tisonkun Excuse me, what should I do to resolve conflicts? Change code as my PR and leave comment here? |
@hu00yan I resolve conflict for you. Yes, just keep the comment. /cc @tiancaiamao @xhebox I'd like to ask @tiancaiamao whether we have a bug issue for that comments 3761e4f - TODO in code is very, very, likely to be ignored and last for a long time. |
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.
You should remove the old TestT
, there is already the new TestMain
.
Should I rename it to TestInitLogger? |
No, it is not a test for init logger. |
@xhebox Thank you for so kindly respond. One more question, how to assert InitLogger is success ? TestMain's argument can't be modified. |
You can use |
/run-all-tests |
Let me take a closer look |
It seems owner tests hang forever. We may try to redo the changes. |
I'll try to push follow ups, this patch cannot pass locally, please test locally before you push commits. |
It caused by #24679 |
Signed-off-by: tison <[email protected]>
@zhouqiang-cl not really. These tests modify failpoints and global variable, I'd like to run them in serial at this point. |
owner/manager_test.go
Outdated
@@ -11,12 +11,13 @@ | |||
// See the License for the specific language governing permissions and | |||
// limitations under the License. | |||
|
|||
// +build !windows |
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.
Maybe the original is better: if someone adds another test that is not related to NewClusterV3
, it is ignored. It is not likely tests in the packages will change, though.
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.
Updated.
Signed-off-by: tison <[email protected]>
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.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 94f5c7b
|
@hu00yan: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: hu00yan [email protected]
What problem does this PR solve?
Issue Number: close #26743
What is changed and how it works?
What's Changed: Removed pingcap/check for owner/, moved to testify.
Release note