summaryrefslogtreecommitdiff
path: root/app/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-1/+7
|\ | | | | | | | | | | | | | | | | 'master' Do not allow to use `CI_PIPELINE_ID` in environment name Closes #46443 See merge request gitlab-org/gitlab-ce!19032
| * Separate persisted and runtime pipeline variablesGrzegorz Bizon2018-05-182-1/+2
| |
| * Do not allow to use `CI_PIPELINE_ID` in environment nameGrzegorz Bizon2018-05-181-2/+7
| |
* | Merge branch '46082-runner-contacted_at-is-not-always-a-time-type' into 'master'Kamil Trzciński2018-05-211-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Runner#contacted_at is not always a Time type" Closes #46082 See merge request gitlab-org/gitlab-ce!18810
| * | Dynamically cast value from cacheMatija Čupić2018-05-151-2/+1
| | |
| * | Merge branch 'master' into 46082-runner-contacted_at-is-not-always-a-time-typeMatija Čupić2018-05-091-0/+1
| |\ \
| * | | Move Runner#contacted_at to RedisCacheable#cached_attr_time_readerMatija Čupić2018-05-081-1/+2
| | | |
* | | | 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-1/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | 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-1/+1
| | | |
* | | | Preload pipeline data for project pipelinesYorick Peterse2018-05-171-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|/ / /
* | | [Rails5] Fix Ci::Pipeline validator for sourceblackst0ne-rails5-fix-spec-models-ci-pipeline_spec-rbblackst0ne2018-05-121-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | In Rails 5 enum returns value instead of key. For this case, the `NilClass` is returned instead of `unknown` which breaks validation of the `source` attribute. This commit adds a custom validatior that returns the correct result for both rails4 and rails5.
* | | Ensure Ci::Runner#assign_to errors for group runnerscorrect-runner-type-when-assigning-shared-to-projectDylan Griffith2018-05-101-0/+2
| | |
* | | Ensure runner_type is updated correctly when assigning shared runner to projectDylan Griffith2018-05-101-1/+5
| |/ |/|
* | Add validation Ci::Runner runner_type must be presentDylan Griffith2018-05-091-0/+1
|/
* Merge branch 'add-git-commit-message-predefined-variable' into 'master'Grzegorz Bizon2018-05-071-4/+27
|\ | | | | | | | | | | | | Add CI_COMMIT_MESSAGE, CI_COMMIT_TITLE and CI_COMMIT_DESCRIPTION predefined variables Closes #20400 See merge request gitlab-org/gitlab-ce!18672
| * Add memoization of commit related values in Ci::PipelineTomasz Maczukin2018-05-071-6/+18
| |
| * Add a CI_COMMIT_MESSAGE predefined variableTomasz Maczukin2018-05-071-0/+11
| |
* | Merge branch 'live-trace-v2-efficient-destroy-all' into 'master'Grzegorz Bizon2018-05-072-17/+40
|\ \ | | | | | | | | | | | | Live trace: Use efficient destroy all (for `dependent: :destory` problem) See merge request gitlab-org/gitlab-ce!18575
| * \ Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-05-074-11/+72
| |\ \
| * \ \ Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-05-041-3/+6
| |\ \ \
| * | | | Simplify FastDestroyAll moduleShinya Maeda2018-05-031-1/+12
| | | | |
| * | | | Clean up build_trace_chunkShinya Maeda2018-05-031-8/+9
| | | | |
| * | | | Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-05-033-5/+29
| |\ \ \ \
| * \ \ \ \ Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-05-021-1/+1
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-05-021-1/+1
| |\ \ \ \ \ \
| * | | | | | | Introduce `use_fast_destroy` helper for parent associations. Rename method ↵Shinya Maeda2018-05-021-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | names in build_trace_chunks. Forbid `destroy` method when `FastDestroyAll` included.
| * | | | | | | Introduces `FastDestroyAll` moduleShinya Maeda2018-05-011-24/+18
| | | | | | | |
| * | | | | | | Added spec for trace archiving.Shinya Maeda2018-04-301-1/+1
| | | | | | | |
| * | | | | | | Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-04-301-1/+1
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-04-301-5/+4
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Fix specs. Align with the new table name ci_build_trace_chunkShinya Maeda2018-04-262-10/+2
| | | | | | | | | |
| * | | | | | | | | Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-allShinya Maeda2018-04-262-37/+52
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge branch 'master' into live-trace-v2-efficient-destroy-allShinya Maeda2018-04-251-0/+11
| |\ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|/ | | |/| | | | | | | |
| * | | | | | | | | | Implement efficient destroy of job_trace_chunksKamil Trzciński2018-04-241-0/+24
| | | | | | | | | | |
| * | | | | | | | | | Merge branch 'live-trace-v2' into live-trace-v2-schedule-db-when-job-doneShinya Maeda2018-04-241-1/+1
| |\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Swap redis chunks when build finishedShinya Maeda2018-04-242-3/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Fix rubocopKamil Trzciński2018-05-071-1/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Fix WRITE_LOCK_SLEEPKamil Trzciński2018-05-071-1/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Optimise write lock parametersKamil Trzciński2018-05-071-5/+5
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | |
* | | | | | | | | | | Merge branch 'master' into live-trace-v2Shinya Maeda2018-05-074-11/+72
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | |
| * | | | | | | | | | Merge branch ↵Kamil Trzciński2018-05-062-0/+4
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '44059-specify-variables-when-executing-a-manual-pipeline-from-the-ui' into 'master' Resolve "Specify variables when executing a manual pipeline from the UI" Closes #44059 See merge request gitlab-org/gitlab-ce!18440
| | * \ \ \ \ \ \ \ \ \ Merge branch 'master' into ↵Matija Čupić2018-05-023-5/+29
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 44059-specify-variables-when-executing-a-manual-pipeline-from-the-ui
| | * \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into ↵Jose2018-04-303-24/+63
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | 44059-specify-variables-when-executing-a-manual-pipeline-from-the-ui
| | * | | | | | | | | | | Accept nested Variables in Ci::PipelineMatija Čupić2018-04-181-0/+2
| | | | | | | | | | | | |
| | * | | | | | | | | | | Alias value to secret_value in Ci::PipelineVariableMatija Čupić2018-04-181-0/+2
| | | | | | | | | | | | |
| * | | | | | | | | | | | Dont remove duplicates in Runner.owned_or_shared since its not necessaryDylan Griffith2018-05-031-1/+4
| | | | | | | | | | | | |
| * | | | | | | | | | | | Remove Runner#belonging_to_any_project since this is no longer neededDylan Griffith2018-05-031-2/+0
| | | | | | | | | | | | |