telemetry: migrate test-infra to testify#26540
Conversation
Signed-off-by: tison <wander4096@gmail.com>
| ) | ||
|
|
||
| var ( | ||
| GetFeatureUsage = getFeatureUsage |
There was a problem hiding this comment.
Maybe get a comment for these two, special keywords maybe. So that we can search it quickly later? I have a suggestion to have both tests with/without _test, to target the problem of access. But it is far from now.
There was a problem hiding this comment.
I don't know what you mean well. Maybe show a patch?
There was a problem hiding this comment.
like:
// FIXME: EXPORT_TRICK ...
GetFeatureUsage = getFeatureUsage
My suggestion is to have tests splitted in two packages, one with the same package name as the code(no access problem), another is suffixed with _test(can only make use of exported functions). EXPORT_TRICK will be excellent when we want to search for all such tricks. Though it can also be archived by some scripts/source code parsing, we will look through all tests anyway.
There was a problem hiding this comment.
For these two line, I tend to write the actual test under telemetry, but it failed with cyclic deps.
There was a problem hiding this comment.
I get your point. You can create an issue to continue the discussion anyway. It provides a best practice for testing which may need a bit more time to see whether or not we really need it.
There was a problem hiding this comment.
Yeah, for now, a mark is enough. Not really necessary though...
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
|
[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. DetailsReviewer can indicate their review by submitting an approval review. |
|
/cc @mmyj |
|
@tisonkun: GitHub didn't allow me to request PR reviews from the following users: mmyj. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
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 kubernetes/test-infra repository. |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 304f945 |
|
@tisonkun: 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. DetailsInstructions 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. |
|
/run-check_dev_2 Still unstable? |
Signed-off-by: tison wander4096@gmail.com
What problem does this PR solve?
Issue Number: close #26537
What is changed and how it works?
ctetestfor telemetry needs to run alone. Thus I write it a dedicate binary.GetTxnUsageInfoandGetCTEUsageInfoneed not to be public, align with otherGet*functions.Release note