Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/tasks
AgeCommit message (Collapse)Author
2017-01-25Merge branch 'mrchrisw/rake-redis' into 'master' Stan Hu
Add redis version to info rake task See merge request !8283
2017-01-25Add redis version to info rake taskChris Wilson
2017-01-16Remove rerun since it's not used anymoreRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-12Merge branch 'use-configured-git' into 'master' Douwe Maan
Use configured git rather thans system git See merge request !8460
2017-01-10Do not remove "autodeploy" directory when fetching CI templatesAdam Niedzielski
2017-01-05Use configured git rather than system gitRobert Schilling
2016-12-21Add more storage statisticsMarkus Koller
This adds counters for build artifacts and LFS objects, and moves the preexisting repository_size and commit_count from the projects table into a new project_statistics table. The counters are displayed in the administration area for projects and groups, and also available through the API for admins (on */all) and normal users (on */owned) The statistics are updated through ProjectCacheWorker, which can now do more granular updates with the new :statistics argument.
2016-12-21Remove rake task update_commit_countMarkus Koller
2016-12-16Add LDAP task to rename a providerDrew Blessing
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.
2016-12-13Add AddLowerPathIndexToRoutes to setup_postgresql.rakeDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-01Don't allow to specify a repo or version when installing WorkhorseRémy Coutable
The task will use the canonical repo and the required version. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-30Move task helpers to a moduleRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-30Add #run_command! to task helpers to raise a TaskFailedError if status is not 0Rémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-30New `gitlab:workhorse:install` rake taskRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-19Merge branch 'zj-rake-task-remove-faulty-deployment-refs' into 'master' Kamil Trzciński
Fix faulty deployment refs In the 8.13 RC cycle, so before the release, there was a time in which references in git where stored by id instead of iid. This could be fixed by time, if the iid catches up with the id, it overwrites it. But in the mean time we have wrong refs in the folder. This commit fixes that. For all projects we have deployments we'll find the ones where the ref has a higher number than the iid is now and calls `#create_ref` on the corresponding deployment. Fixes gitlab-com/infrastructure#683 cc @ayufan One worry: I tested this locally, couldn't find a way to do automate this. See merge request !7352
2016-11-18Fix faulty deployment refsZ.J. van de Weg
In the 8.13 RC cycle, so before the release, there was a time in which references in git where stored by id instead of iid. This could be fixed by time, if the iid catches up with the id, it overwrites it. But in the mean time we have wrong refs in the folder. This commit fixes that. For all projects we have deployments we'll find the ones where the ref has a higher number than the iid is now and calls `#create_ref` on the corresponding deployment.
2016-11-17Use the public CE repo URL instead of the one used in the runnerRémy Coutable
This will prevent the task to advertise using https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.com/gitlab-org/gitlab-ce.git when https://gitlab.com/gitlab-org/gitlab-ce.git is enough Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-10Improve EeCompatCheck, cache EE repo and keep artifacts for the ↵Rémy Coutable
ee_compat_check task Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-09Introduce better credential and error checking to `rake gitlab:ldap:check`Drew Blessing
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 :)
2016-11-03Remove unused `gitlab:generate_docs` Rake taskRobert Speicher
This was the only thing using the `sdoc` gem, which was blocking another gem from updating.
2016-11-01Add Rake task to create/repair GitLab Shell hooks symlinksDrew Blessing
2016-10-29Ignore teaspoon tasks in production environmentwinniehell
2016-10-28Replace static issue fixtures by script (!6059)winniehell
2016-10-26add Rake tasks eslint and lint:javascriptwinniehell
2016-10-25Merge branch '23372-fix-ce-to-ee-merge-check-task' into 'master' Robert Speicher
Change the approach to check if patches apply cleanly Closes #23372 See merge request !6949
2016-10-22Stop clearing the database cache on rake cache:clearNick Thomas
2016-10-21Change the approach to check if patches apply cleanlyRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-20Fix: Backup restore doesn't clear cacheValery Sizov
2016-10-14Merge remote-tracking branch 'upstream/master' into pipeline-emailsLin Jen-Shin
* upstream/master: (237 commits) Grapify boards API Add test, fix merge error Use local assigns to get the dropdown title Updated issuable dropdown titles Added safety check for formatted values Minor style improvement Fixed conflict and corrected teaspoon test Rename method in test Moved ci_status environments logic to new action ci_envrionments_status and set up frontend polling Refactor ci_status on MergeRequestController Fix indenting error in HAML Show what time ago a MR was deployed Fixed missing links Fixed missing links Refactor merge requests revisions Add link to update docs for source installations Grapify todos API Link to review apps example from docs fix grafana_configuration.md move link Do not run before_script, artifacts, cache in trigger_docs job ...
2016-10-13Improve the branch existence and merge checksRémy Coutable
Also add a safeguard for non-CI env. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-13Draft a quick CE->EE merge check rake taskRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-11Merge branch 'docs/refactor-reply-by-email' into 'master' Achilleas Pipinellis
Move reply by email docs to a new location ## What does this MR do? Move reply by email docs to a new location. Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/3349 ## Moving docs to a new location? See the guidelines: http://docs.gitlab.com/ce/development/doc_styleguide.html#changing-document-location - [ ] Make sure the old link is not removed and has its contents replaced with a link to the new location. - [ ] Make sure internal links pointing to the document in question are not broken. - [ ] Search and replace any links referring to old docs in GitLab Rails app, specifically under the `app/views/` directory. - [ ] If working on CE, submit an MR to EE with the changes as well. See merge request !6517
2016-10-11Add a new gitlab:users:clear_all_authentication_tokens taskRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-08Merge remote-tracking branch 'upstream/master' into pipeline-emailsLin Jen-Shin
* upstream/master: (292 commits) Deletes extra empty line breaking the build Optimize the `award_user_list` helper spec Fix typo and add he MWBS accronym for "Merge When Build Succeeds" Added missing content and improved layout ExpireBuildArtifactsWorker query builds table without ordering enqueuing one job per build to cleanup Improve the contribution and MR review guide Updates test in order to look for link Make projects API docs match parameter style Fix Event#reset_project_activity updates Update user whitelist reject message Call ensure_secret_token! in secret token test's before block since it would be called in an initializer. Add a CHANGELOG for CacheMarkdownField Enable CacheMarkdownField for the remaining models Make search results use the markdown cache columns, treating them consistently Use CacheMarkdownField for notes Add markdown cache columns to the database, but don't use them yet Update issue board spec Link to Registry docs from project settings Truncate long labels with ellipsis in labels page Improve issue load time performance by avoiding ORDER BY in find_by call ...
2016-10-07Merge branch 'memoize_shell_secret_token' into 'master' Rémy Coutable
Memoize Github::Shell's secret token ## What does this MR do? `API::Helpers#secret_token` was reading the secret file on every invocation. This MR reads the file in the `gitlab_shell_secret_token.rb` initializer and saves it as a class variable at `Gitlab::Shell.secret_token` ## Are there points in the code the reviewer needs to double check? - I'm not sure if the use of `cattr_accessor` is the best approach, or if should be moved into the `class << self` block? - Should `API::Helpers#secret_token` be removed in favor of using `Gitlab::Shell.secret_token`? ## Why was this MR needed? Performance optimization. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/22510 See merge request !6599
2016-10-07Add markdown cache columns to the database, but don't use them yetNick Thomas
This commit adds a number of _html columns and, with the exception of Note, starts updating them whenever the content of their partner fields changes. Note has a collision with the note_html attr_accessor; that will be fixed later A background worker for clearing these cache columns is also introduced - use `rake cache:clear` to set it off. You can clear the database or Redis caches separately by running `rake cache:clear:db` or `rake cache:clear:redis`, respectively.
2016-10-06Load Github::Shell's secret token from file on initialization instead of ↵Justin DiPierro
every request.
2016-10-03Merge remote-tracking branch 'upstream/master' into pipeline-emailsLin Jen-Shin
* upstream/master: (372 commits) Enable Lint/StringConversionInInterpolation cop and autocorrect offenses resolve duplicated changelog entry credit myself :smile: change determine conditions override subject method in devise mailer follow the styleguide: Don't use parentheses around a literal wrap subject with method subject move spec back into shared example `an email sent from GitLab` stub config settings in spec remove empty line at block body end remove extra entry create new test in `spec/mailers/notify_spec.rb` move changelog to 8.13 add configurable email subject suffix Fixes sidebar navigation. Convert "SSH Keys" Spinach features to RSpec Enable import/export back for non-admins Update gitlab-shell to 3.6.3 Updated artwork of empty group state. Better empty state for Groups view. ...
2016-09-29Remove Flog as we use a Rubocop that does its job.Connor Shea
2016-09-25Move reply by email docs to a new locationAchilleas Pipinellis
[ci skip]
2016-09-14Merge remote-tracking branch 'upstream/master' into pipeline-emailsLin Jen-Shin
* upstream/master: (64 commits) Update the 8.11 to 8.12 update documentation to use gitlab-shell 3.5.0 Update GITLAB_SHELL_VERSION Move pushes_since_gc to Redis Fix Gitlab::Popen.popen thread-safety issue Allow trailing newline in secret base64 data Improve .haml-lint.yml, simplify the haml_lint task and remove CHANGELOG entry Fix a typo in documentation Restore SSH Key title auto-population behavior Add test with inactive error use case for 'POST /ci/api/v1/builds/register.json' Fix rubocop offences Update API documentation Update CHANGELOG Change response for /ci/api/v1/builds/register.json from 404 to 204 Document the fact that merge requests from private forks can be checked out locally Change method name to #reopenable? Improve grammar Fix not working test with execute Add CHANGELOG Improve grammar Add #can_reopen? and tests ...
2016-09-13Improve .haml-lint.yml, simplify the haml_lint task and remove CHANGELOG entryRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-09-13Add haml_lint rake taskRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-08-31We don't need themLin Jen-Shin
2016-08-11Use `File::exist?` instead of `File::exists?`bogdanvlviv
Since version ruby-2.2.0, method `File::exists?` is deprecated.
2016-08-10Rename `run` task helper method to prevent conflict with StateMachineRobert Speicher
This prevents the following message from appearing whenever running a Rake task: Instance method "run" is already defined in Object, use generic helper instead or set StateMachines::Machine.ignore_method_conflicts = true.
2016-08-04Fix Rename `add_users_into_project` and `projects_ids`Herminio Torres
We never add things `into` projects, we just add them `to` projects. So how about we rename this to `add_users_to_project`. Rename `projects_ids` to `project_ids` by following the convention of rails.
2016-08-03Update the gitlab-shell version in the tmp/tests directory to the right versionStan Hu
Previously the gitlab-shell version would never be updated if the directory existed via the `gitlab:shell:install` Rake task. This could lead to incompatibility issues or random errors.
2016-08-02Always compare with FETCH_HEAD in downtime_checkYorick Peterse
This ensures this CI step works properly even when doing a shallow clone.
2016-07-27Merge branch 'simple-cov' into 'master' Robert Speicher
Generate coverage report from whole test suite Extends our CI plan to merge all coverage results and generate HTML report. See merge request !5018