summaryrefslogtreecommitdiff
path: root/lib/ci
Commit message (Collapse)AuthorAgeFilesLines
* Pre-create all builds for Pipeline when a trigger is receivedKamil Trzcinski2016-08-111-1/+1
| | | | | | | | | | | 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.
* Remove legacy Ci::StaticModel we do not use anymorefix/remove-legacy-ci-static-modelGrzegorz Bizon2016-08-081-49/+0
|
* Merge branch 'fix/use-fewer-queries-for-ci-charts' into 'master' Douwe Maan2016-08-011-26/+70
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use fewer queries for CI charts ## What does this MR do? It reduces number of queries sent for aggregating counts for CI graphs. ## Are there points in the code the reviewer needs to double check? N/A ## Why was this MR needed? For this project (gitlab-ce), loading `/graphs/master/ci` is so slow it times out eventually. I did a quick benchmarking on production and found that it can take 72.5 seconds to only load the controller action variables (there are queries done from the view, didn't look into those). This MR reduces the time to about 2.5 seconds. Extra improvement could be done by introducing an index on `gl_project_id` and `created_at` for `ci_builds` table, but I can't confirm that right now. ## What are the relevant issue numbers? #20262 ## Screenshots (if relevant) N/A ## 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)~~ - ~~[ ] API support added~~ - ~~Tests~~ - ~~[ ] Added for this feature/bug~~ - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5502
| * Use fewer queries for CI chartsfix/use-fewer-queries-for-ci-chartsAhmad Sherif2016-07-271-26/+70
| |
* | Move job dependencies entry to the new CI configGrzegorz Bizon2016-07-201-14/+10
| |
* | Add minor readability, style improvements in CI configGrzegorz Bizon2016-07-201-3/+2
| |
* | Merge branch 'master' into refactor/ci-config-move-job-entriesGrzegorz Bizon2016-07-201-34/+63
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (321 commits) Fix the Sentry spam from CSP violations by disabling it. Limit git rev-list output count to one in forced push check Ensure Owners are included in the scope for authorized_projects Fix alignment of icons on project page Fix ci_status_helper_spec to look for new SVGs use 2.0.5, actually (2.0.4 was a bad release) upgrade rouge to 2.0.4 Fix help page paths to make sure shortcuts and the UI help page work. fixes an issue cause by a bad merge Vertically align status icon within table Add new icons for every CI status Add global style for running icon Align running icon in merge request Add new running icon; add a bunch of styles to get svg to match existing fa icons Improve code design Fix broken builds_for_ref Move when tests before to make it no conflict with manual-actions Use value of `yaml_variables` and `when` from config_processor if undefined Add CHANGELOG entry CHANGELOG item ... Conflicts: lib/ci/gitlab_ci_yaml_processor.rb spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
| * Improve code designKamil Trzcinski2016-07-191-1/+1
| |
| * Fix broken builds_for_refKamil Trzcinski2016-07-191-1/+1
| |
| * Use value of `yaml_variables` and `when` from config_processor if undefinedKamil Trzcinski2016-07-191-32/+33
| |
| * Add implementation of manual actionsKamil Trzcinski2016-07-181-2/+2
| |
| * Store when and yaml variables in builds tableKamil Trzcinski2016-07-161-15/+38
| |
* | Move job environment validation to new CI configGrzegorz Bizon2016-07-191-11/+0
| |
* | Move tags and allow_failure CI entries to new configGrzegorz Bizon2016-07-181-8/+0
| |
* | Validate allowed keys only in new CI configGrzegorz Bizon2016-07-181-19/+0
| |
* | Improve valid keys validation for CI config nodesGrzegorz Bizon2016-07-181-9/+0
| |
* | Move job artifacts configuration new CI config codeGrzegorz Bizon2016-07-181-20/+0
| |
* | Move job variables config entry to new CI configGrzegorz Bizon2016-07-181-16/+0
| |
* | Move job image and services nodes to new CI configGrzegorz Bizon2016-07-181-8/+0
| |
* | Add metadata to new CI config and expose job nameGrzegorz Bizon2016-07-151-2/+2
| |
* | Remove job cache configfrom legacy yaml processorGrzegorz Bizon2016-07-141-21/+0
| |
* | Revert logical validation in CI job stage entryGrzegorz Bizon2016-07-141-0/+7
| |
* | Revert references to global node in CI job entryGrzegorz Bizon2016-07-141-6/+2
| |
* | Improve CI job entry validations in new configGrzegorz Bizon2016-07-141-7/+0
| |
* | Expose CI job commands and use in legacy processorGrzegorz Bizon2016-07-131-7/+6
| |
* | Remove CI job script validation from legacy configGrzegorz Bizon2016-07-101-15/+0
| |
* | Add comment for deprecated CI config `types` entryGrzegorz Bizon2016-07-091-3/+1
| |
* | Remove CI job stage code from legacy config processorGrzegorz Bizon2016-07-091-19/+9
| |
* | Simplify legacy CI config processor a littleGrzegorz Bizon2016-07-061-9/+4
| |
* | Move CI job config validations to new classesGrzegorz Bizon2016-07-061-2/+0
| |
* | Move decision about relevant jobs to new CI configGrzegorz Bizon2016-07-061-2/+0
| |
* | Remove code creating job hash from legacy CI configGrzegorz Bizon2016-07-051-2/+3
|/
* Merge branch 'refactor/ci-config-move-global-entries' into 'master' Rémy Coutable2016-07-051-69/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move global ci entries handling from legacy to new config ## What does this MR do? This MR moves responsibility of handling global CI config entries (like `image`, `services`), from legacy `GitlabCiYamlProcessor` to new CI Config ## Why was this MR needed? This is the next iteration of CI configuration refactoring ## What are the relevant issue numbers? #15060 ## Does this MR meet the acceptance criteria? - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) See merge request !4820
| * Move global CI cache configuration to new CI classesGrzegorz Bizon2016-06-291-28/+2
| |
| * Merge branch 'master' into refactor/ci-config-move-global-entriesGrzegorz Bizon2016-06-281-6/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (352 commits) Display last commit of deleted branch in push events (!4699) add changelog add missing attribute to attr_encrypted so it is fully backwards-compatible Add "GitLab team members only" to diagram link doc: note that .gitattributes uses default branch use the conf lexer so we have highlighted comments first draft of docs support cgi style options, such as erb?parent=json move the path alias to a more appropriate location make #custom_language private appease rubocop add an alias for Snippet#path appease rubocop check the tag so that an instance will pass too fix the spec, using project.change_head Revert "bump the master sha for gitlab-test!9" bump the master sha for gitlab-test!9 add custom highlighting via .gitattributes Rename Licenses API to License Templates API Check for conflict with wiki projects when creating a new project. ...
| * | Fix ci config cache validation in legacy processorGrzegorz Bizon2016-06-241-2/+2
| | |
| * | Minor refactorings in new CI configuration classesGrzegorz Bizon2016-06-231-0/+5
| | |
| * | Move CI stages configuration to new CI configGrzegorz Bizon2016-06-231-17/+8
| | |
| * | Handle CI environment variables in a new CI configGrzegorz Bizon2016-06-221-5/+1
| | |
| * | Handle after script CI config in new classesGrzegorz Bizon2016-06-211-9/+4
| | | | | | | | | | | | | | | This also makes Script to return an array of commands instead of concatented command, which is our current direction.
| * | Handle CI services config in new CI config classesGrzegorz Bizon2016-06-211-6/+2
| | |
| * | Move CI image configuration entry to new CI configGrzegorz Bizon2016-06-211-11/+9
| | |
* | | Merge remote-tracking branch 'upstream/master' into save-artifacts_sizesLin Jen-Shin2016-07-041-1/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (175 commits) Document Repository#keep_around Don't garbage collect commits that have related DB records like comments Update CHANGELOG Update RedCloth to 4.3.2 for CVE-2012-6684 Fix typo in Merge Requests API documentation Downgrade to Redis 3.2.2 due to massive memory leak with Sidekiq Enable Style/EmptyLines cop, remove redundant ones Update CHANGELOG Cache results from jQuery selectors to retrieve namespace name Fix import button when import fail due the namespace already been taken Fix snippets comments not displayed Fix emoji paths in relative root configurations Exclude requesters from Project#members, Group#members and User#members Upgrade Thin from 1.6.1 to 1.7.0. Many squashed commits Cache autocomplete results Upgrade Sidekiq from 4.1.2 to 4.1.4. Upgrade seed-fu from 2.3.5 to 2.3.6 use has_many relationship with events Support creating a todo on issuables via API ...
| * | | Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-1/+0
| | |/ | |/|
* | | Use AR callbacks as suggested by:Lin Jen-Shin2016-06-291-1/+0
| | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12744656
* | | Prefer Ci::Build#erase_artifacts!Lin Jen-Shin2016-06-281-2/+1
| | |
* | | Just save the size in total rather than individual filesLin Jen-Shin2016-06-281-1/+1
| | | | | | | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
* | | Introduce ci_builds.artifacts_sizes as JSON:Lin Jen-Shin2016-06-281-0/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | We store the sizes as a hash from path to bytes like: ``` ruby {'ci_artifacts.txt' => 27, 'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif' => 71759, 'other_artifacts_0.1.2/doc_sample.txt' => 1314, 'rails_sample.jpg' => 35255, 'tests_encoding/utf8 test dir ✓/regular_file_2' => 7} ``` So that it's easier to access than reading gzip file again.
* | Merge branch 'refactor/ci-config-add-entry-error' into 'master' Rémy Coutable2016-06-271-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve validations and error handling in new CI config entries ## What does this MR do? This MR improves validation in new CI config. ## Why was this MR needed? With that it will be easier to handle errors during validation and post-processing. ## What are the relevant issue numbers? This is a continuation of #15060 See merge request !4560
| * Merge branch 'master' into refactor/ci-config-add-entry-errorrefactor/ci-config-add-entry-errorGrzegorz Bizon2016-06-201-5/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (345 commits) use rails root join fixed a couple of errors spotted in production Fix RangeError exceptions when referring to issues or merge requests outside of max database values Fix bug in `WikiLinkFilter`. Small frontend code fixes and restore 8a2d88f commit Warn about admin privilege to disable GitHub Webhooks Listing GH Webhooks doesn't stop import process for non GH admin users fixup! updated docs for api endpoint award emoji Update CHANGELOG Ensure Todos counters doesn't count Todos for projects pending delete Add endpoints for award emoji on notes Sort API endpoints and implement feedback Add endpoints for Award Emoji Fixed issue with assignee dropdown not selecting correctly Removed update method Re-structured controller spec Renamed issuable param to issuable_id Fix clibpoard buttons on "Check out branch" modal. Track method call times/counts as a single metric Cache todo counters (pending/done) Fix a 'wrong number of arguments' error Added missing mount point for Sidekiq Metrics API, after it got lost on rebase. ...