<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/spec/models/ci, branch koding-setting-api</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Fix build.</title>
<updated>2016-09-20T21:29:17+00:00</updated>
<author>
<name>Timothy Andrew</name>
<email>mail@timothyandrew.net</email>
</author>
<published>2016-09-20T21:21:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=0a2649ce694a0ba70fa6c4caa84ea21dd53446c8'/>
<id>0a2649ce694a0ba70fa6c4caa84ea21dd53446c8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix spec failures.</title>
<updated>2016-09-20T11:23:12+00:00</updated>
<author>
<name>Timothy Andrew</name>
<email>mail@timothyandrew.net</email>
</author>
<published>2016-09-20T11:23:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=e109166db2f3c16ae55642be3d31a581f76b70fc'/>
<id>e109166db2f3c16ae55642be3d31a581f76b70fc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/master' into 21170-cycle-analytics</title>
<updated>2016-09-20T09:18:13+00:00</updated>
<author>
<name>Timothy Andrew</name>
<email>mail@timothyandrew.net</email>
</author>
<published>2016-09-20T09:18:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=fa890604aaf15b9e4f0199e6a4cff24c29955a37'/>
<id>fa890604aaf15b9e4f0199e6a4cff24c29955a37</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix spec failures</title>
<updated>2016-09-19T11:29:48+00:00</updated>
<author>
<name>Kamil Trzcinski</name>
<email>ayufan@ayufan.eu</email>
</author>
<published>2016-09-19T11:29:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=748dd35c65b0a7f3fbb0832fd18933ff8c19ef7d'/>
<id>748dd35c65b0a7f3fbb0832fd18933ff8c19ef7d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Test all cycle analytics pre-calculation code.</title>
<updated>2016-09-19T07:42:06+00:00</updated>
<author>
<name>Timothy Andrew</name>
<email>mail@timothyandrew.net</email>
</author>
<published>2016-09-19T07:26:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=8f6208513a98b33d7edd6ecf1ae6062f266c279f'/>
<id>8f6208513a98b33d7edd6ecf1ae6062f266c279f</id>
<content type='text'>
All the code that pre-calculates metrics for use in the cycle analytics
page.

- Ci::Pipeline -&gt; build start/finish
- Ci::Pipeline#merge_requests
- Issue -&gt; record default metrics after save
- MergeRequest -&gt; record default metrics after save
- Deployment -&gt; Update "first_deployed_to_production_at" for MR metrics
- Git Push -&gt; Update "first commit mention" for issue metrics
- Merge request create/update/refresh -&gt; Update "merge requests closing issues"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All the code that pre-calculates metrics for use in the cycle analytics
page.

- Ci::Pipeline -&gt; build start/finish
- Ci::Pipeline#merge_requests
- Issue -&gt; record default metrics after save
- MergeRequest -&gt; record default metrics after save
- Deployment -&gt; Update "first_deployed_to_production_at" for MR metrics
- Git Push -&gt; Update "first commit mention" for issue metrics
- Merge request create/update/refresh -&gt; Update "merge requests closing issues"
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix English</title>
<updated>2016-09-13T08:22:02+00:00</updated>
<author>
<name>Lin Jen-Shin</name>
<email>godfat@godfat.org</email>
</author>
<published>2016-09-13T08:22:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=05faeec708824bf97c3114b23235859663631b27'/>
<id>05faeec708824bf97c3114b23235859663631b27</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a test for #22010</title>
<updated>2016-09-13T08:14:20+00:00</updated>
<author>
<name>Lin Jen-Shin</name>
<email>godfat@godfat.org</email>
</author>
<published>2016-09-13T08:14:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=18d7ae43099040d21dddbb114761c34c833ec766'/>
<id>18d7ae43099040d21dddbb114761c34c833ec766</id>
<content type='text'>
The observed faulty state transition is probably hard to test,
because we need to hook into internal states to observe them.
Namely this:

    07:30:16 | Build#ruby-2.2 enqueue: created -&gt; pending
    07:30:16 | Pipeline#32    enqueue: created -&gt; pending
    07:30:16 | Build#ruby-2.3 enqueue: created -&gt; pending
    07:30:16 | Build#ruby-2.2     run: pending -&gt; running
    07:30:16 | Pipeline#32        run: pending -&gt; running
    07:30:29 | Build#ruby-2.2    drop: running -&gt; failed
    07:30:29 | Pipeline#32        run: running -&gt; running
    07:30:29 | Build#ruby-2.3     run: pending -&gt; running
    07:30:30 | Pipeline#32        run: running -&gt; running
    07:30:57 | Build#gem:build   skip: created -&gt; skipped
    07:30:57 | Pipeline#32       drop: running -&gt; failed
    07:30:57 | Build#gem:release skip: created -&gt; skipped
    07:30:57 | Pipeline#32       drop:  failed -&gt; failed
    07:30:57 | Build#ruby-2.3    drop: running -&gt; failed
    07:30:57 | Pipeline#32       drop: running -&gt; failed
                                       ^^^ Should be failed -&gt; failed

However, the consequence of this, executing hooks twice would be
easy enough to observe. So we could at least test against this.
Keep in mind that if we ever changed how we execute the hooks
this won't be testing against faulty state transition.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The observed faulty state transition is probably hard to test,
because we need to hook into internal states to observe them.
Namely this:

    07:30:16 | Build#ruby-2.2 enqueue: created -&gt; pending
    07:30:16 | Pipeline#32    enqueue: created -&gt; pending
    07:30:16 | Build#ruby-2.3 enqueue: created -&gt; pending
    07:30:16 | Build#ruby-2.2     run: pending -&gt; running
    07:30:16 | Pipeline#32        run: pending -&gt; running
    07:30:29 | Build#ruby-2.2    drop: running -&gt; failed
    07:30:29 | Pipeline#32        run: running -&gt; running
    07:30:29 | Build#ruby-2.3     run: pending -&gt; running
    07:30:30 | Pipeline#32        run: running -&gt; running
    07:30:57 | Build#gem:build   skip: created -&gt; skipped
    07:30:57 | Pipeline#32       drop: running -&gt; failed
    07:30:57 | Build#gem:release skip: created -&gt; skipped
    07:30:57 | Pipeline#32       drop:  failed -&gt; failed
    07:30:57 | Build#ruby-2.3    drop: running -&gt; failed
    07:30:57 | Pipeline#32       drop: running -&gt; failed
                                       ^^^ Should be failed -&gt; failed

However, the consequence of this, executing hooks twice would be
easy enough to observe. So we could at least test against this.
Keep in mind that if we ever changed how we execute the hooks
this won't be testing against faulty state transition.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'smart-pipeline-duration' into 'master'</title>
<updated>2016-09-08T17:38:20+00:00</updated>
<author>
<name>Rémy Coutable</name>
<email>remy@rymai.me</email>
</author>
<published>2016-09-08T17:38:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=eb2d20665f8bf7fd9783a3d46c8882076b473a95'/>
<id>eb2d20665f8bf7fd9783a3d46c8882076b473a95</id>
<content type='text'>

Smartly calculate real running time and pending time

## What does this MR do?

Try to smartly calculate the running time and pending time for pipelines, instead of just use wall clock time from start to end. The algorithm is based on:

&gt; Suppose we have A, B, and C jobs:

&gt; * A: from 1 to 3
&gt; * B: from 2 to 4
&gt; * C: from 6 to 7

&gt; The processing time should be accumulated from 1 to 4, and 6 to 7, totally 4, excluding retires, and calculate on `%w[success failed running canceled]` jobs (if a job is not finished yet, assume it's `Time.now`)

## Are there points in the code the reviewer needs to double check?

I would actually like to test `Gitlab::Ci::PipelineDuration#process_segments`, but it's a private method right now and it's not very convenient to test it. Is there a way to test it without changing the original code too much? Note that I would like to avoid saving merged segments because it's not used and should be garbage collected.

## Screenshots:

![Screen_Shot_2016-09-05_at_6.45.32_PM](/uploads/a82bfaf316661091e383b743a2f11334/Screen_Shot_2016-09-05_at_6.45.32_PM.png)

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- Tests
  - [x] Added for this feature/bug

## What are the relevant issue numbers?

Closes #18260, #19804

See merge request !6084</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Smartly calculate real running time and pending time

## What does this MR do?

Try to smartly calculate the running time and pending time for pipelines, instead of just use wall clock time from start to end. The algorithm is based on:

&gt; Suppose we have A, B, and C jobs:

&gt; * A: from 1 to 3
&gt; * B: from 2 to 4
&gt; * C: from 6 to 7

&gt; The processing time should be accumulated from 1 to 4, and 6 to 7, totally 4, excluding retires, and calculate on `%w[success failed running canceled]` jobs (if a job is not finished yet, assume it's `Time.now`)

## Are there points in the code the reviewer needs to double check?

I would actually like to test `Gitlab::Ci::PipelineDuration#process_segments`, but it's a private method right now and it's not very convenient to test it. Is there a way to test it without changing the original code too much? Note that I would like to avoid saving merged segments because it's not used and should be garbage collected.

## Screenshots:

![Screen_Shot_2016-09-05_at_6.45.32_PM](/uploads/a82bfaf316661091e383b743a2f11334/Screen_Shot_2016-09-05_at_6.45.32_PM.png)

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- Tests
  - [x] Added for this feature/bug

## What are the relevant issue numbers?

Closes #18260, #19804

See merge request !6084</pre>
</div>
</content>
</entry>
<entry>
<title>Remove tests for pending_duration</title>
<updated>2016-09-05T11:18:14+00:00</updated>
<author>
<name>Lin Jen-Shin</name>
<email>godfat@godfat.org</email>
</author>
<published>2016-09-05T11:18:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=d354d185ff8e6355d03457d61fd8424b4494e5cb'/>
<id>d354d185ff8e6355d03457d61fd8424b4494e5cb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Just sum all the queuing time, indication for needing more runners</title>
<updated>2016-09-02T15:43:10+00:00</updated>
<author>
<name>Lin Jen-Shin</name>
<email>godfat@godfat.org</email>
</author>
<published>2016-09-02T15:43:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7aaed299eb744e524a1597ceed923c14b556ef20'/>
<id>7aaed299eb744e524a1597ceed923c14b556ef20</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
