summaryrefslogtreecommitdiff
path: root/spec/models/ci
Commit message (Collapse)AuthorAgeFilesLines
* Replace Gitlab::REVISION with Gitlab.revision and handle installations ↵46600-fix-gitlab-revision-when-not-in-git-repoRémy Coutable2018-05-241-1/+1
| | | | | | without a .git directory Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'fix/gb/exclude-persisted-variables-from-environment-name' into ↵Grzegorz Bizon2018-05-212-2/+36
|\ | | | | | | | | | | | | | | | | 'master' Do not allow to use `CI_PIPELINE_ID` in environment name Closes #46443 See merge request gitlab-org/gitlab-ce!19032
| * Update pipeline persisted / predefined variables specsGrzegorz Bizon2018-05-182-4/+8
| |
| * Separate persisted and runtime pipeline variablesGrzegorz Bizon2018-05-181-0/+8
| |
| * Do not allow to use `CI_PIPELINE_ID` in environment nameGrzegorz Bizon2018-05-181-0/+22
| |
* | Fixes deploy tokens build variables46454-wrong-value-in-ci-deploy-userMayra Cabrera2018-05-181-1/+1
| | | | | | | | | | | | It was using name, instead of username. Fixes documentation as well Closes #46454
* | Merge branch 'fix/gb/not-allow-to-trigger-skipped-manual-actions' into 'master'Kamil Trzciński2018-05-181-0/+40
|\ \ | |/ |/| | | | | | | | | Do not allow to trigger manual actions that were skipped Closes #42589 See merge request gitlab-org/gitlab-ce!18985
| * Do not allow to trigger manual actions that were skippedGrzegorz Bizon2018-05-161-0/+40
| |
* | Preload pipeline data for project pipelinesYorick Peterse2018-05-171-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When displaying the pipelines of a project we now preload the following data: 1. Authors of the commits that belong to these pipelines 2. The number of warnings per pipeline, which is used by Ci::Pipeline#has_warnings? == Commit Authors Previously this data was queried for every Commit separately, leading to 20 SQL queries being executed in the worst case. With an average of 3 to 5 milliseconds per SQL query this could result in 100 milliseconds being spent in _just_ getting Commit authors. To preload this data Commit#author now uses BatchLoader (through Commit#lazy_author), and a separate module Gitlab::Ci::Pipeline::Preloader is used to ensure all authors are loaded before they are used. == Number of warnings This changes Ci::Pipeline#has_warnings? so it supports preloading of the number of warnings per pipeline. This removes the need for executing a COUNT(*) query for every pipeline just to see if it has any warnings or not.
* | Allow group runners to be viewed/edited in APIDylan Griffith2018-05-161-49/+13
|/
* Ensure Ci::Runner#assign_to errors for group runnerscorrect-runner-type-when-assigning-shared-to-projectDylan Griffith2018-05-101-7/+20
|
* Ensure runner_type is updated correctly when assigning shared runner to projectDylan Griffith2018-05-101-0/+1
|
* Add validation Ci::Runner runner_type must be presentDylan Griffith2018-05-091-0/+1
|
* Add some missing parens in project_spec and runner_specDylan Griffith2018-05-081-1/+1
|
* Merge branch 'add-git-commit-message-predefined-variable' into 'master'Grzegorz Bizon2018-05-072-2/+5
|\ | | | | | | | | | | | | Add CI_COMMIT_MESSAGE, CI_COMMIT_TITLE and CI_COMMIT_DESCRIPTION predefined variables Closes #20400 See merge request gitlab-org/gitlab-ce!18672
| * Add a CI_COMMIT_MESSAGE predefined variableTomasz Maczukin2018-05-072-2/+5
| |
* | Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-05-071-11/+229
|\ \
| * \ Merge branch 'master' into live-trace-v2Shinya Maeda2018-05-071-11/+229
| |\ \
| | * | Remove Runner#belonging_to_any_project since this is no longer neededDylan Griffith2018-05-031-15/+0
| | | |
| | * | Merge branch 'master' into feature/runner-per-groupDylan Griffith2018-05-031-1/+33
| | |\ \
| | * | | More style improvements to spec/models/ci/runner_spec.rbDylan Griffith2018-05-031-41/+40
| | | | |
| | * | | Style changes to spec/models/ci/runner_spec.rbDylan Griffith2018-05-031-35/+35
| | | | |
| | * | | Rename Runner#invalidate_build_cache -> Runner#pick_buildDylan Griffith2018-05-021-3/+3
| | | | |
| | * | | Fix spec/features/admin/admin_runners_spec.rb + test style improvementsDylan Griffith2018-05-011-4/+4
| | | | |
| | * | | Rename Runner#group? -> #assigned_to_group? and Runner#project? -> ↵Dylan Griffith2018-04-301-8/+8
| | | | | | | | | | | | | | | | | | | | #assigned_to_project?
| | * | | Revert fair scheduling for all buildsDylan Griffith2018-04-301-67/+0
| | | | | | | | | | | | | | | | | | | | Per discussion in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9646#note_65730532 this logic is being optimized elsewhere and it will simplify things if we make less changes to this code right now.
| | * | | Rename `runner.belonging_to_group(project.id) -> ↵Dylan Griffith2018-04-271-3/+3
| | | | | | | | | | | | | | | | | | | | runner.belonging_to_parent_group_of_project(project.id)`
| | * | | Tag runner_spec tests for subgroups with nested_groupsDylan Griffith2018-04-271-2/+2
| | | | |
| | * | | Merge branch 'master' into siemens-runner-per-groupDylan Griffith2018-04-261-1/+31
| | |\ \ \ | | | | |/ | | | |/|
| | * | | extract method to adhere to "tell, don't ask"Alexis Reigel2018-04-231-0/+26
| | | | |
| | * | | restrict projects ci controller to project runnersAlexis Reigel2018-04-231-0/+15
| | | | |
| | * | | simplify runner selectionAlexis Reigel2018-04-231-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | don't differentiate between the different runner types, instead we rely on the Runner model to provide the available projects. scheduling is now applied to all runners equally.
| | * | | ci runners: assigned to either projects or groupAlexis Reigel2018-04-231-0/+57
| | | | |
| | * | | support group hierarchies for group runnersAlexis Reigel2018-04-231-0/+9
| | | | |
| | * | | use .owned_or_shared for #assignable_for?Alexis Reigel2018-04-231-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | instead of having the explicit logic duplicated from the scope we can use the scope instead.
| | * | | don't filter group runners by project flagAlexis Reigel2018-04-231-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the scope `Ci::Runner.belonging_to_group` does not filter out the runners where the projects has `#group_runners_enabled` set to false anymore. it didn't show up in the runners UI anymore when group runners were disabled. this was confusing. the flag is only relevant when selecting appropriate runner for a build.
| | * | | add method CI::Runner.project?Alexis Reigel2018-04-231-3/+23
| | | | |
| | * | | split up Ci::Runner.owned_or_shared scopeAlexis Reigel2018-04-231-18/+24
| | | | |
| | * | | exclude group runners on projects that disabled itAlexis Reigel2018-04-231-0/+8
| | | | |
| | * | | add Ci::Runner#group? methodAlexis Reigel2018-04-231-0/+24
| | | | |
| | * | | drop 'scopes' context from specsAlexis Reigel2018-04-231-45/+43
| | | | |
| | * | | include group runners in scopeAlexis Reigel2018-04-231-4/+46
| | | | |
| | * | | add misssing scope specsAlexis Reigel2018-04-231-0/+19
| | | | |
* | | | | Added shared exmaple for fast_destroy_all concernShinya Maeda2018-05-041-0/+15
|/ / / /
* | | | Add validation and skip logic at #truncateShinya Maeda2018-05-041-5/+1
| | | |
* | | | Introduce Redis helpers. Rename BuildTraceChunkFlushToDbWorker to ↵Shinya Maeda2018-05-041-2/+2
| | | | | | | | | | | | | | | | Ci::BuildTraceChunkFlushWorker.
* | | | Merge branch 'master' into live-trace-v2Shinya Maeda2018-05-031-1/+33
|\ \ \ \ | | |_|/ | |/| |
| * | | Use stages position column to track stage indexGrzegorz Bizon2018-05-011-6/+6
| | | |
| * | | Rename stage index column name to priority columnGrzegorz Bizon2018-04-241-6/+6
| | | |
| * | | Use database query to calculate average stage positionGrzegorz Bizon2018-04-241-5/+19
| | | |