-
Notifications
You must be signed in to change notification settings - Fork 288
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
tests(ticdc): Migrate several test cases to testify #4199
Conversation
[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. |
cdc/owner/changefeed.go
Outdated
@@ -514,6 +514,9 @@ func (c *changefeed) asyncExecDDL(ctx cdcContext.Context, job *timodel.Job) (don | |||
func (c *changefeed) updateStatus(currentTs int64, checkpointTs, resolvedTs model.Ts) { | |||
c.state.PatchStatus(func(status *model.ChangeFeedStatus) (*model.ChangeFeedStatus, bool, error) { | |||
changed := false | |||
if status == nil { |
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.
any ut cover the change?
cdc/owner/feed_state_manager.go
Outdated
@@ -149,6 +149,9 @@ func (m *feedStateManager) handleAdminJob() (jobsPending bool) { | |||
m.patchState(model.StateNormal) | |||
// remove error history to make sure the changefeed can running in next tick | |||
m.state.PatchInfo(func(info *model.ChangeFeedInfo) (*model.ChangeFeedInfo, bool, error) { | |||
if info == nil { |
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.
any ut for the change?
[2022-01-04T03:13:27.457Z] FAIL github.com/pingcap/tiflow/pkg/orchestrator 40.315s |
The test failure is caused by accessing a removed test dir. I have fixed it. |
seems the fail test is fixing #4175 |
I will add unit tests for the aforementioned callback functions and trigger the dm-unit-test again. |
2642667
to
69a2f86
Compare
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #4199 +/- ##
================================================
- Coverage 55.5183% 55.3900% -0.1284%
================================================
Files 495 495
Lines 61151 61280 +129
================================================
- Hits 33950 33943 -7
- Misses 23789 23935 +146
+ Partials 3412 3402 -10 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8458675
|
What problem does this PR solve?
Issue Number: close #2901
Issue Number: close #2902
Issue Number: close #4200
What is changed and how it works?
cdc/owner
,cdc/processor
andpkg/orchestrator
.Check List
Tests
Release note