Lin Jen-Shin
057c0d7a5c
Also track auto-cancelling in jobs, detail:
...
Not only tracking auto-cancelling in pipelines,
we'll also track this in jobs because pipelines
could be retried and the information would get lost
when this happened. Also erase auto-cancelling
relation for pipelines when they're retried.
2017-04-06 21:32:56 +08:00
Kamil Trzcinski
bb910c3b46
Make CI build to use optimistic locking only on status change
2017-03-28 17:50:28 +02:00
Kamil Trzciński
12dd5ac221
All CI offline migrations
2017-03-17 23:06:11 +00:00
Grzegorz Bizon
c4d5b231ed
Ignore optional actions when calculating warnings
2017-03-06 14:43:32 +01:00
Grzegorz Bizon
305064a639
Fix invalid description in commit status specs
2017-03-06 12:43:29 +01:00
Grzegorz Bizon
ac5bd3b73c
Reinstitute a core `manual` status for manual actions
2017-03-06 10:04:04 +01:00
Grzegorz Bizon
dd24091191
Add support for blocking actions to CI/CD pipeline
2017-03-06 10:04:04 +01:00
Grzegorz Bizon
79ea01bfaf
Refactor code related to pipeline blocking actions
2017-03-06 10:04:04 +01:00
Kamil Trzcinski
be039d22d7
Make manual actions blocking
2017-03-06 10:04:04 +01:00
Douwe Maan
56de781a2c
Revert "Enable Style/DotPosition"
...
This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9.
# Conflicts:
# .rubocop.yml
# .rubocop_todo.yml
# lib/gitlab/ci/config/entry/global.rb
# lib/gitlab/ci/config/entry/jobs.rb
# spec/lib/gitlab/ci/config/entry/factory_spec.rb
# spec/lib/gitlab/ci/config/entry/global_spec.rb
# spec/lib/gitlab/ci/config/entry/job_spec.rb
# spec/lib/gitlab/ci/status/build/factory_spec.rb
# spec/lib/gitlab/incoming_email_spec.rb
2017-02-23 09:33:19 -06:00
Douwe Maan
1fe7501b49
Revert "Prefer leading style for Style/DotPosition"
...
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan
b3ff48c9a1
Move up delegate calls
2017-02-23 09:32:42 -06:00
Douwe Maan
206953a430
Prefer leading style for Style/DotPosition
2017-02-23 09:32:22 -06:00
Douwe Maan
5cd9c7c6ea
Enable Rails/Validation
2017-02-23 09:31:57 -06:00
Douwe Maan
3dadf306dd
Enable Style/DotPosition
2017-02-23 09:31:56 -06:00
Grzegorz Bizon
346a7c696a
Add after_stage scope to commit status class
2017-02-14 11:38:19 +01:00
Grzegorz Bizon
ffcf3c6858
Skip job only when canceling the pipeline it belongs to
2017-02-13 15:11:21 +01:00
Grzegorz Bizon
008f22cd82
Fix pipeline specs related to canceling builds
2017-02-13 15:11:21 +01:00
Grzegorz Bizon
a70a83cf29
Skip buils that were canceled but not started yet
2017-02-13 15:11:21 +01:00
Mike Greiling
1c5a506588
rename sort method
2017-01-02 11:44:08 -06:00
Mike Greiling
2eb0beb661
add natural sorting token for build names
2017-01-02 11:44:08 -06:00
Grzegorz Bizon
5f590a71fd
Improve readability in methods for detailed status
2016-12-13 13:24:25 +01:00
Kamil Trzcinski
980009e6e8
Fix auto loading of constants for Ci Statuses
2016-12-12 12:59:01 +01:00
Kamil Trzcinski
633e64382d
Added Ci::Status::Build
2016-12-12 12:59:01 +01:00
Kamil Trzcinski
260d754ca8
Fix handling of allowed to failure jobs
2016-12-06 14:13:21 +01:00
Kamil Trzcinski
d865aedafc
Introduce `Ci::Stage`, right now this is artificial object that is build dynamically.
2016-12-06 14:13:21 +01:00
Kamil Trzcinski
4e06818d33
Support pipelines API
...
Pass `updated_at` to get only incremental changes since last update
2016-12-06 14:13:21 +01:00
Lin Jen-Shin
da9726170c
Move has_trace? to CommitStatus than GenericCommitStatus
...
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18762721
2016-11-22 13:36:19 +08:00
Kamil Trzcinski
d8aed6a27b
Fix optimistic locking
2016-10-26 11:37:23 +02:00
David Wagner
03b6108f6f
Remove redundant class_name and foreign_key overrides
...
They were Rails' default and are unnecessarily overridden.
Signed-off-by: David Wagner <david@marvid.fr>
2016-10-24 22:29:48 +02:00
Grzegorz Bizon
2e3bc85421
Do not return from proc-closure in pipeline transition
2016-10-12 15:21:11 +02:00
Grzegorz Bizon
419518df67
Merge branch 'master' into feature/improve-mrwbs-and-todos-for-pipelines
...
* master: (221 commits)
Add CHANGELOG entry for 8.12.6
Added 'Download' button to snippet view
Merge branch 'api-fix-project-group-sharing' into 'security'
Add 8.12.5, 8.11.9, and 8.10.12 CHANGELOG entries
FIx JS bug with select2 because of missing `data-field` attribute in select box.
Remove pointless `.vagrant_enabled` file
allow multiple labels commands
Move some CHANGELOG entries to the 8.13.0 part
Move operations/ to new location
Move health check docs under user/admin_area/monitoring
Make guests unable to view MRs
Add examples of fake tokens to be used in docs
Remove duplicate CHANGELOG entry
Allow browsing branches that end with '.atom'
Refactor the SubGit/SVN documentation
Document the new CI_DEBUG_TRACE variable
Remove redundant images
changed the scss for the top line connectors to be exactly centered
Rearrange GitLab basics READMEs
New images for GitLab basics "Create MR" docs
...
Conflicts:
app/models/commit_status.rb
2016-10-12 11:52:54 +02:00
Grzegorz Bizon
904de2d64b
Check for transition loopback in commit status
2016-10-08 20:42:09 +02:00
Grzegorz Bizon
3fb4d86c6d
Add temporary fix for race condition in MWBS
2016-10-08 20:34:45 +02:00
Grzegorz Bizon
74fd5cab15
Improve transitions and run hooks after transaction
2016-10-08 20:25:16 +02:00
Grzegorz Bizon
f5631ff262
Fix ci pipeline processing with async jobs
2016-10-07 14:52:30 +02:00
Grzegorz Bizon
a43baa056e
Rename pipeline workers to match current convention
2016-10-06 14:52:00 +02:00
Grzegorz Bizon
217244074f
Move MWBS trigger from build to pipeline event
2016-10-06 10:46:31 +02:00
Kamil Trzciński
0bbeff3d5e
Merge branch 'feature/improve-async-pipeline-processing' into 'master'
...
Improve asynchronous pipeline processing
## What does this MR do?
This MR improves asynchronous processing of pipeline.
## Why was this MR needed?
It eliminates some race conditions and improves performance.
## Does this MR meet the acceptance criteria?
- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG ) entry added
- Tests
- [x] Added for this feature/bug
- [x] All builds are passing
## What are the relevant issue / merge request numbers?
Related merge request: !6410
Extracted from !6411
See merge request !6650
2016-10-06 08:42:35 +00:00
Lin Jen-Shin
5c9ac560e7
Introduce all_state_names so that we could avoid NOT IN
2016-10-05 00:10:23 +08:00
Grzegorz Bizon
7f270d041d
Do not return false in commit status transition
2016-10-04 16:34:22 +02:00
Grzegorz Bizon
5ce5abdc1d
Fix hipchat service specs after changes in pipeline
2016-10-04 14:43:58 +02:00
Grzegorz Bizon
f57cfdb6b5
Update order of build transition callbacks
2016-10-04 14:43:58 +02:00
Grzegorz Bizon
7d4767fb48
Extract updating pipeline status to async worker
2016-10-04 14:43:24 +02:00
Grzegorz Bizon
578638742a
Use internal commit status API to check if finished
2016-10-04 14:43:24 +02:00
Grzegorz Bizon
68774452a4
Fix async pipeline and remove unrelated changes
2016-10-04 14:42:32 +02:00
Lin Jen-Shin
752a4cce51
Add test for CommitStatus.exclude_ignored
2016-10-03 18:56:32 +08:00
Kamil Trzcinski
4567e624a0
Make pipeline processing asynchronous
...
Conflicts:
app/models/ci/pipeline.rb
app/models/commit_status.rb
2016-10-03 12:34:05 +02:00
Lin Jen-Shin
705d210c73
Style/EmptyLinesAroundBlockBody
2016-10-03 18:33:43 +08:00
Lin Jen-Shin
23e0a3ee7d
Specify 3 cases we want them to be excluded. [ci skip]
2016-10-03 18:25:18 +08:00