-
Notifications
You must be signed in to change notification settings - Fork 378
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
feature: add costTime of autoTest plan list #2040
feature: add costTime of autoTest plan list #2040
Conversation
Automated cherry pick can ONLY be triggered when this PR is MERGED! |
Codecov Report
@@ Coverage Diff @@
## master #2040 +/- ##
=======================================
Coverage 15.53% 15.54%
=======================================
Files 1169 1169
Lines 114044 114073 +29
=======================================
+ Hits 17712 17727 +15
+ Misses 94341 94340 -1
- Partials 1991 2006 +15
|
return "-" | ||
} | ||
|
||
rsp, err := a.CtxBdl.Bdl.GetPipeline(*task.SnippetPipelineID) |
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.
snippet task can also use task's costTimeSec.
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 have to care about performance issue.
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.
the costTimeSec of snippet task is always -1
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.
now update snippet pipeline task time when reconciler done
4a1fa0d
to
2d0add9
Compare
@@ -189,6 +189,27 @@ func (client *Client) UpdatePipelineTaskStatus(id uint64, status apistructs.Pipe | |||
return err | |||
} | |||
|
|||
func (client *Client) UpdatePipelineTaskTime(p *spec.Pipeline, ops ...SessionOption) error { |
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.
Add comment for exported function.
Add screenshot of snippet task time related data. |
/approve |
/cherry-pick release/1.3 |
* feature: add exec time of autoTest scene list * fix: update pipeline task when fulfillParentSnippetTask * fix: add comment
What type of this PR
/kind feature
What this PR does / why we need it:
feature: add costTime of autoTest plan list
Which issue(s) this PR fixes:
https://erda.cloud/erda/dop/projects/387/issues/all?id=222572&issueFilter__urlQuery=eyJzdGF0ZUJlbG9uZ3MiOlsiT1BFTiIsIldPUktJTkciLCJXT05URklYIiwiUkVPUEVOIiwiUkVTT0xWRUQiXSwiYXNzaWduZWVJRHMiOlsiMTAwMTI2MSJdfQ%3D%3D&issueTable__urlQuery=eyJwYWdlTm8iOjF9&issueViewGroup__urlQuery=eyJ2YWx1ZSI6ImthbmJhbiIsImNoaWxkcmVuVmFsdWUiOnsia2FuYmFuIjoiZGVhZGxpbmUifX0%3D&iterationID=506&type=TASK
Specified Reviewers:
/assign @sfwn
ChangeLog
Need cherry-pick to release versions?
/cherry-pick release/1.3
Add comment like
/cherry-pick release/1.0
when this PR is merged.