summaryrefslogtreecommitdiff
path: root/spec/tasks
Commit message (Collapse)AuthorAgeFilesLines
* rake task to reset all rss tokensAlexis Reigel2017-05-241-0/+6
|
* Enable the RSpec/ExpectOutput coprubocop-expect-outputRémy Coutable2017-05-181-11/+11
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't reuse gRPC channelsJacob Vosmaer2017-05-151-1/+0
| | | | | | It seems that bad things happen when two gRPC stubs share one gRPC channel so let's stop doing that. The downside of this is that we create more gRPC connections; one per stub.
* Relax rake backup regex to handle CE and EE RCssh-relax-backup-rake-specStan Hu2017-05-121-1/+1
| | | | See http://rubular.com/r/uTDlT85zW1
* Fix failing backup filename spec for RCssh-fix-failing-rc1-backup-specStan Hu2017-05-111-1/+1
| | | | See http://rubular.com/r/9oI7K8b773 for more details.
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Compile gitlab-shell go executablesJacob Vosmaer2017-05-041-0/+4
|
* Merge branch 'rs-described_class-cop-2' into 'master' Douwe Maan2017-05-021-2/+2
|\ | | | | | | | | Enable `RSpec/DescribedClass` cop and correct violations See merge request !10930
| * Auto-correct `RSpec/DescribedClass` violationsrs-described_class-cop-2Robert Speicher2017-05-011-2/+2
| |
* | Use Gitaly for getting Branch/Tag countsKim "BKC" Carlbäcker2017-04-281-2/+4
|/ | | | | | - Backup-rake-spec fixed. Storage config broken - Use rugged to compare branch/tag-count in specs - upgrade gitaly
* Fix failing specgl-version-backup-fileAchilleas Pipinellis2017-04-261-1/+1
| | | | http://rubular.com/r/op7TI9UX6K
* Expand components version specification format to allow branchesbranch-versionsAlejandro Rodríguez2017-04-133-52/+45
| | | | | | | | | | | | | | Currently we specify versions for Gitlab-Shell, Workhorse and Gitaly using version strings, to which we prepend 'v' and assume are tags. These changes allow branches or tags with other name formats to be specified by prepending '=' to the version string (á la govendor). We also simplify the process to reset to the given version (now a branch or tag): Right now there's a check to supposedly try to avoid fetching from the remote the version if it already exist locally. But the previous logic already clones if the directory doesn't exist or fetches if it does, so this check is pointless. We can safely assume the version exists once we get to the reset stage.
* Add rake task that prints TOML storage configurationfeature/add-rake-task-prints-storage-config-in-tomlAhmad Sherif2017-04-041-0/+32
| | | | Closes gitaly#173
* Merge branch 'rs-empty-project-misc' into 'master' Rémy Coutable2017-03-301-3/+3
|\ | | | | | | | | Use `:empty_project` in worker, view, task, serializer, policy, migration, and mailer specs See merge request !10272
| * Use Project `:repository` trait where necessary in task specsRobert Speicher2017-03-271-3/+3
| |
* | Allow backup tests to run locallyauthor Jacob Vosmaer jacob@gitlab.com 1490710538 +02002017-03-291-3/+7
| |
* | Expand relative paths in storagesJacob Vosmaer2017-03-291-2/+2
|/
* Remove unnecessary before blockJacob Vosmaer2017-03-212-6/+0
|
* Rake task that can install gitaly at a tag versionJacob Vosmaer2017-03-211-0/+81
|
* Add a rake task to reset all email and private tokensJames Lopez2017-03-211-0/+21
|
* Merge branch '28447-hybrid-repository-storages' into 'master' Sean McGivern2017-03-071-2/+2
|\ | | | | | | | | Update storage settings to allow extra values per shard See merge request !9597
| * Update storage settings to allow extra values per shard28447-hybrid-repository-storagesAlejandro Rodríguez2017-03-031-2/+2
| | | | | | | | | | | | | | This will be necessary when adding gitaly settings. This version doesn't make any functional changes, but allows us to include this breaking change in 9.0 and add the needed extra settings in the future with backwards compatibility
* | Merge branch 'add-git-version-to-system-info' into 'master' Rémy Coutable2017-03-071-0/+37
|\ \ | | | | | | | | | | | | | | | | | | Add git version to gitlab:env:info Closes #25376 See merge request !9128
| * | Add git version to gitlab:env:infoSemyon Pupkov2017-02-281-0/+37
| |/ | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/25376
* | Remove remnants of git annexPawel Chojnacki2017-03-031-20/+1
|/
* CI runs lint on shell scripts in lib/supportjej-lint-scripts-and-configJames Edwards-Jones2017-02-071-0/+27
|
* Merge branch 'master' into jej-pages-picked-from-eeJames Edwards-Jones2017-02-031-1/+1
|\
| * Active tense test coveragejej-backport-active-tense-specsValery Sizov2017-02-011-1/+1
| | | | | | | | Ports changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/642 back into CE
* | Add GitLab PagesKamil Trzcinski2017-01-311-5/+9
|/ | | | | | | | | | | | | | | | - The pages are created when build artifacts for `pages` job are uploaded - Pages serve the content under: http://group.pages.domain.com/project - Pages can be used to serve the group page, special project named as host: group.pages.domain.com - User can provide own 403 and 404 error pages by creating 403.html and 404.html in group page project - Pages can be explicitly removed from the project by clicking Remove Pages in Project Settings - The size of pages is limited by Application Setting: max pages size, which limits the maximum size of unpacked archive (default: 100MB) - The public/ is extracted from artifacts and content is served as static pages - Pages asynchronous worker use `dd` to limit the unpacked tar size - Pages needs to be explicitly enabled and domain needs to be specified in gitlab.yml - Pages are part of backups - Pages notify the deployment status using Commit Status API - Pages use a new sidekiq queue: pages - Pages use a separate nginx config which needs to be explicitly added
* Restore backup correctly when "BACKUP" environment variable is passedrestore-backup-when-env-variable-is-passedAdam Niedzielski2017-01-091-1/+1
|
* Add LDAP task to rename a providerDrew Blessing2016-12-161-0/+13
| | | | | | | | Sometimes admins will change the LDAP configuration, not realizing that problems will occur if the user's LDAP identities are not also updated to use the new provider name. This task will give admins a single command to run to update identities and will prevent having to run multiple Rails console queries.
* Don't allow to specify a repo or version when installing Workhorseremove-gitlab-workhorse-version-option-from-install-taskRémy Coutable2016-12-011-26/+0
| | | | | | The task will use the canonical repo and the required version. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '23718/backup-rake-task-human-readable' into 'master' Douwe Maan2016-12-011-0/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 23718/backup rake task human readable ## What does this MR do? Add the human readable format to the backup tar file. From `1477317140_gitlab_backup.tar` to `1477317140_2016_10_24_gitlab_backup.tar`. ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? #23718 issue ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] API support added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? 23718 See merge request !7188
| * Add Human Readable Timestamp to backup tar fileDavid Gerő2016-11-301-0/+31
| |
* | Move task helpers to a module22719-provide-a-new-gitlab-workhorse-install-rake-task-similar-to-gitlab-shell-installRémy Coutable2016-11-305-56/+55
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Add #run_command! to task helpers to raise a TaskFailedError if status is not 0Rémy Coutable2016-11-302-15/+15
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | New `gitlab:workhorse:install` rake taskRémy Coutable2016-11-302-0/+204
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Introduce better credential and error checking to `rake gitlab:ldap:check`Drew Blessing2016-11-081-0/+51
| | | | | | | It was previously possible for invalid credential errors to go unnoticed in this task. Users would believe everything was configured correctly and then sign in would fail with 'invalid credentials'. This adds a specific bind check, plus catches errors connecting to the server. Also, specs :)
* Add Rake task to create/repair GitLab Shell hooks symlinksDrew Blessing2016-11-011-0/+26
|
* Backups do not fail anymore when using tar on annex and custom_hookstiagonbotelho2016-10-271-1/+73
| | | | only.
* fixes build with cache:clear issuetiagonbotelho2016-10-241-0/+1
|
* Add a new gitlab:users:clear_all_authentication_tokens taskRémy Coutable2016-10-111-0/+38
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use `File::exist?` instead of `File::exists?`bogdanvlviv2016-08-111-1/+1
| | | | Since version ruby-2.2.0, method `File::exists?` is deprecated.
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-092-11/+11
|
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-1/+0
|
* Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-45/+85
|
* Switch the gitlab:db:configure task to use tables.any? instead of looking ↵DJ Mountney2016-05-251-3/+3
| | | | specifically for the schema_migrations table
* Add tests for the gitlab:db:configure rake taskDJ Mountney2016-05-251-0/+62
|
* Fix backups if registry is disabledKamil Trzcinski2016-05-231-0/+18
|
* Added backup of container registryKamil Trzcinski2016-05-161-5/+9
|