summaryrefslogtreecommitdiff
path: root/lib/ci
Commit message (Collapse)AuthorAgeFilesLines
* Add logical validation to gitlab-ci.ymlKamil Trzcinski2016-10-181-0/+30
|
* Extract method that checks if ci runner needs updateGrzegorz Bizon2016-10-031-4/+11
|
* Update runner version only when updating contacted_atKamil Trzcinski2016-10-032-14/+10
|
* Expose jobs to viewKatarzyna Kobierska2016-09-301-3/+1
|
* Add missing values to linterKatarzyna Kobierska2016-09-301-0/+2
|
* Remove duplicate VersionInfo classRobert Speicher2016-09-291-52/+0
| | | | | This was brought over during the CI merge and already exists at `lib/gitlab/version_info.rb`.
* Improve JwtController implementationpost-merge-improve-of-ci-permissionsKamil Trzcinski2016-09-201-1/+2
|
* Post-merge improve of CI permissionsKamil Trzcinski2016-09-201-3/+3
|
* Merge branch 'master' into per-build-tokenKamil Trzcinski2016-09-192-1/+11
|\
| * Fix CI job environment configuration attributesGrzegorz Bizon2016-09-191-1/+1
| |
| * Properly create deployment using all possible optionsKamil Trzcinski2016-09-191-0/+9
| |
| * Add new CI configuration entry for the environmentGrzegorz Bizon2016-09-191-1/+2
| |
* | Don't leak build tokens in build logsKamil Trzcinski2016-09-191-0/+9
| |
* | Fix most of specsKamil Trzcinski2016-09-151-2/+2
| |
* | Merge remote-tracking branch 'origin/master' into per-build-tokenKamil Trzcinski2016-09-152-1/+9
|\ \ | |/ | | | | | | # Conflicts: # db/schema.rb
| * Change response for /ci/api/v1/builds/register.json from 404 to 204Tomasz Maczukin2016-09-132-1/+9
| |
* | Use a permissions of user to access all dependent projects from CI jobs ↵Kamil Trzcinski2016-09-131-3/+11
|/ | | | (this also includes a container images, and in future LFS files)
* Merge branch 'gitlab-workhorse-safeties' into 'master' Jacob Vosmaer (GitLab)2016-09-091-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Security and safety improvements for gitlab-workhorse integration Companion to https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/60 - Use a custom content type when sending data to gitlab-workhorse - Verify (using JWT and a shared secret on disk) that internal API requests came from gitlab-workhorse This will allow us to build features in gitlab-workhorse that require more trust, and protect us against programming mistakes in the future. This is designed so that no action is required for installations from source. For omnibus-gitlab we need to add code that manages the shared secret. See merge request !5907
| * Verify JWT messages from gitlab-workhorseJacob Vosmaer2016-09-051-1/+3
| |
* | Merge branch 'change-update-interval-of-runners' into 'master' Yorick Peterse2016-09-082-4/+6
|\ \ | | | | | | | | | | | | Change update interval of runners when trying to preserve contacted_at See merge request !6126
| * | Change update interval of runners when trying to preserve contacted_atchange-update-interval-of-runnersKamil Trzcinski2016-09-072-4/+6
| |/
* | Merge branch 'refactor/ci-config-add-logical-validation' into 'master' Rémy Coutable2016-09-071-10/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass dependencies to CI configuration nodes ## What does this MR do? This MR makes it possible to pass dependencies to CI configuration nodes. ## What are the relevant issue numbers? See #15060 ## Does this MR meet the acceptance criteria? - Tests - [x] Added for this feature/bug - [x] All builds are passing See merge request !6009
| * | Add method that returns commands for ci job entryGrzegorz Bizon2016-08-291-6/+1
| | |
| * | Do not override job nodes in legacy ci config codeGrzegorz Bizon2016-08-291-5/+5
| |/
* | Code refactorKatarzyna Kobierska2016-09-071-0/+1
| |
* | Improve codeKatarzyna Kobierska2016-09-071-9/+6
| |
* | Code refactoringKatarzyna Kobierska2016-09-071-6/+10
| |
* | Change class method nameKatarzyna Kobierska2016-09-071-2/+2
| |
* | Add class method to encapsulate exceptionKatarzyna Kobierska2016-09-071-0/+9
| |
* | Move lint to api from ci/apiKatarzyna Kobierska2016-09-072-39/+0
| |
* | Add params requires to lintKatarzyna Kobierska2016-09-072-21/+21
| |
* | Fix rubocop testsKatarzyna Kobierska2016-09-071-2/+1
| |
* | Add tests for API CI LintKatarzyna Kobierska2016-09-072-16/+24
| |
* | API for CI LintKatarzyna Kobierska2016-09-073-0/+32
|/
* Add Sentry logging to API callsadd-sentry-logging-to-apiStan Hu2016-08-241-10/+2
| | | | Closes #21043
* Tracking of custom eventscustom-events-trackingYorick Peterse2016-08-171-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GitLab Performance Monitoring is now able to track custom events not directly related to application performance. These events include the number of tags pushed, repositories created, builds registered, etc. The use of these events is to get a better overview of how a GitLab instance is used and how that may affect performance. For example, a large number of Git pushes may have a negative impact on the underlying storage engine. Events are stored in the "events" measurement and are not prefixed with "rails_" or "sidekiq_", this makes it easier to query events with the same name triggered from different parts of the application. All events being stored in the same measurement also makes it easier to downsample data. Currently the following events are tracked: * Creating repositories * Removing repositories * Changing the default branch of a repository * Pushing a new tag * Removing an existing tag * Pushing a commit (along with the branch being pushed to) * Pushing a new branch * Removing an existing branch * Importing a repository (along with the URL we're importing) * Forking a repository (along with the source/target path) * CI builds registered (and when no build could be found) * CI builds being updated * Rails and Sidekiq exceptions Fixes gitlab-org/gitlab-ce#13720
* 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
| |