summaryrefslogtreecommitdiff
path: root/spec/models/ci
Commit message (Collapse)AuthorAgeFilesLines
* Set a fixed date in pipeline shedule specHeinrich Lee Yu2019-06-191-1/+1
| | | | Fixes flaky master
* Merge branch '62760-unquarantine-spec' into 'master'Lin Jen-Shin2019-06-181-2/+4
|\ | | | | | | | | | | | | Fix flaky time related failure in spec/models/ci/pipeline_schedule_spec.rb Closes #62760 See merge request gitlab-org/gitlab-ce!29778
| * Fix flaky time related spec62760-unquarantine-specHeinrich Lee Yu2019-06-181-2/+4
| | | | | | | | Also removes test from quarantine
* | Make KubernetesService readonlyJames Fargher2019-06-181-29/+8
|/ | | | | | | | We are deprecating this service in favor of instance wide clusters. Therefore we removed some code that is not anymore needed for a readonly cluster and also we added some flags to allow for this deprecation. These flags are to be removed in the next release when we finally completelly remove KubernetesService.
* Merge branch 'error-pipelines-for-blocked-users' into 'master'Grzegorz Bizon2019-06-171-1/+1
|\ | | | | | | | | | | | | Preventing blocked users and their PipelineSchdules from creating new Pipelines Closes #47756 See merge request gitlab-org/gitlab-ce!27318
| * preventing blocked users and their PipelineSchdules from creating new Pipelinesdrew cimino2019-06-041-1/+1
| | | | | | | | updated several specs and factories to accomodate new permissions
* | Merge branch 'revert-86900f00' into 'master'Grzegorz Bizon2019-06-061-2/+2
|\ \ | | | | | | | | | | | | | | | | | | Revert "Disable retrying cancelled jobs" Closes #62350 See merge request gitlab-org/gitlab-ce!29201
| * | Revert "Merge branch..."revert-86900f00Kamil Trzciński2019-06-051-2/+2
| |/ | | | | This reverts merge request !27503
* | Quarantine this flaky testLin Jen-Shin2019-06-061-1/+1
| | | | | | | | | | See https://gitlab.com/gitlab-org/gitlab-ce/issues/62760
* | Prefer Time.zone.now to pair with Time.zone.nameLin Jen-Shin2019-06-051-1/+1
|/ | | | | `Time.now` is local time, yet `Time.zone.now` is application configuration time. They can be different.
* Merge branch 'introduce-auto-merge-process-worker' into 'master'Thong Kuah2019-06-041-0/+34
|\ | | | | | | | | Introduce sidekiq worker for auto merge process See merge request gitlab-org/gitlab-ce!28780
| * Introduce sidekiq worker for auto merge processintroduce-auto-merge-process-workerShinya Maeda2019-06-041-0/+34
| | | | | | | | | | As we have a central domain for auto merge process today, we should use a single worker for any auto merge process.
* | Merge branch ↵Kamil Trzciński2019-06-041-46/+99
|\ \ | |/ |/| | | | | | | | | | | | | 'set-real-next-run-at-for-preventing-duplciate-pipeline-creations' into 'master' Make pipeline schedule worker resilient Closes gitlab-com/gl-infra/production#805 and #61955 See merge request gitlab-org/gitlab-ce!28407
| * Make pipeline schedule worker resilientset-real-next-run-at-for-preventing-duplciate-pipeline-creationsShinya Maeda2019-06-031-46/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, pipeline schedule worker is unstable because it's sometimes killed by excessive memory consumption. In order to improve the performance, we add the following fixes: 1. next_run_at is always real_next_run, which means the value always takes into account of worker's cron schedule 1. Remove exlusive lock. This is already covered by real_next_run change. 1. Use RunPipelineScheduleWorker for avoiding memory killer. Memory consumption is spread to the multiple sidekiq worker.
* | Cleans up UpdateProjectStatistics concernMayra Cabrera2019-06-031-4/+4
|/ | | | | | | - Renames attributes from stat to project_statistiscs_name and attribute to statistic_attribute - Reordes methods on UpdateProjectStatistics concern - Removes unused module from Ci::Build
* Remove legacy artifact related coderemove-legacy-artifacts-related-codeShinya Maeda2019-05-311-143/+3
| | | | | | We've already migrated all the legacy artifacts to the new realm, which is ci_job_artifacts table. It's time to remove the old code base that is no longer used.
* Extract Ci::Build#report_artifacts into methodmc/feature/reports-downloadMatija Čupić2019-05-281-0/+12
| | | | | Extracts combining the job_artifacts relation with the with_reports scope for getting report artifacts into a method.
* Rename with_all_reports to with_reportsMatija Čupić2019-05-281-2/+2
|
* Add all reports scope to Ci::JobArtifactMatija Čupić2019-05-281-0/+15
|
* Stop emitting AUTO_DEVOPS_DOMAIN Ci variableThong Kuah2019-05-241-24/+0
| | | | Update documentation to reflect removal
* Ensure subject passes validationsStan Hu2019-05-211-0/+2
| | | | | Rails 5 requires that belongs_to associations have the associated record present. These tests were failing because they had nil values.
* Stop configuring group clusters on creation60379-remove-ci-preparing-state-feature-flagTiger2019-05-161-14/+6
| | | | | | | | | | | Immediate configuration is not ideal for group and instance level clusters as projects that may never be deployed would still have Kubernetes namespaces and service accounts created for them. As of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25586 we now create only the resources that are required for the project being deployed, at the time of deployment.
* Merge branch 'strip-attr-cron-in-pipeline-schedule' into 'master'Grzegorz Bizon2019-05-071-0/+9
|\ | | | | | | | | Strip whitespace for PipelineSchedule#cron See merge request gitlab-org/gitlab-ce!27990
| * Strip whitespace for PipelineSchedule#cronstrip-attr-cron-in-pipeline-scheduleFabio Pitino2019-05-021-0/+9
| |
* | Implement support for CI variables of type fileKrasimir Angelov2019-05-064-4/+7
| | | | | | | | | | | | | | | | | | Add env_var and file as supported types for CI variables. Variables of type file expose to users existing gitlab-runner behaviour - save variable value into a temp file and set the path to this file in an ENV var named after the variable key. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
* | Fix merge request pipeline exist methodfix-merge-request-pipeline-exist-methodShinya Maeda2019-05-062-3/+3
| | | | | | | | Refactor
* | Adds a way to start multiple manual jobs in stageMayra Cabrera2019-05-023-0/+36
| | | | | | | | | | | | | | | | | | | | - Adds an endpoint on PipelinesController - Adds a service that iterates over every build in a stage and plays it. - Includes 'play_manual' details on EntitySerializer - Builds a new Stage state: PlayManual. An stage can take this status if it has manual builds or an skipped, scheduled or manual status - Includes FE modifications and specs
* | Merge branch ↵Douwe Maan2019-05-021-2/+2
|\ \ | |/ |/| | | | | | | | | | | | | '53064-bypassing-pipeline-jobs-by-canceling-the-pipeline-and-manually-running-later-jobs' into 'master' Disable retrying cancelled jobs Closes #53064 See merge request gitlab-org/gitlab-ce!27503
| * Update specs that use retryable canceled jobsmfluharty2019-04-191-2/+2
| | | | | | | | | | | | | | | | | | Specs that test canceled jobs now - expect them not to be retryable or playable - expect them not to show retry buttons Specs that test retryability now - use failed status instead of canceled status
* | Fix CI_COMMIT_REF_NAME and SLUG variableShinya Maeda2019-04-293-0/+68
| | | | | | | | | | | | | | With Pipelines for Merge Requests feature, users cannout keep using $CI_COMMIT_REF_NAME and _SLUG predefined variables for dynamic environments. We fix this problem by explicitly looking at the source ref.
* | Add deployment events to chat notification servicesJason Goodman2019-04-261-0/+4
| | | | | | | | | | This enables sending a chat message to Slack or Mattermost upon a successful, failed, or canceled deployment
* | Merge branch 'add-ci-variable-protected-ref' into 'master'Grzegorz Bizon2019-04-243-3/+5
|\ \ | | | | | | | | | | | | Add CI variable CI_REF_PROTECTED See merge request gitlab-org/gitlab-ce!26716
| * | Make sure that CI_COMMIT_REF_PROTECTED is a boolJason van den Hurk2019-04-181-1/+1
| | |
| * | Change CI_REF_PROTECTED variable to CI_COMMIT_REF_PROTECTEDJason van den Hurk2019-04-103-3/+3
| | |
| * | Added the CI_REF_PROTECTED variable to the Gitlab runnerJason van den Hurk2019-04-103-3/+5
| | | | | | | | | | | | | | | | | | This variable shows if the branch the runner is executing is protected or not. References: #50909
* | | Upgrade Rails to 5.1.6.1Jasper Maes2019-04-231-3/+2
| | | | | | | | | | | | Model.new.attributes now also returns encrypted attributes.
* | | Extract ProjectStatistics updates into a concernAlessio Caiazza2019-04-192-88/+8
| |/ |/| | | | | Refactor existing tests as a shared example
* | Merge branch 'mc/feature/custom-metrics-ce' into 'master'Kamil Trzciński2019-04-162-4/+24
|\ \ | | | | | | | | | | | | Backport metrics report type See merge request gitlab-org/gitlab-ce!26798
| * | Backport changes from EEMatija Čupić2019-04-162-4/+24
| |/ | | | | | | | | This backports the changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10452
* | Don't render artifact download links on the project tags page for builds ↵drew cimino2019-04-121-7/+8
|/ | | | with expired artifacts
* [CE] Support multiple assignees for merge requestsosw-multi-assignees-merge-requestsOswaldo Ferreira2019-04-081-4/+4
| | | | | Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
* Merge branch 'fix-merge-request-relations-with-pipeline-on-mwps' into 'master'Kamil Trzciński2019-04-051-3/+22
|\ | | | | | | | | Fix MWPS doesn't work for merge request pipelines See merge request gitlab-org/gitlab-ce!26906
| * Fix merge requst relationships with pipeline in MWPSServicefix-merge-request-relations-with-pipeline-on-mwpsShinya Maeda2019-04-051-3/+22
| | | | | | | | | | | | MWPSService currently uses the old pipeline lookup method. It searches related merge requests with pipeline.ref, however, this doesn't work for attached/detached merge request pipelines.
* | Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-052-3/+3
|/ | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Merge branch 'drop-usage-of-leagcy-artifacts' into 'master'Kamil Trzciński2019-04-041-0/+18
|\ | | | | | | | | Drop legacy artifacts usage as there are no leftovers See merge request gitlab-org/gitlab-ce!24294
| * Drop legacy artifacts usagedrop-usage-of-leagcy-artifactsShinya Maeda2019-04-041-0/+18
| | | | | | | | | | | | Legacy artifacts have been correctly migrated to new place - ci_job_artifacts. Now it's time to remove the related code, but before that we should ensure it doesn't break anything by using feature flag.
* | Renamed terminal_specification to channel_specificationFrancisco Javier López2019-04-041-4/+12
|/ | | | | | We're moving from using terminology related to terminals when we refer to Websockets connections in Workhorse. It's more appropiate a concept like channel.
* Backport EE changeexpose-mr-pipeline-parameters-for-merge-widget-ceShinya Maeda2019-04-021-42/+0
| | | | This is for merge request pipelines
* Don't use frozen_string_literal for nowfrozen_string_spec_modelsThong Kuah2019-04-011-2/+0
| | | | While we debug why this is failing
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-0124-0/+48
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files