summaryrefslogtreecommitdiff
path: root/app/models/commit_status.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix handling of allowed to failure jobsKamil Trzcinski2016-12-061-6/+1
|
* Introduce `Ci::Stage`, right now this is artificial object that is build ↵Kamil Trzcinski2016-12-061-7/+2
| | | | dynamically.
* Support pipelines APIKamil Trzcinski2016-12-061-10/+1
| | | | Pass `updated_at` to get only incremental changes since last update
* Move has_trace? to CommitStatus than GenericCommitStatusLin Jen-Shin2016-11-221-3/+7
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7617#note_18762721
* Fix optimistic lockingKamil Trzcinski2016-10-261-6/+6
|
* Remove redundant class_name and foreign_key overridesDavid Wagner2016-10-241-1/+1
| | | | | | They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
* Do not return from proc-closure in pipeline transitionGrzegorz Bizon2016-10-121-1/+1
|
* Merge branch 'master' into feature/improve-mrwbs-and-todos-for-pipelinesGrzegorz Bizon2016-10-121-10/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Check for transition loopback in commit statusfix/async-pipeline-processing-stale-dataGrzegorz Bizon2016-10-081-1/+3
| |
| * Add temporary fix for race condition in MWBSGrzegorz Bizon2016-10-081-0/+3
| |
| * Improve transitions and run hooks after transactionGrzegorz Bizon2016-10-081-18/+20
| |
| * Fix ci pipeline processing with async jobsGrzegorz Bizon2016-10-071-14/+17
| |
* | Rename pipeline workers to match current conventionGrzegorz Bizon2016-10-061-2/+2
| |
* | Move MWBS trigger from build to pipeline eventGrzegorz Bizon2016-10-061-4/+0
|/
* Merge branch 'feature/improve-async-pipeline-processing' into 'master' Kamil Trzciński2016-10-061-6/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Do not return false in commit status transitionfeature/improve-async-pipeline-processingGrzegorz Bizon2016-10-041-1/+1
| |
| * Fix hipchat service specs after changes in pipelineGrzegorz Bizon2016-10-041-3/+2
| |
| * Update order of build transition callbacksGrzegorz Bizon2016-10-041-12/+13
| |
| * Extract updating pipeline status to async workerGrzegorz Bizon2016-10-041-4/+8
| |
| * Use internal commit status API to check if finishedGrzegorz Bizon2016-10-041-2/+2
| |
| * Fix async pipeline and remove unrelated changesGrzegorz Bizon2016-10-041-6/+1
| |
| * Make pipeline processing asynchronousKamil Trzcinski2016-10-031-4/+10
| | | | | | | | | | | | Conflicts: app/models/ci/pipeline.rb app/models/commit_status.rb
* | Introduce all_state_names so that we could avoid NOT INLin Jen-Shin2016-10-051-2/+2
| |
* | Add test for CommitStatus.exclude_ignoredLin Jen-Shin2016-10-031-1/+0
| |
* | Style/EmptyLinesAroundBlockBodyLin Jen-Shin2016-10-031-0/+3
| |
* | Specify 3 cases we want them to be excluded. [ci skip]Lin Jen-Shin2016-10-031-0/+1
| |
* | Rename ignored to failed_but_allowed, introduce exclude_ignoredLin Jen-Shin2016-10-031-2/+14
|/ | | | | which merges previous exclude_ignored_jobs and failed_but_allowed, so that we don't treat ignored a special case in HasStatus.
* Fix processing of events when build finished.Kamil Trzcinski2016-09-191-4/+4
| | | | This solves Pipelines in `running` after all stages do finish.
* Merge branch 'group-similar' into 'master' Rémy Coutable2016-09-151-0/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Group similar builds We group builds by removing from the builds name two numbers which are delimited by whitespace or colon: * `name 0 1` => `name` * `name 0:1` => `name` * `name 0/1` => `name` * `name 0:1 ruby` => `name ruby` * `name 0/1 ruby` => `name ruby` * `0 1 name ruby` => `name ruby` * `0:1 name ruby` => `name ruby` * `0/1 name ruby` => `name ruby` See merge request !6242
| * Add grouping testsKamil Trzcinski2016-09-141-1/+5
| |
| * Group similar buildsKamil Trzcinski2016-09-071-0/+4
| |
* | Revert "reload instead, so that we don't have to change order"Lin Jen-Shin2016-09-121-11/+4
| | | | | | | | This reverts commit 575dc2b0d78b2680d6e5bb43f293c98d378b8733.
* | reload instead, so that we don't have to change orderLin Jen-Shin2016-09-121-4/+11
| |
* | Fix the ordering of transition callbacks:Lin Jen-Shin2016-09-121-7/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | Because pipeline status could be changed for the builds in the next stages, if we process next stages first, the current build would be out of synchronized, and would need a reload for that matter. Alternatively, like what I did in this commit, we could process the next stages later (by using `after_transition` rather than `around_transition`), and complete what're doing for the current build first. This way we don't have to reload because nothing is out synchronized. Note that since giving `false` in `after_transition` would halt the callbacks chain, according to: https://github.com/state-machines/state_machines-activemodel/blob/v0.4.0/lib/state_machines/integrations/active_model.rb#L426-L429 We'll need to make sure we're not returning false because we don't intend to interrupt the chain. This fixes #22010. After this fix, both pipeline events and build events would only show up once.
* Merge branch 'statuseable-hasstatus' into 'master' Robert Speicher2016-08-251-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | rename Statuseable to HasStatus ## What does this MR do? - Rename all instances of Statuseable in the codebase, to HasStatus - Rename all files from statuseable to has_status ## What are the relevant issue numbers? Closes #21103 See merge request !6003
| * rename Statuseable to HasStatusDe Wet Blomerus2016-08-251-1/+1
| |
* | Reduce number of database queries on builds tab13912-reduce-pipeline-db-queriesPaco Guzman2016-08-251-0/+2
|/
* Merge branch 'mark-as-processable' into 'master' Robert Speicher2016-08-191-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make all future skipped builds as processable when retrying a build ## What does this MR do? Makes a builds that are marked as skipped when a pipeline is processed to be reprocessed by changing their's state to created. ## Why was this MR needed? Currently retry is broken. When you retry a build of pipeline it will succeed and be marked as succeeded, when the next stages should be triggered. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/21066 See merge request !5879
| * Make all future skipped builds as processable when retrying a buildKamil Trzcinski2016-08-181-0/+4
| |
* | Merge remote-tracking branch 'upstream/pipeline-hooks-without-slack' into ↵Lin Jen-Shin2016-08-151-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wall-clock-time-for-showing-pipeline * upstream/pipeline-hooks-without-slack: Make explicit call for all event types for ProjectHook factory Capitalise URL on web_hooks/form Remove changes not related to this MR Added documentation for pipeline hooks Rename queue to enqueue in tests Instrument Project.visible_to_user Fix build play failure Update ruby 2.3.1 Improve transition between states for event `enqueue` Use event `enqueue` instead of `queue` Fix test failures Fix bug where destroying a namespace would not always destroy projects Remove unused SpamReport model; this was renamed to SpamLog Corrected links/usernames in performance guide Add gravatars to build history Add deployment ID and gravatar to environments page Format environment history page Add avatar to commit message; environment style updates to match pipelines page Style deploy button
| * Use event `enqueue` instead of `queue`Kamil Trzcinski2016-08-121-1/+1
| |
* | Rename to total_duration and we're not using CommitStatus.durationLin Jen-Shin2016-08-151-5/+0
| |
* | Merge branch 'pipeline-hooks-without-slack' into ↵Lin Jen-Shin2016-08-151-8/+27
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wall-clock-time-for-showing-pipeline * pipeline-hooks-without-slack: (156 commits) Fix test failures Make pipeline to be in created state for hooks tests Make `execute_methods` public Added specs for started_at and finished_at Use explicit events to transition between states Fix tests. We cannot reload unless it's already saved: Have trait all_events_enabled so that's easier to reuse, feedback: Simplify the name for data builder, feedback: Prefer extend self over module_function, feedback: Make it more grammatically correct, feedback: if -> when; when -> `when`; %w() -> %w[]; and fix some typos: Prefer described_class, feedback: Make the comment more clear, feedback: Update CHANGELOG render only commit title Fix test failures, that did occur because of missing previously used `reload_status!` call Use state machine for pipeline event processing Upgrade Rails to 4.2.7.1 for security fixes. Update gitlab-shell to v3.3.3 Verify the pipeline status after executing events on builds ...
| * Use explicit events to transition between statesKamil Trzcinski2016-08-121-1/+1
| |
| * Fix test failures, that did occur because of missing previously used ↵Kamil Trzcinski2016-08-111-10/+8
| | | | | | | | `reload_status!` call
| * Use state machine for pipeline event processingKamil Trzcinski2016-08-111-4/+4
| |
| * Verify the pipeline status after executing events on buildsKamil Trzcinski2016-08-111-0/+6
| |
| * Pre-create all builds for Pipeline when a trigger is receivedKamil Trzcinski2016-08-111-8/+23
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Cleanup the use of duration and optimize some queriesLin Jen-Shin2016-08-101-7/+7
|/
* Workaround MySQL with INNER JOIN:Lin Jen-Shin2016-07-211-1/+5
| | | | | | | This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery' Oh well.