summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix-rake-check-hooks' into 'master'Jacob Vosmaer2015-07-301-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check that hooks directory exists before attempting to call realpath This MR checks that the hooks directories actually exist before attempting to resolve their `realpath`. Users who attempted to restore from source to an omnibus installation would get ugly errors when running `gitlab-rake gitlab:check`: ``` Errno::ENOENT: No such file or directory @ realpath_rec - /var/opt/gitlab/git-data/repositories/Wanda/www.git/hooks /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:488:in `realpath' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:488:in `block in check_repos_hooks_directory_is_link' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/relation/batches.rb:52:in `block (2 levels) in find_each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/relation/batches.rb:52:in `each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/relation/batches.rb:52:in `block in find_each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/relation/batches.rb:126:in `find_in_batches' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/relation/batches.rb:51:in `find_each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/querying.rb:9:in `find_each' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:482:in `check_repos_hooks_directory_is_link' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:343:in `block (3 levels) in <top (required)>' Tasks: TOP => gitlab:check => gitlab:gitlab_shell:check ``` Closes #2121 #2082 See merge request !1068
| * Check that hooks directory exists before attempting to call realpathStan Hu2015-07-301-4/+4
| | | | | | | | Closes #2121
* | Check that project was actually created rather than just validated in ↵Stan Hu2015-07-291-2/+2
|/ | | | | | | | | import:repos task Add gitlab-shell to error message to give user a clue that something may be wrong there. Ran into this in #2082. User was told that repositories were created when they were not due to hooks symlink being wrong.
* Add rake task 'gitlab:update_commit_count'Daniel Gerhardt2015-07-241-0/+20
| | | | | | | | | | | Starting with migration `20150717130904` commit count is stored in the database. For existing projects it defaults to `0` and is updated to the correct value when commits are pushed. The newly introduced rake task updates the commit count for all projects which have not been updated yet. Refs !986, !989, #2040.
* Remove docs and rake task for gmail actions to prevent problems with ↵changes_for_gmail_inbox_actionsMarin Jankovski2015-07-221-73/+0
| | | | registration.
* use teaspoon instead of jasmine for testing javascriptFrancesco Coda Zabetta2015-07-081-1/+1
|
* Use native Postgres database cleaning during backup restoreJacob Vosmaer2015-07-072-20/+0
| | | | | | We were using hacks to drop tables etc during a Postgres backup restore. With this change, we let pg_dump insert the DROP TABLE statements it needs at the start of the SQL dump.
* Use teaspoon instead of jasmine:ciDmitriy Zaporozhets2015-07-031-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove jasmine:ci task, execute teaspoon directly on CIrs-update-gitlab-ciRobert Speicher2015-06-281-12/+0
|
* Replace GITLAB with GitLab in rake task descriptionsDmitriy Zaporozhets2015-06-2319-37/+37
|
* Refactor rake tasks for testsDmitriy Zaporozhets2015-06-232-28/+24
|
* An `in_namespace` scope is already presentzenati2015-06-092-3/+3
|
* Merge branch 'trigger_hooks_create_on_backup_restore' into 'master'Dmitriy Zaporozhets2015-06-041-0/+3
|\ | | | | | | | | | | | | | | | | | | Trigger hooks create on backup restore Number of users migrating from installation from source to omnibus get this issue. This can be fixed with a bash one liner but we already have a script that creates hooks in gitlab-shell. Added to gitlab:shell:install task call to `bin/create-hooks`. This script is idempotent which means it will only rewrite hooks if something changed. Fixes https://dev.gitlab.org/gitlab/gitlabhq/issues/2208, https://github.com/gitlabhq/gitlabhq/issues/9101 and for the most part https://github.com/gitlabhq/gitlabhq/issues/8161 See merge request !762
| * Trigger hooks-create on gitlab backup restore.Marin Jankovski2015-06-031-0/+3
| |
* | Add autocrlf back to installation docs, add a check for it.Marin Jankovski2015-06-032-2/+33
| |
* | Remove gitlab:env:check task.remove_unecessary_rake_taskMarin Jankovski2015-06-031-54/+1
|/
* Update jasmine:ci task to use teaspoonRobert Speicher2015-05-281-1/+1
|
* Ensure that the first added admin performs repository importsFotis Gimian2015-05-151-1/+1
|
* Merge branch 'brakeman-level'Dmitriy Zaporozhets2015-05-121-0/+2
|\ | | | | | | | | Conflicts: lib/tasks/brakeman.rake
| * We would like to pass 'brakeman -w2'Jacob Vosmaer2015-05-111-0/+2
| |
* | Follow shell command guidelines in Brakeman taskJacob Vosmaer2015-05-111-1/+1
|/ | | | | | There is no real issue here because the shell command is completely static, but it is still nicer to just follow the guidelines in doc/development/shell_commands.md .
* Merge branch 'rs-task_list' into 'master'Dmitriy Zaporozhets2015-05-081-0/+12
|\ | | | | | | | | | | | | | | | | | | Use task_list gem for task lists Task Lists can now be used in comments, and they'll render in previews. :clap: Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2271 See merge request !599
| * Remove 'jasmine' gemRobert Speicher2015-05-061-0/+12
| | | | | | | | | | | | jasmine-rails still requires it as a dependency, but for some reason running `rake jasmine:ci` produced test failures but `rake spec:javascript` didn't.
* | Revert "Allow to configure smtp and sendmail in gitlab.yml"Dmitriy Zaporozhets2015-05-061-1/+1
|/
* Allow to configure smtp and sendmail in gitlab.ymlJakub Jirutka2015-05-061-1/+1
|
* Add a rake task to automatically restart foreman when changes occurjubianchi2015-04-271-0/+5
|
* fix redis 3.0.0tonic2015-04-251-1/+2
|
* Add new rake taskVinnie Okada2015-04-151-0/+17
| | | | Add a task that checks repository integrity with `git fsck`.
* ability to skip some items in backupbackup_skip_optionValery Sizov2015-04-021-9/+24
|
* Include brakeman in rake testDmitriy Zaporozhets2015-03-291-0/+1
|
* Fix newline spacing after authorized_keys rebuildAndrew Tomaka2015-03-201-0/+1
|
* Merge branch 'bugfix/block_ldap_users_cronjob' into 'master'Dmitriy Zaporozhets2015-03-191-4/+5
|\ | | | | | | | | | | | | | | | | | | Fixed rake task gitlab:cleanup:block_removed_ldap_users Maybe not the most elegant solution, but it works for us. This closes issue gitlab-org/gitlab-ce#955. See merge request !338
| * fixed rake task to block removed ldap usersDaniel Steinborn2015-02-161-4/+5
| |
* | Dont exit from brakeman rake taskDmitriy Zaporozhets2015-03-191-1/+1
| |
* | Let the server fix unconfigured gitZeger-Jan van de Weg2015-03-162-10/+31
| |
* | Add active users to gitlab:checkDmitriy Zaporozhets2015-03-101-0/+5
| |
* | Add brakeman and jasmineDmitriy Zaporozhets2015-03-021-1/+1
| |
* | Add brakeman rake task and improve code securityDmitriy Zaporozhets2015-03-021-1/+1
| |
* | Add rake task for brakemanDmitriy Zaporozhets2015-03-021-0/+9
|/
* Dont load rubocop in prod envDmitriy Zaporozhets2015-02-031-2/+4
|
* Add rubocop to rake test and rake test_ciDmitriy Zaporozhets2015-02-023-1/+4
|
* Fix semaphore spinach tagsDmitriy Zaporozhets2015-01-291-2/+2
|
* Skip tricky test for semaphoreDmitriy Zaporozhets2015-01-291-1/+7
|
* Merge branch 'master' into 'master'Dmitriy Zaporozhets2015-01-201-0/+1
|\ | | | | | | | | | | | | | | print validation errors when gitlab-rake gitlab:import:repos fails for project Currently, when gitlab-rake gitlab:import:repos is not able to import a project it justs prints "Failed trying to create project" to the console. There seems to be no way to find out what exactly has failed. Since the check uses validation, it should at least print the validation issues. That might be a bit cryptic, but may be better than leaving the user in the dark completely. See merge request !147
| * print validation errors when import failsBastian Krol2014-07-091-0/+1
| |
* | Merge pull request #8096 from cirosantilli/regex-to-stringDmitriy Zaporozhets2015-01-151-1/+1
|\ \ | | | | | | Replace regex methods by string ones since faster and more readable
| * | Replace regex methods by string ones since fasterCiro Santilli2014-12-281-1/+1
| | | | | | | | | | | | and more readable.
* | | Make view link come first so I don't have to mouse to the end of the email line.Sytse Sijbrandij2015-01-141-1/+1
|/ /
* | Use a different name of the method to check if sanitize is enabled in check ↵Marin Jankovski2014-12-221-2/+2
| | | | | | | | task.
* | Merge pull request #8256 from cirosantilli/rm-unused-has_gitlab_shell3Robert Schilling2014-12-211-4/+0
|\ \ | | | | | | Remove unused has_gitlab_shell3? method