summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/pipeline_duration.rb
Commit message (Collapse)AuthorAgeFilesLines
* Struct.new could take a block for defining methods, feedback:smart-pipeline-durationLin Jen-Shin2016-09-081-2/+1
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_15091858
* Split try_merge_period into overlap? and merge:Lin Jen-Shin2016-09-081-7/+9
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_15083507
* Be more specific since it's not needed to be generic now,Lin Jen-Shin2016-09-061-3/+5
| | | | | feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14995016
* Sort by database, feedback:Lin Jen-Shin2016-09-061-2/+4
| | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14991226 and https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14994233
* Just use module because there's nothing to save, feedback:Lin Jen-Shin2016-09-061-14/+10
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14992064
* Use sum, feedback:Lin Jen-Shin2016-09-061-3/+1
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14991392
* Forget about pending duration for now, need more discussionLin Jen-Shin2016-09-051-39/+10
|
* Just sum all the queuing time, indication for needing more runnersLin Jen-Shin2016-09-021-6/+7
|
* Actually we still need to use total - running to get:Lin Jen-Shin2016-09-021-3/+4
| | | | | | real pending time, because that's actually by definition, (the time that it's not running!) or we could end up with awfully complicated algorithm :(
* Calculate real queueing time to exclude gaps from:Lin Jen-Shin2016-09-021-14/+14
| | | | | | | | | retries and probably also manual actions! Feedback: * https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14735478 * https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14737804
* Use guard clause, feedback:Lin Jen-Shin2016-08-311-11/+9
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14754681
* Introduction to PipelineDurationLin Jen-Shin2016-08-311-0/+98
|
* Fix renamingLin Jen-Shin2016-08-301-1/+1
|
* Avoid shadowing method name. Just use existing methodLin Jen-Shin2016-08-301-2/+2
|
* Rename to periods since it's easier to understandLin Jen-Shin2016-08-301-22/+22
|
* Use algorithm from Kamil:Lin Jen-Shin2016-08-301-28/+9
| | | | | Excluding sorting, this is O(n) which should be much faster and much simpler and easier to understand.
* build might not start yetLin Jen-Shin2016-08-301-1/+1
|
* no builds no pendingLin Jen-Shin2016-08-291-0/+2
|
* Smartly calculate real running time and pending timeLin Jen-Shin2016-08-291-0/+90