summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add a linter for PO filesBob Van Landuyt2017-08-311-0/+40
| |
* | `current_application_settings` belongs on `Gitlab::CurrentSettings`Sean McGivern2017-08-311-1/+1
|/ | | | | | | | | | | | | | | | The initializers including this were doing so at the top level, so every object loaded after them had a `current_application_settings` method. However, if someone had rack-attack enabled (which was loaded before these initializers), it would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't have that method. To fix this: 1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need `Object.new.current_application_settings` to work. 2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it like that in several places. 3. Change the initializers to use that new form.
* Use `git update-ref --stdin -z` to delete refs36807-gc-unwanted-refs-after-importLin Jen-Shin2017-08-301-1/+1
|
* replace `is_gitlab_user?` with `gitlab_user?`Maxim Rydkin2017-08-291-2/+2
|
* Migrate creation of nested groups into a serviceBob Van Landuyt2017-08-231-17/+1
|
* Improve bare repository importBob Van Landuyt2017-08-231-63/+2
| | | | | | | | | - Allow imports into nested groups - Make sure it sets the correct visibility level when creating new groups While doing this, I moved the import into a testable class, that made it easier to improve.
* Prevent using gitlab import task when hashed storage is enabledGabriel Mazetto2017-08-221-0/+6
|
* Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher2017-08-151-1/+1
|
* Add two more project templateszj-add-two-more-project-templatesZ.J. van de Weg2017-08-151-2/+7
| | | | | | | Related to !13108. Mostly this is just running the rake task and changing the task a bit to catch cases like the project already existing or so. The rake task moves archives to the vendor/project_template directory, which are checked in too.
* Use existing BUNDLE_PATH for gitaly in local testsgitaly-test-bundle-pathJacob Vosmaer2017-08-111-2/+6
|
* Merge branch '36003-do-not-include-to-kernel' into 'master'Robert Speicher2017-08-093-13/+3
|\ | | | | | | | | | | | | Don't include anything to Kernel only because of tasks Closes #36003 See merge request !13380
| * We shouldn't include utility methods everywhereLin Jen-Shin2017-08-081-0/+2
| |
| * Just extend main, rather than include to KernelLin Jen-Shin2017-08-082-13/+1
| | | | | | | | | | | | | | Unfortunately rake doesn't have nested context, everything just runs on a main rake object. This is probably due to compatibility issue, but anyway, we could just extend the object.
* | Unset BUNDLE_GEMFILE when installing GitalyJacob Vosmaer2017-08-081-1/+1
|/
* Merge branch '35941-fix-testing-issue-following-gitaly-install-fix' into ↵Rémy Coutable2017-08-081-1/+1
|\ | | | | | | | | | | | | | | | | 'master' Unset the `RUBYOPT` env variable before installing `gitaly-ruby` Closes #35941 and #35967 See merge request !13313
| * Print the setup steps and duration and fix an issue resulting in re-setuping ↵35941-fix-testing-issue-following-gitaly-install-fixRémy Coutable2017-08-041-1/+1
| | | | | | | | | | | | GitLab Shell on each test run Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Unset the RUBYOPT env variable before installing gitaly-rubyRémy Coutable2017-08-041-1/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Revert "Merge branch 'fix-gitaly-install' into 'master'"Rémy Coutable2017-08-041-1/+1
| | | | | | | | | | This reverts commit 23c502b43404aa70741462da5d57c23196f6088a, reversing changes made to 1018ab0516fd94d1ffbc05a0ad8499947dd9630d.
* | Merge branch 'github' into 'master'Robert Speicher2017-08-071-1/+2
|\ \ | | | | | | | | | | | | | | | | | | Improve GitHub importer Closes #27429 See merge request !12886
| * | Fix small typoe on GitHub import rake taskDouglas Barbosa Alexandre2017-08-071-1/+1
| | |
| * | Use a custom root endpoint if defined on GH ominiauth provider settingsDouglas Barbosa Alexandre2017-08-071-1/+1
| | |
| * | Use project.import_url to fetch repositories from GithubDouglas Barbosa Alexandre2017-08-071-0/+1
| | |
* | | Merge branch 'zj-project-templates' into 'master'Sean McGivern2017-08-071-0/+49
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Allow projects to be started from a template Closes #32420 See merge request !13108
| * | | Fix last feature test for project templatesZ.J. van de Weg2017-08-071-1/+2
| | | |
| * | | After merge cleanupZ.J. van de Weg2017-08-071-3/+4
| | | |
| * | | Merge branch 'master' into zj-project-templatesFilipa Lacerda2017-08-076-6/+15
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (623 commits) Fix issues with pdf-js dependencies fix missing changelog entries for security release on 2017-01-23 Update top bar issues icon Fix pipeline icon in contextual nav for projects Since mysql is not a priority anymore, test it less Fix order of CI lint ace editor loading Add container registry and spam logs icons Fix different Markdown styles Backport to CE for: Make new dropdown dividers full width Fix spec Fix spec Fix spec Bump GITLAB_SHELL_VERSION and GITALY_VERSION to support unhiding refs Add changelog Install yarn via apt in update guides Use long curl options fix Add a spec for concurrent process Remove monkey-patched Array.prototype.first() and last() methods ...
| * | | Create rake task to create project templatesZ.J. van de Weg2017-08-011-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First iteration, and some stuff is missing. But basically this rake task does a clone of a project we've pointed it to. Than creates a project on the GDK, which should be running in the background. This project is exported, after which we move that archive to the location we need it. We clean up by removing the generated project. The first idea was to export the project on .com too, however than we might run into ImportExport versions mismatch. This could've been circumvented by checkout out an older commit locally. This however is not needed yet, so we opted to not go this route yet, instead we will iterate on what we got.
* | | | Merge branch 'gitaly-386-shell-config' into 'master'Robert Speicher2017-08-071-0/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Gitaly needs to know where to find gitlab-shell See merge request !13306
| * | | Have raketask tell gitaly where to find shellKim "BKC" Carlbäcker2017-08-041-0/+1
| | |/ | |/|
* | | Add custom linter for inline JavaScript to haml_lint (!9742)winniehell2017-08-071-0/+1
|/ /
* | Ensure we run installation Rake tasks in a clean env in TestEnvRémy Coutable2017-08-021-1/+1
| | | | | | | | | | | | | | | | If we call `system('rake', 'taks_name')`, `ENV['RUBYOPT']` is set to `'-rbundler/setup'` but some tasks (e.g. `gitlab:gitaly:install` need a clean env since they install their own Gem bundle. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch '28283-legacy-storage-format' into 'master'Sean McGivern2017-08-013-3/+3
|\ \ | | | | | | | | | | | | [CE] Added Legacy Storage format See merge request !13149
| * | Rename more path_with_namespace -> full_path or disk_pathGabriel Mazetto2017-08-013-3/+3
| | |
* | | CI fixes for gitaly-rubyJacob Vosmaer2017-08-011-3/+9
|/ /
* | Support the fact that Gitaly uses bundlerJacob Vosmaer2017-07-271-1/+1
| |
* | Compile JS lang files before webpack compileassets-task-compile-langsPhil Hughes2017-07-271-0/+1
| | | | | | | | Closes #35615
* | Add lower path index to redirect_routesmk-add-lower-path-index-to-redirect-routesMichael Kozono2017-07-251-0/+2
|/
* Improve version handling on component install tasks34788-testenv-doesn-t-update-the-component-correctly-when-a-branch-is-specifiedAlejandro Rodríguez2017-07-201-7/+2
| | | | | | | Fixes an issue where, when using branch versions, the component wouldn't be updated after the first branch checkout. We also save one step, since checking out the FETCH_HEAD with `-f` already does what `reset --hard` did.
* Merge branch '34831-remove-coffee-rails-gem' into 'master'Jacob Schatz2017-07-171-1/+1
|\ | | | | | | | | | | | | Remove coffee-rails gem Closes #34831 See merge request !12715
| * Remove .coffee ext files for i18nTakuya Noguchi2017-07-081-1/+1
| |
* | Support multiple Redis instances based on queue typePaul Charlton2017-07-111-2/+2
|/
* Implement review comments for !11963 from @adamniedzielski.Timothy Andrew2017-07-061-2/+1
| | | | | | | - Change double quotes to single quotes. - Why is `OmniAuth.config.full_host` being reassigned in the integration test? - Use `map` over `map!` to avoid `dup` in the `gitlab:info` rake task - Other minor changes
* Don't allow the `gitlab:env:info` rake task to mutate the list of omniauth ↵Timothy Andrew2017-07-061-1/+1
| | | | | | | | | providers. - The test for `rake gitlab:env:info` executed the rake task, which mutated the list of omniauth providers, breaking subsequent tests relying on this list. - I've changed the rake task to duplicate the providers list before modifying it.
* Enable gitaly token auth when testingJacob Vosmaer2017-06-201-2/+3
|
* Add table for files in merge request diffsSean McGivern2017-06-161-0/+2
| | | | | | | | | | | | | | | | This adds an ID-less table containing one row per file, per merge request diff. It has a column for each attribute on Gitlab::Git::Diff that is serialised currently, with the advantage that we can easily query the attributes of this new table. It does not migrate existing data, so we have fallback code when the legacy st_diffs column is present instead. For a merge request diff to be valid, it should have at most one of: * Rows in this new table, with the correct merge_request_diff_id. * A non-NULL st_diffs column. It may have neither, if the diff is empty.
* Stop using deprecated `path` field on Gitaly messagesAlejandro Rodríguez2017-06-141-10/+10
| | | | | This revealed an error in our configuration generation in gitlab:gitaly:install rake task. The fix is included
* Don't check if MailRoom is running on Omnibusdm-mail-room-check-without-omnibusDouwe Maan2017-06-091-5/+4
|
* Merge branch '29690-rotate-otp-key-base' into 'master'Brian Neel2017-06-061-0/+16
|\ | | | | | | | | | | | | Add a Rake task to aid in rotating otp_key_base Closes #29690 See merge request !11881
| * Add a Rake task to aid in rotating otp_key_baseNick Thomas2017-06-051-0/+16
| |
* | Merge branch 'pull-mirror-overhaul-ce-backport' into 'master'Douwe Maan2017-06-051-1/+1
|\ \ | |/ |/| | | | | backports changed import logic from pull mirroring feature into CE See merge request !11850