Commit Graph

520 Commits

Author SHA1 Message Date
Gabriel Mazetto ecdbde3d95 Improve Specs and some fixes 2017-05-31 14:33:03 +02:00
Gabriel Mazetto 27e632758f Add ActiveUsers Check 2017-05-31 14:33:03 +02:00
Gabriel Mazetto 13e88c9395 Refactor gitlab:app:checks to use SystemCheck 2017-05-31 14:33:03 +02:00
Gabriel Mazetto 500e5227a0 WIP SystemCheck library for executing checks from a rake task 2017-05-31 14:33:03 +02:00
Rémy Coutable d40e1f547e Enable the Style/TrailingCommaInLiteral cop
Use the EnforcedStyleForMultiline: no_comma option.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Ahmad Sherif b03179b4a6 Print Go version in rake gitlab:env:info 2017-05-10 15:35:02 +02:00
Jacob Vosmaer 3960d974c3 Compile gitlab-shell go executables 2017-05-04 11:21:51 +02:00
Nick Thomas 1a168dc7a5 Fix caching large snippet HTML content on MySQL databases 2017-05-03 15:27:45 +01:00
Mike Ricketts 923d242890 #31560 Add repo parameter to gitaly:install and workhorse:install 2017-05-02 16:58:37 +00:00
Zeger-Jan van de Weg df85a7c004 Submodule Dockerfile templates 2017-04-26 15:57:44 +00:00
Rémy Coutable a9a1f7a61a Merge branch 'gitaly-testing-toml' into 'master'
Gitaly testing toml

Closes gitaly#182

See merge request !10605
2017-04-25 08:21:06 +00:00
Alejandro Rodríguez 476037b05b Configure Gitaly through settings file instead of ENV vars 2017-04-18 22:43:41 -03:00
Rémy Coutable e33606556f Merge branch 'branch-versions' into 'master'
Expand components version specification format to allow branches

Closes gitaly#183

See merge request !10610
2017-04-14 08:29:47 +00:00
Alejandro Rodríguez e61325ff43 Expand components version specification format to allow branches
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.
2017-04-13 17:32:00 -03:00
Rémy Coutable 755325c827 Fix the `gitlab:gitlab_shell:check` task
Make the `gitlab:gitlab_shell:check` task check that the repositories storage
path are owned by the `root` group

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-12 17:40:19 +02:00
Adam Niedzielski 7dfeaabb5a Include CONTRIBUTING.md file when importing .gitlab-ci.yml templates 2017-04-12 14:38:59 +02:00
Ahmad Sherif 62521f20e4 Add rake task that prints TOML storage configuration
Closes gitaly#173
2017-04-04 19:35:35 +02:00
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