Skip to content
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

Merged
merged 4 commits into from
Sep 24, 2021

Conversation

littlejiancc
Copy link
Contributor

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

  • Fixes #your-issue_number
  • [Erda Cloud Issue Link](paste your link here)

Specified Reviewers:

/assign @sfwn

ChangeLog

Language Changelog
🇺🇸 English
🇨🇳 中文

Need cherry-pick to release versions?

/cherry-pick release/1.3

Add comment like /cherry-pick release/1.0 when this PR is merged.

For details on the cherry pick process, see the cherry pick requests section under CONTRIBUTING.md.

@erda-bot
Copy link
Member

Automated cherry pick can ONLY be triggered when this PR is MERGED!

@erda-bot erda-bot requested a review from sfwn September 22, 2021 15:56
@littlejiancc littlejiancc added dop devops plaoform feature labels Sep 22, 2021
@codecov
Copy link

codecov bot commented Sep 22, 2021

Codecov Report

Merging #2040 (4e6a2ae) into master (ac7323c) will increase coverage by 0.00%.
The diff coverage is 46.66%.

Impacted file tree graph

@@           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     
Impacted Files Coverage Δ
modules/pipeline/pipengine/reconciler/snippet.go 7.74% <0.00%> (-0.89%) ⬇️
...-plan-detail/components/executeTaskTable/render.go 21.48% <53.84%> (+1.48%) ⬆️
pkg/database/sqlparser/migrator/schema.go 37.28% <0.00%> (ø)
pkg/database/sqlparser/migrator/service.go 12.94% <0.00%> (ø)
pkg/database/sqlparser/ddlreverser/reverser.go 69.50% <0.00%> (+0.11%) ⬆️
pkg/database/sqlparser/snapshot/snapshot.go 15.25% <0.00%> (+3.32%) ⬆️

return "-"
}

rsp, err := a.CtxBdl.Bdl.GetPipeline(*task.SnippetPipelineID)
Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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

@@ -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 {
Copy link
Member

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.

@sfwn
Copy link
Member

sfwn commented Sep 24, 2021

Add screenshot of snippet task time related data.

@littlejiancc
Copy link
Contributor Author

Add screenshot of snippet task time related data.

image

@sfwn
Copy link
Member

sfwn commented Sep 24, 2021

/approve

@erda-bot erda-bot merged commit 74ae9d1 into erda-project:master Sep 24, 2021
@sfwn
Copy link
Member

sfwn commented Sep 24, 2021

/cherry-pick release/1.3

erda-bot pushed a commit to erda-bot/erda that referenced this pull request Sep 24, 2021
* feature: add exec time of autoTest scene list

* fix: update pipeline task when fulfillParentSnippetTask

* fix: add comment
erda-bot added a commit that referenced this pull request Sep 24, 2021
* feature: add exec time of autoTest scene list

* fix: update pipeline task when fulfillParentSnippetTask

* fix: add comment

Co-authored-by: littlejian <17816869670@163.com>
@littlejiancc littlejiancc deleted the feature/dop-autotest branch September 24, 2021 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants