Commit Graph

503 Commits

Author SHA1 Message Date
Sebastian Reitenbach d8569440b5 There might be ps utilities out there, that assume 80chars instead
of unlimited width if they cannot detect terminal size, therefore
force unlimited terminal size when checking processes via ps.
2017-03-28 23:15:17 +02:00
Robert Speicher fc830c6ff5 Merge branch 'gitaly-install-rake' into 'master'
Docs and scripts to install Gitaly from source

Closes gitaly#136 and #28446

See merge request !9941
2017-03-21 15:32:58 +00:00
Mike Greiling 2d46a5722f Resolve "Circular dependency detected" (duplicate) 2017-03-21 14:40:34 +00:00
Jacob Vosmaer 49a9c2fbef Print command output when a task failed
This helps you understand why the command failed.
2017-03-21 14:55:41 +01:00
Jacob Vosmaer 3883a5f906 Rake task that can install gitaly at a tag version 2017-03-21 14:55:41 +01:00
Z.J. van de Weg 3ebd29b538 Futher rename the CI variables 2017-03-16 08:49:01 +01:00
Douwe Maan e4551749c0 Only check new migrations in 'rake down_timecheck' 2017-03-08 17:33:53 -06:00
Sean McGivern a5db7f5425 Merge branch '28447-hybrid-repository-storages' into 'master'
Update storage settings to allow extra values per shard

See merge request !9597
2017-03-07 16:55:03 +00:00
Alejandro Rodríguez 0b9d56f960 Update storage settings to allow extra values per shard
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
2017-03-03 12:13:30 -03:00
Semyon Pupkov e73b68a742 Add git version to gitlab:env:info
https://gitlab.com/gitlab-org/gitlab-ce/issues/25376
2017-02-28 20:42:13 +05:00
Douwe Maan f88ff0cc0c Stylistic tweaks 2017-02-23 09:33:20 -06:00
Douwe Maan 87c9df29ce Don’t exclude some file in lib from rubocop 2017-02-23 09:32:42 -06:00
Gabriel Mazetto 649a1fcf15 Fix incomming email check task to use same patch we did in mail_room 2017-02-21 18:50:28 +01:00
Mike Greiling e652987947 ensure rake tasks produce helpful error messages for node dependency issues 2017-02-15 23:46:29 -06:00
Connor Shea b39421bded Fixed backup.rake colorize method following Pages -> CE
Cherry-picked 'Remove colorize methods that weren't in CE.'
2017-02-07 14:43:32 +00:00
James Edwards-Jones b988faaf85 Merge branch 'master' into 'jej-pages-to-ce'
# Conflicts:
#   db/schema.rb
2017-02-06 15:12:27 +00:00
Mike Greiling 04dc2b76d7 Merge branch 'master' into go-go-gadget-webpack
* master: (181 commits)
  Fixed adding to list bug
  Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index
  Fixed modal lists dropdown not updating when list is deleted
  Fixed remove btn error after creating new issue in list
  Removed duplicated test
  Removed Masonry, instead uses groups of data
  Uses mixins for repeated functions
  Fixed up specs
  Props use objects with required & type values
  Removes labels instead of closing issue when clicking remove button
  Fixed JS lint errors
  Fixed issue card spec
  Added webkit CSS properties
  Fixed bug with empty state showing after search Fixed users href path being incorrect
  Fixed bug where 2 un-selected issues would stay on selected tab
  Fixed DB schema Changed how components are added in objects
  Added remove button
  Add optional id property to the issue schema
  Fixed issue link href
  Disabled add issues button if no lists exist
  ...
2017-02-03 13:17:03 -06:00
James Edwards-Jones 1af3f3b673 Merge branch 'master' into jej-pages-picked-from-ee 2017-02-03 17:25:26 +00:00
Dmitriy Zaporozhets 7dc8b6b204 Merge branch 'fwn-to-find-by-full-path' into 'master'
replace `find_with_namespace` with `find_by_full_path`

See merge request !8949
2017-02-03 11:23:21 +00:00
Adam Pahlevi a0586dbc16 replace `find_with_namespace` with `find_by_full_path`
add complete changelog for !8949
2017-02-03 07:14:04 +07:00
Kamil Trzcinski 120f9abaa1 Add GitLab Pages
- 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
2017-01-31 22:50:39 +00:00
Rémy Coutable 89a2438ab4
Fix wrong call to ProjectCacheWorker.perform
It's either ProjectCacheWorker#perform or
ProjectCacheWorker.perform_async!

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-31 17:42:33 +01:00
Mike Greiling abb122a44f update rake tasks 2017-01-28 11:42:48 -06:00
Mike Greiling c454dec170 Merge branch 'master' into go-go-gadget-webpack
* master: (33 commits)
  Improved code style on the issue_sidebar_spec.rb
  add CHAGELOG.md entry for !8831
  remove assets:compile step from relative_url docs
  update scripts and docs to reference the newly namespaced rake task
  namespace assets rake tasks to gitlab:assets:*
  correct gzip files if they exist as well
  automatically correct CSS urls on assets:precompile
  remove hard-coded assets path for ace editor modules
  Fixed cancel button in the services form not redirecting back to the integrations settings view
  Fix search bar search param encoding
  Fix a transient failure in the `Explore::ProjectsController` spec
  Fix filtering with multiple words
  Fix project name label's for reference in project settings
  Fixed merge request tabs extra margin
  Don't call `#uniq` on a relation
  Move Gitlab::Shell and Gitlab::ShellAdapter files to lib/
  Move ApplicationSetting DEFAULTS to `.defaults` instead
  Move a begin/rescue clause to ApplicationSetting.expire
  Use badge partial as single source of truth instead of having 2 partials doing the same
  Changes after review
  ...
2017-01-28 11:25:15 -06:00
Mike Greiling 69e4072f89 Merge branch 'master' into go-go-gadget-webpack
* master: (389 commits)
  Document "No gems fetched from git repositories" policy [ci skip]
  Typos
  Small gramatical tweaks
  Typos
  Added PHP & NPM doc
  Use `:empty_project` where possible in request specs
  Add caching of droplab ajax requests
  Use `:empty_project` where possible in model specs
  Revert 3f17f29a
  Remove unused js response from refs controller
  Add MR id to changelog entry
  fixed small mini pipeline graph line glitch
  Prevent form to be submitted twice
  Fix Error 500 when repositories contain annotated tags pointing to blobs
  Fix /explore sorting (trending)
  Simplify wording in "adding an image" docs
  Remove "official merge window" from CONTRIBUTING.md [ci skip]
  Update repository check documentation
  Fixed flexbox and wrap issues
  Update two_factor_authentication.md
  ...
2017-01-27 19:33:58 -06:00
Mike Greiling 336d780d95 namespace assets rake tasks to gitlab:assets:* 2017-01-27 15:21:30 -06:00
Stan Hu 1e2a960467 Merge branch 'mrchrisw/rake-redis' into 'master'
Add redis version to info rake task

See merge request !8283
2017-01-25 04:12:12 +00:00
Chris Wilson 05a5ae2ff2 Add redis version to info rake task 2017-01-24 18:55:59 -06:00
Phil Hughes 639bca4362 Merge branch 'master' into go-go-gadget-webpack 2017-01-13 10:30:40 -05:00
Douwe Maan 3eebca7b5c Merge branch 'use-configured-git' into 'master'
Use configured git rather thans system git

See merge request !8460
2017-01-12 18:27:33 +00:00
Mike Greiling 0e4aaa06d3 remove remaining vestiges of teaspoon test runner 2017-01-10 12:30:41 -06:00
Luke "Jared" Bennett 7c47cc94c5 Swapped out teaspoon for karma 2017-01-10 12:30:40 -06:00
Adam Niedzielski fc6b9a1014 Do not remove "autodeploy" directory when fetching CI templates 2017-01-10 17:49:50 +01:00
Robert Schilling 22a34c81aa Use configured git rather than system git 2017-01-05 13:46:26 +01:00
Markus Koller 3ef4f74b1a
Add more storage statistics
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-21 16:39:49 +01:00
Markus Koller 6fd58ee48d
Remove rake task update_commit_count 2016-12-21 16:36:53 +01:00
Drew Blessing e0eb86ee80 Add LDAP task to rename a provider
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-16 09:57:05 -06:00
Rémy Coutable 2c0bcefdc6
Don't allow to specify a repo or version when installing Workhorse
The task will use the canonical repo and the required version.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-01 19:22:46 +01:00
Rémy Coutable b193e84974
Move task helpers to a module
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-30 12:20:21 +01:00
Rémy Coutable a9c250eadd Add #run_command! to task helpers to raise a TaskFailedError if status is not 0
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-30 10:35:17 +01:00
Rémy Coutable fbbf177e3b New `gitlab:workhorse:install` rake task
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-30 10:34:59 +01:00
Kamil Trzciński e4c86bc887 Merge branch 'zj-rake-task-remove-faulty-deployment-refs' into 'master'
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-19 10:59:31 +00:00
Z.J. van de Weg f20eadcbbe 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.
2016-11-18 15:47:20 +01:00
Rémy Coutable 8bacdfb243
Use the public CE repo URL instead of the one used in the runner
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-17 18:39:55 +01:00
Rémy Coutable 88edbd11a9
Improve EeCompatCheck, cache EE repo and keep artifacts for the ee_compat_check task
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-10 10:40:47 +01:00
Drew Blessing dc30783057 Introduce better credential and error checking to `rake gitlab:ldap:check`
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-08 15:46:10 -06:00
Robert Speicher 4ba789cd40 Remove unused `gitlab:generate_docs` Rake task
This was the only thing using the `sdoc` gem, which was blocking another
gem from updating.
2016-11-03 17:25:58 +00:00
Drew Blessing af5322e90b Add Rake task to create/repair GitLab Shell hooks symlinks 2016-11-01 14:52:59 -05:00
Rémy Coutable af669cbea3
Change the approach to check if patches apply cleanly
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-21 19:16:56 +02:00
Valery Sizov 0c0caede85 Fix: Backup restore doesn't clear cache 2016-10-20 17:33:12 +03:00