Commit Graph

23 Commits

Author SHA1 Message Date
GitLab Bot 35f525b5e4 Add latest changes from gitlab-org/gitlab@master 2022-09-14 18:12:48 +00:00
GitLab Bot a25809b2e5 Add latest changes from gitlab-org/gitlab@master 2022-08-22 03:11:34 +00:00
GitLab Bot f5e42f9737 Add latest changes from gitlab-org/gitlab@master 2022-08-19 18:10:17 +00:00
GitLab Bot 6c15c18fa4 Add latest changes from gitlab-org/gitlab@master 2020-01-09 18:07:52 +00:00
GitLab Bot c6373a2cec Add latest changes from gitlab-org/gitlab@master 2019-12-24 12:08:01 +00:00
GitLab Bot 4e516dbff9 Add latest changes from gitlab-org/gitlab@master 2019-11-13 12:06:22 +00:00
GitLab Bot 587794b4b8 Add latest changes from gitlab-org/gitlab@master 2019-10-02 00:06:26 +00:00
Thong Kuah 94bb660460 Add frozen_string_literal to spec/factories
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:18:39 +12:00
Tiger 42ca9c6f0d Add :preparing status to HasStatus
Introduces a new status for builds between :created and :pending
that will be used when builds require one or more prerequisite
actions to be completed before being picked up by a runner
(such as creating Kubernetes resources before deploying).

The existing :created > :pending transition is unchanged, so
only builds that require preparation will use the :preparing
status.
2019-03-20 11:48:31 +11:00
Shinya Maeda 8ed7b34066 Add unit tests for CommitStatus and Ci::Stage 2018-10-02 17:08:11 +02:00
Grzegorz Bizon cae3092f23 Fix specs creating a pipeline stage with implicit index 2018-04-24 11:07:37 +02:00
Rémy Coutable 4af9d592c5 Replace factory_girl_rails with factory_bot_rails
I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands:

```
grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|"
grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|"
```

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14 15:01:55 +01:00
Grzegorz Bizon 164b1df590 Extract ensure stage service from commit status class 2017-11-06 11:04:09 +01:00
Grzegorz Bizon cb4c9a03ce Extend specs for code we use to calculate statuses 2017-03-06 13:54:29 +01:00
Lin Jen-Shin b6a7a47834 Add a lot of tests for scopes, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7508#note_18622499
2016-11-19 01:02:49 +08:00
Kamil Trzcinski 39203f1adf Pre-create all builds for Pipeline when a trigger is received
This change simplifies a Pipeline processing by introducing a special new status: created.
This status is used for all builds that are created for a pipeline.
We are then processing next stages and queueing some of the builds (created -> pending) or skipping them (created -> skipped).
This makes it possible to simplify and solve a few ordering problems with how previously builds were scheduled.
This also allows us to visualise a full pipeline (with created builds).

This also removes an after_touch used for updating a pipeline state parameters.
Right now in various places we explicitly call a reload_status! on pipeline to force it to be updated and saved.
2016-08-11 15:22:35 +02:00
Kamil Trzcinski 20c7144ed2 Rename all `[ci_]commit` to `[ci_]pipeline` in specs and features 2016-06-03 16:22:26 +02:00
Kamil Trzcinski 3577b57f6b Try to use `pipeline` where applicable 2016-06-03 13:09:49 +02:00
Kamil Trzcinski 717fdd6d42 Rename Ci::Build commit to pipeline 2016-06-03 12:29:00 +02:00
Grzegorz Bizon 9661765127 Update commit status factory to reflect recent changes 2016-01-26 15:23:57 +01:00
Grzegorz Bizon 5583b9526b Add specs for build created using generic commit status 2016-01-26 08:34:48 +01:00
Zeger-Jan van de Weg a7682f8775 Specs for 'Merge When Build Succeeds' 2015-12-02 13:27:16 +01:00
Kamil Trzcinski 914cfbd2f1 Implement Commit Status API 2015-10-12 11:53:49 +02:00