summaryrefslogtreecommitdiff
path: root/spec/models/ci
Commit message (Collapse)AuthorAgeFilesLines
* Include CI Variable Key in its uniqueness validation error message43275-improve-variables-validation-messageMatija Čupić2018-02-232-2/+2
|
* Change cache index delimiter to character not recognizable as variable partTomasz Maczukin2018-02-211-1/+1
|
* Merge branch '40994-fix-ee-ce-compatible-test' into 'master'Kamil Trzciński2018-02-121-1/+1
|\ | | | | | | | | | | | | Make GITLAB_FEATURES in build_spec compatible with EE Closes #40994 See merge request gitlab-org/gitlab-ce!17023
| * Make GITLAB_FEATURES in build_spec compatible with EE40994-fix-ee-ce-compatible-testDylan Griffith2018-02-091-1/+1
| | | | | | | | | | Right now this fails in EE since the EE codebase defaults to having a starter license which means there are features in this value. This seems to be incompatible with the statement that tests should behave the same in CE as EE but I think that since there is a before on all EE specs creating a starter license it unfortunately does not behave that way. This is needed for #40994 and fixes the failing specs in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4393
* | Merge branch 'mc/bug/38984-wildcard-protected-tags' into 'security-10-4'Kamil Trzciński2018-02-091-4/+4
|/ | | | Fix using wildcards in protected tags to expose protected variables
* Merge branch '40994-expose-features-as-ci-cd-variable' into 'master'Kamil Trzciński2018-02-081-0/+1
|\ | | | | | | | | | | | | Resolve "Expose GitLab license/plan as a CI/CD variable" Closes #40994 See merge request gitlab-org/gitlab-ce!16936
| * Expose GITLAB_FEATURES as CI/CD variable (fixes #40994)40994-expose-features-as-ci-cd-variableDylan Griffith2018-02-071-0/+1
| |
* | Merge branch ↵Kamil Trzciński2018-02-071-12/+96
|\ \ | |/ |/| | | | | | | | | | | | | '38265-stuckcijobsworker-wrongly-detects-cancels-stuck-builds-when-per-job-timeout-is-more-than-an-hour' into 'master' Resolve "StuckCiJobsWorker wrongly detects, cancels 'stuck' builds when per-job timeout is more than an hour" Closes #38265, #42196, and #42750 See merge request gitlab-org/gitlab-ce!16756
| * Improve runner attribute cachineMatija Čupić2018-02-051-10/+15
| |
| * Merge branch 'master' into ↵Matija Čupić2018-02-041-1/+1
| |\ | | | | | | | | | 38265-stuckcijobsworker-wrongly-detects-cancels-stuck-builds-when-per-job-timeout-is-more-than-an-hour
| * | Expect instead of allow Redis get stub for online? specMatija Čupić2018-02-041-1/+1
| | |
| * | Refactor runner attribute caching implementationMatija Čupić2018-02-041-16/+16
| | |
| * | Use faster model updates in #update_runner_info specMatija Čupić2018-01-291-2/+2
| | |
| * | Make Ci::Runner#online? slightly more performantMatija Čupić2018-01-291-0/+2
| | | | | | | | | | | | | | | This is a small refactor to avoid querying Redis when we know there's nothing in it.
| * | Generelized cached attribute usage in runnerMatija Čupić2018-01-291-6/+11
| | |
| * | Move info update implementation to Ci::Runner modelMatija Čupić2018-01-291-5/+47
| | |
| * | Check cache in Ci::Runner#online?Matija Čupić2018-01-291-12/+42
| | |
* | | Refactor :trace to :trace_live in specShinya Maeda2018-02-061-4/+4
| | |
* | | Finish all testsShinya Maeda2018-02-061-2/+2
| | |
* | | Add essential testsShinya Maeda2018-02-061-0/+3
| |/ |/|
* | Replace : with _ in cache key versioningMatija Čupić2018-01-261-1/+1
|/
* Add specs for CI builds and pipeline relationshipssh-optimize-ci-build-projectStan Hu2018-01-142-0/+14
|
* Remove soft removals related codeYorick Peterse2018-01-081-1/+0
| | | | | | | | | | | | | | This removes all usage of soft removals except for the "pending delete" system implemented for projects. This in turn simplifies all the query plans of the models that used soft removals. Since we don't really use soft removals for anything useful there's no point in keeping it around. This _does_ mean that hard removals of issues (which only admins can do if I'm not mistaken) can influence the "iid" values, but that code is broken to begin with. More on this (and how to fix it) can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/31114. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
* Merge branch 'master' into 41249-clearing-the-cacheMatija Čupić2018-01-042-2/+2
|\
| * Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-222-2/+2
| |
* | Fix faulty Ci::Build#cache specMatija Čupić2018-01-041-1/+1
| |
* | Rename Project#cache_index to jobs_cache_indexMatija Čupić2018-01-041-4/+4
| |
* | Use Project.cache_index in Build#cacheMatija Čupić2017-12-221-0/+36
|/
* Fix job count in pipeline success mailChristiaan Van den Poel2017-12-181-0/+12
|
* Replace factory_girl_rails with factory_bot_railsrc/use-factory_bot_railsRémy Coutable2017-12-142-16/+16
| | | | | | | | | | | I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
* Dependencies Validator fails when depended job is `manual`41110-dependencies-validator-fails-when-depended-job-is-manualShinya Maeda2017-12-141-4/+3
|
* Backport a spec fix done in EE (5dbecb8e) to CERémy Coutable2017-12-111-18/+8
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Test for both ci_disable_validates_dependencies true/falseShinya Maeda2017-12-081-44/+64
|
* Change feature flag to ci_disable_validates_dependencies to enable it as defaultShinya Maeda2017-12-071-1/+1
|
* Fix pipelineShinya Maeda2017-12-061-1/+3
|
* Fix testsShinya Maeda2017-12-061-17/+27
|
* Fix /build_spec.rbShinya Maeda2017-12-061-1/+6
|
* Fix lintShinya Maeda2017-12-061-2/+6
|
* Add case when artifacts have not existed on dependenciesShinya Maeda2017-12-061-1/+20
|
* Use Class.new(StandardError) instead of custom extended error class. Bring ↵Shinya Maeda2017-12-061-1/+1
| | | | back specified_dependencies?.
* Fail jobs if its dependency is missingShinya Maeda2017-12-061-0/+30
|
* Perform SQL matching of Build&Runner tags to greatly speed-up job pickingKamil Trzcinski2017-12-051-0/+73
|
* Fix RubocopKamil Trzcinski2017-12-031-1/+1
|
* Store expire_at in ci_job_artifactsKamil Trzcinski2017-12-032-1/+57
|
* Remove hook set by carrierwave tooZeger-Jan van de Weg2017-12-031-6/+6
|
* Add coverage on legacy artifacts for Ci::BuildZeger-Jan van de Weg2017-12-031-70/+171
|
* Fix specs failures, and use factory with `:ci_job_artifact, :archive`Kamil Trzcinski2017-12-031-1/+1
|
* Rename Artifact to JobArtifact, split metadata outZeger-Jan van de Weg2017-12-033-60/+31
| | | | | | | | | Two things at ones, as there was no clean way to seperate the commit and give me feedback from the tests. But the model Artifact is now JobArtifact, and the table does not have a type anymore, but the metadata is now its own model: Ci::JobArtifactMetadata.
* Create Ci::ArtifactsZeger-Jan van de Weg2017-12-032-14/+63
| | | | | | | | | | | | | | | | To allow jobs/builds to have multiple artifacts, and to start seperating concerns from Ci::Build a new model is created: Ci::Artifact. Changes include the updating of the ArtifactUploader to adapt to a slightly different interface. The uploader expects to be initialized with a `Ci::Build`. Futher a migration with the minimal fields, the needed foreign keys and an index. Last, the way this works is by prepending a module to Ci::Build so we can basically override behaviour but if needed use `super` to get the original behaviour.
* WIPZeger-Jan van de Weg2017-12-031-0/+5
|