summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* Remove legacy Kubernetes #actual_namespace61935-remove-code-left-over-from-when-clusters-were-always-project-specificTiger2019-05-211-1/+1
| | | | | | | | | | | | | | | | | | When Kubernetes clusters were originally built they could only exist at the project level, and so there was logic included that assumed there would only ever be a single Kubernetes namespace per cluster. We now support clusters at the group and instance level, which allows multiple namespaces. This change consolidates various project-specific fallbacks to generate namespaces, and hands all responsibility to the Clusters::KubernetesNamespace model. There is now no concept of a single namespace for a Clusters::Platforms::Kubernetes; to retrieve a namespace a project must now be supplied in all cases. This simplifies upcoming work to use a separate Kubernetes namespace per project environment (instead of a namespace per project).
* Merge branch 'sh-fix-rugged-get-tree-entries-recursive' into 'master'Douglas Barbosa Alexandre2019-05-201-1/+3
|\ | | | | | | | | | | | | API: Fix recursive flag not working with Rugged get_tree_entries flag Closes #61979 See merge request gitlab-org/gitlab-ce!28494
| * API: Fix recursive flag not working with Rugged get_tree_entries flagStan Hu2019-05-201-1/+3
| | | | | | | | | | | | | | | | | | Attempting to use the API endpoint /projects/:id/repository/tree?recursive=true would only return a subset of the results since the full recursive list wasn't actually being returned. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61979
* | Revert "Merge branch '56850-add-new-unicorn-metrics' into 'master'"revert-c5a9bc17Ryan Cobb2019-05-203-71/+8
| | | | | | This reverts merge request !27474
* | Merge branch '49517-fix-notes-import-export' into 'master'Mayra Cabrera2019-05-201-2/+5
|\ \ | |/ |/| | | | | | | | | Include type to notes import / export Closes #49517 See merge request gitlab-org/gitlab-ce!28401
| * Include type to notes import / export49517-fix-notes-import-exportHeinrich Lee Yu2019-05-171-2/+5
| |
* | Merge branch 'fix-too-many-loops-cron-error' into 'master'Robert Speicher2019-05-171-0/+7
|\ \ | | | | | | | | | | | | | | | | | | Rescue too many loops cron error Closes #58241 See merge request gitlab-org/gitlab-ce!28002
| * | Remove workaround by upgrading Fugit gemFabio Pitino2019-05-071-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/58241 * Upgrade Fugit gem to 1.2.1 which recognizes cron expressions for invalid days * Reverted previously implemented workaround * Leave test case which previously exposed the bug
| * | Rescue RuntimeError when "too many loops" occurFabio Pitino2019-05-071-0/+7
| | | | | | | | | | | | | | | | | | With this workaround we temporarily prevent an exception from Fugit gem to be raised in Gitlab::Ci::CronParser
| * | Write test that exposes bug with Fugit gemFabio Pitino2019-05-071-0/+7
| | |
* | | Add PoolRepository to the usage pingZeger-Jan van de Weg2019-05-171-8/+11
| |/ |/| | | | | | | | | PoolRepository is a relatively new model of which the counts could help to further determine the priority of new features. Also gives some insight into the number of forks customers have.
* | Add Let's Encrypt clientVladimir Shushlin2019-05-163-0/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of adding Let's Encrypt certificates for pages domains Add acme-client gem Client is being initialized by private key stored in secrets.yml Let's Encrypt account is being created lazily. If it's already created, Acme::Client just gets account_kid by calling new_account method Make Let's Encrypt client an instance Wrap order and challenge classes
* | Merge branch 'bvl-add-corrilation-id-to-all-exception' into 'master'Douglas Barbosa Alexandre2019-05-141-1/+4
|\ \ | | | | | | | | | | | | | | | | | | Add correlation id to all sentry errors Closes #61699 See merge request gitlab-org/gitlab-ce!28253
| * | Add correlation id to all sentry errorsBob Van Landuyt2019-05-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Before this, we were only adding the correlation id to the "acceptable exceptions" which we handle in code. But we need to add it to the default raven context so the information would be available for uncaught exceptions.
* | | EE backport to CE of favicon_spec.rbsingle-codebase-favicon-specs-cemove-ee-favicon-spec-changes-to-eelmcandrew2019-05-131-1/+1
|/ /
* | Update usage_data_spec to match EEJames Lopez2019-05-091-2/+2
| |
* | Refactor spec to reload existing_label right after creationPatrick Derichs2019-05-081-0/+40
| | | | | | | | | | This will avoid timestamp comparison issues later within equality check with attributes
* | Merge branch '56850-add-new-unicorn-metrics' into 'master'Ash McKenzie2019-05-073-8/+71
|\ \ | |/ |/| | | | | | | | | Resolve "Add new Unicorn metrics" Closes #56850 See merge request gitlab-org/gitlab-ce!27474
| * Cleanup spec by removing not needed letRyan Cobb2019-04-301-2/+1
| |
| * Update docs and calculate process start time via proc tableRyan Cobb2019-04-242-9/+15
| | | | | | | | | | | | This updates monitor docs to reflect the new ruby and unicorn metrics as well as making it so we fetch process start time via the proc table instead of via CLOCK_BOOTTIME
| * Move process specific metrics to ruby samplerRyan Cobb2019-04-242-8/+25
| | | | | | | | | | These metrics are not unicorn specific and can be used across ruby processes
| * Adds new metrics for unicorn monitoringRyan Cobb2019-04-182-5/+46
| | | | | | | | | | | | This adds new metrics for monitoring unicorn. These metrics include process_cpu_seconds_total, process_start_time_seconds, process_max_fds, and unicorn_workers.
* | Fix issuables state_id nil when importing projects from GitHubFelipe Artur2019-05-063-0/+6
| | | | | | | | | | | | Issues and merge requests imported from GitHub are having state_id set to null. This fixes the GitHub project importer and schedule migrations to fix state_id.
* | Merge branch '30093-apply-bfg-object-map-to-database' into 'master'Douwe Maan2019-05-063-99/+92
|\ \ | | | | | | | | | | | | | | | | | | Remove cleaned up OIDs from database and cache Closes #30093 See merge request gitlab-org/gitlab-ce!26555
| * | Remove cleaned up OIDs from database and cacheNick Thomas2019-05-063-99/+92
| | |
* | | Merge branch 'jc-disconnect-git-alternates-client' into 'master'Stan Hu2019-05-063-3/+72
|\ \ \ | | | | | | | | | | | | | | | | Add client methods for DisconnectGitAlternates rpc See merge request gitlab-org/gitlab-ce!27938
| * | | Add client methods for DisconnectGitAlternates rpcjc-disconnect-git-alternates-clientJohn Cai2019-05-033-3/+72
| | | | | | | | | | | | | | | | | | | | | | | | DisconnectGitAlternates is a Gitaly RPC that will delete a repository's objects/info/alternates file. This commit adds client support for that RPC.
* | | | Merge branch 'fix-merge-request-pipeline-exist-method' into 'master'Bob Van Landuyt2019-05-061-1/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Fix duplicate merge request pipelines created by Sidekiq worker retry See merge request gitlab-org/gitlab-ce!26643
| * | | Fix merge request pipeline exist methodfix-merge-request-pipeline-exist-methodShinya Maeda2019-05-061-1/+1
| | | | | | | | | | | | | | | | Refactor
* | | | Merge branch 'jej/session-stored-globaly' into 'master'Dmitriy Zaporozhets2019-05-062-0/+49
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Session stored globally per request See merge request gitlab-org/gitlab-ce!27658
| * | | Session stored globally per requestjej/session-stored-globalyJames Edwards-Jones2019-05-022-0/+49
| | | | | | | | | | | | | | | | | | | | - This can be accessed with Session.current and is restored after. - Data can be stored under a key with NamespacedSessionStore
* | | | Run rubocop -a on CE filessh-upgrade-rubocop-0.68.0-ceStan Hu2019-05-051-5/+5
| | | |
* | | | Add gitlab-managed option to clusters formMayra Cabrera2019-05-031-0/+6
| |/ / |/| | | | | | | | | | | | | | | | | | | | When this option is enabled, GitLab will create namespaces and service accounts as usual. When disabled, GitLab wont create any project specific kubernetes resources Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
* | | Use git_garbage_collect_worker to run pack_refsJan Provaznik2019-05-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | PackRefs is not an expensive gitaly call - we want to call it more often (than as part of full `gc`) because it helps to keep number of refs files small - too many refs file may be a problem for deployments with slow storage.
* | | Adds a way to start multiple manual jobs in stageMayra Cabrera2019-05-022-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | Update deployment chat message notificationJason Goodman2019-05-021-0/+3
| | | | | | | | | | | | | | | Include link to user and commit title. Rearrange text
* | | Merge branch ↵Douwe Maan2019-05-021-4/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '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-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Add opentracing integration for graphqlJan Provaznik2019-05-022-33/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Extends existing graphql's tracer with opentracing measurements. Because it also adds Tracing::Graphql class (for opentracing), it also renames Graphql::Tracing class to Graphql::GenericTracing to minimize confusion with similar class names.
* | | | Update metrics dashboard API to load yml from repoSarah Yasonik2019-05-015-47/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the EnvironmentController#metrics_dashboard endpoint to support a "dashboard" param, which can be used to specify the filepath of a dashboard configuration from a project repository. Dashboard configurations are expected to be stored in .gitlab/dashboards/. Updates dashboard post-processing steps to exclude custom metrics, which should only display on the system dashboard.
* | | | Merge branch 'jc-client-for-fetch-objects-into-pool' into 'master'Stan Hu2019-04-303-77/+62
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Add client methods for FetchIntoObjectPool RPC See merge request gitlab-org/gitlab-ce!27767
| * | | | Add client methods for FetchIntoObjectPool RPCJohn Cai2019-04-303-77/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gitaly's FetchIntoObjectPool RPC will idempotently fetch objects into an object pool. If the pool doesn't exist, it will create an empty pool before attempting the fetch. This change adds client code as well as specs to cover this behavior.
* | | | | Merge branch 'pl-fix-k8s-ns-query-variables' into 'master'Grzegorz Bizon2019-04-301-4/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Use correct k8s namespace in Prometheus queries See merge request gitlab-org/gitlab-ce!27812
| * | | | | Use correct k8s namespace in Prometheus queriesPeter Leitzen2019-04-291-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit the wrong namespace could have been used in Prometheus queries for group-level installations.
* | | | | | Docs aren't reviewed using rouletteEvan Read2019-04-301-11/+10
| | | | | |
* | | | | | Teach Helm::Api about #uninstallThong Kuah2019-04-291-0/+22
| |/ / / / |/| | | |
* | | | | Merge branch 'use-keyword-args-for-databuilder-push' into 'master'Douglas Barbosa Alexandre2019-04-291-4/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Use keyword args for databuilder push See merge request gitlab-org/gitlab-ce!24088
| * | | | | Use all keyword args for DataBuilder::Push.build()Jonathon Reinhart2019-04-251-4/+7
| | | | | |
* | | | | | Merge branch 'bvl-initialize-design-repo-ce' into 'master'Douwe Maan2019-04-291-0/+6
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | Port changes for design management to CE See merge request gitlab-org/gitlab-ce!27555
| * | | | | Port changes for design management to CEBob Van Landuyt2019-04-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ports the changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10462/ to CE