summaryrefslogtreecommitdiff
path: root/spec/models/ci
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix pipeline config source specs and test it explicitlyGrzegorz Bizon2017-11-301-41/+38
|
* Merge branch '38668-revert-copied-kubernetesservice-logic' into 'master'Grzegorz Bizon2017-11-301-3/+16
|\ | | | | | | | | Copy `KubernetesService` logic in `Clusters::Platforms::Kubernetes` to make it interchangeable. And implement a selector. See merge request gitlab-org/gitlab-ce!15515
| * Aling shared_exmaples to "same behavior between KubernetesService and ↵Shinya Maeda2017-11-281-3/+3
| | | | | | | | Platform::Kubernetes"
| * Duplicate spec for Platform::Kubernetes with kubernetes_projectShinya Maeda2017-11-281-3/+16
| |
* | Use fuzzy search with minimum length of 3 characters where appropriatedm-search-patternDouwe Maan2017-11-271-1/+1
|/
* Use arrays in Pipeline#latest_builds_with_artifactsreduce-queries-for-artifacts-buttonYorick Peterse2017-11-211-0/+4
| | | | | | | | | | | | | | | | This changes Ci::Pipeline#latest_builds_with_artifacts so it returns an Array instead of a relation. Whenever we use this data we do so in two steps: 1. Count the number of rows 2. If this number is greater than 0, iterate over the rows By returning an Array instead we only execute 1 query of which the total time/work is less than running either just a COUNT(*) or both queries (in the worst case). On GitLab.com this change should save us a few milliseconds per request to ProjectsController#show.
* Optimise getting the pipeline status of commitsci-pipeline-status-queryYorick Peterse2017-11-161-38/+84
| | | | | This adds an optimised way of getting the latest pipeline status for a list of Commit objects (or just a single one).
* Add doc. Fix spec. Add erase_build in protected_ref ruleShinya Maeda2017-11-071-2/+2
|
* Fix spec. Revert update check.Shinya Maeda2017-11-061-0/+17
|
* Harcode project visibility37473-expose-project-visibility-as-ci-variableMatija Čupić2017-11-051-1/+1
|
* Expose project visibility as CI variableMatija Čupić2017-11-041-0/+1
|
* Fix the external URLs generated for online view of HTML artifactsNick Thomas2017-10-201-4/+3
|
* Don't create build failed todo when build is retried38236-remove-build-failed-todo-if-it-has-been-auto-retriedSean McGivern2017-10-161-4/+27
| | | | | | | | | When a build is retried automatically, we close any open todos. However, we do that _before_ creating a new build failed todo. To solve this, we check if the build is retried before creating the todo. We also ensure that the build _instance_ has the correct attribute set, without needing to reload it from the database.
* Merge branch 'master' into '37970-ci-sections-tracking'Kamil Trzciński2017-10-072-2/+58
|\ | | | | | | # Conflicts: # db/schema.rb
| * Merge branch 'backstage/gb/move-some-pipelines-code-from-ee-to-ee' into 'master'Grzegorz Bizon2017-10-061-1/+9
| |\ | | | | | | | | | | | | | | | | | | Move to CE some EE pipelines-related code that belongs to CE Closes gitlab-ee#3616 See merge request gitlab-org/gitlab-ce!14699
| | * Add specs for methods that count pipeline seeds sizeGrzegorz Bizon2017-10-051-1/+9
| | |
| * | Update test to use the new API34102-online-view-of-artifacts-feZeger-Jan van de Weg2017-10-051-3/+10
| | |
| * | Incorporate feedbackZeger-Jan van de Weg2017-10-041-1/+1
| | |
| * | Redirect to pages daemonZeger-Jan van de Weg2017-10-031-1/+42
| |/
* | Extract `Ci::Build#parse_trace_sections!` into a service37970-ci-sections-trackingAlessio Caiazza2017-10-061-17/+6
| |
* | Add CI build trace sections extractorAlessio Caiazza2017-10-053-0/+46
|/
* Support custom attributes on usersMarkus Koller2017-09-281-1/+1
|
* Fix locked shared runners problemTomasz Maczukin2017-09-251-51/+18
|
* Do not pass project path from YAML processorGrzegorz Bizon2017-09-181-0/+1
| | | | Use project full path that can be received from a pipeline object
* Memoize the latest builds of a pipelineprojects-controller-showYorick Peterse2017-09-141-0/+20
| | | | | | | | | This ensures that if a pipeline is present for the last commit on a project's homepage we only run 1 query to get the builds, instead of running 2 queries. See https://gitlab.com/gitlab-org/gitlab-ce/issues/36878#note_40073339 for more information.
* Fix job coverage specsbackstage/gb/optimize-some-specs-with-rspec-setGrzegorz Bizon2017-09-131-1/+1
|
* Fix build specs after using `set` instead of `let`Grzegorz Bizon2017-09-131-13/+22
|
* Optimize CI/CD build model specsGrzegorz Bizon2017-09-131-8/+5
|
* Add tests to cover all introduced changesKamil Trzcinski2017-09-062-21/+76
|