Commit Graph

82 Commits

Author SHA1 Message Date
77d15aff0e Add latest changes from gitlab-org/gitlab@master 2020-03-19 00:09:27 +00:00
aaf5961054 Add latest changes from gitlab-org/gitlab@master 2020-03-18 15:09:45 +00:00
cbfe03ae04 Add latest changes from gitlab-org/gitlab@master 2020-03-16 12:09:12 +00:00
82fa8a3d1e Add latest changes from gitlab-org/gitlab@master 2020-03-10 09:08:10 +00:00
f78257cbdd Add latest changes from gitlab-org/gitlab@master 2020-03-06 15:08:05 +00:00
66d4203791 Add latest changes from gitlab-org/gitlab@master 2020-02-26 09:08:47 +00:00
4d0c47058a Add latest changes from gitlab-org/gitlab@master 2020-02-20 21:08:48 +00:00
0434f38ef1 Add latest changes from gitlab-org/gitlab@master 2020-01-31 18:09:11 +00:00
6b9d3a4e83 Add latest changes from gitlab-org/gitlab@master 2020-01-29 18:08:47 +00:00
98252e0dd6 Add latest changes from gitlab-org/gitlab@master 2020-01-20 12:09:02 +00:00
3ad11f24ca Add latest changes from gitlab-org/gitlab@master 2019-12-22 09:07:51 +00:00
9763c08170 Add latest changes from gitlab-org/gitlab@master 2019-12-17 03:07:45 +00:00
175b4fa261 Add latest changes from gitlab-org/gitlab@master 2019-12-11 18:08:10 +00:00
a2022f4a2e Add latest changes from gitlab-org/gitlab@master 2019-10-04 21:05:57 +00:00
e13f07f195 Merge branch 'js-specs-transactions' into 'master'
Use transactions in JS feature specs

Closes #60207

See merge request gitlab-org/gitlab-ce!27496
2019-07-12 13:30:42 +00:00
d4a919679a Use transactions in JS feature specs
Uses Rails transactional tests instead of DatabaseCleaner
transaction strategy because that doesn't work with JS tests
2019-07-12 10:39:14 +08:00
aeb67dd489 Upgrade to Rails 5.2
Updates changed method names and fixes spec failures
2019-07-12 10:15:31 +08:00
3f8ccac032 Allow BetterErrors REPL to be enabled
This allows the BetterErrors REPL to be available
when your GitLab instance is listening on
something _other_ than localhost.
2019-06-05 21:48:44 +10:00
2f6a20ce66 Fix typos in the whole gitlab-ce project 2019-05-20 14:11:44 +00:00
44fef4fe4c Remove rails 4 support in CI, Gemfiles, bin/ and config/ 2018-12-14 19:36:22 +01:00
e423096b77 Explicitly set locale fallbacks
With a recent change in i18n, default language is not
included in fallbacks by default. This causes that
MissingTranslationData exception is raised both in
development and production mode.

This patch sets explicitly fallbacks language to english
which assures that english is used for missing translations.
2018-11-21 12:17:26 +01:00
b6cde1856f Allow concurrency when using Puma 2018-11-05 17:46:15 +00:00
1b42c847bc Fix rails 5 deprecation warnings
Fixes rails 5 deprecation warnings in `config/` files
2018-09-11 18:14:37 +02:00
c83381938a Move spec/mailers/previews to app/mailers/previews 2018-07-06 20:17:54 +08:00
1499b02f73 [Rails5] Pass class references instead of strings to middleware builder
It fixes Rails 5.0 deprecation flooding like:

```
DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change
them to actual class references.  For example:

  "::Gitlab::Middleware::ReadOnly" => Gitlab::Middleware::ReadOnly

 (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11)
DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change
them to actual class references.  For example:

  "ActionDispatch::Static" => ActionDispatch::Static

 (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11)
DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change
them to actual class references.  For example:

  "Gitlab::Testing::RequestBlockerMiddleware" => Gitlab::Testing::RequestBlockerMiddleware

 (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11)
DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change
them to actual class references.  For example:

  "ActionDispatch::Static" => ActionDispatch::Static

 (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11)
DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change
them to actual class references.  For example:

  "Gitlab::Testing::RequestInspectorMiddleware" => Gitlab::Testing::RequestInspectorMiddleware

 (called from <top (required)> at /builds/gitlab-org/gitlab-ce/config/environment.rb:11)
```
2018-06-13 14:12:38 +11:00
36bedfb7f3 [Rails5] Update files by rails app:update 2018-03-22 09:37:57 +11:00
b612bcfc64 implement basic request inspector for use in Capybara tests 2017-10-23 17:00:41 +03:00
7b262c4356 Resolve "Precompiled assets with digest strings are ignored in CI" 2017-10-03 14:47:56 +00:00
ba74f38946 Fix logger disabling on the CI: instantiate an ActiveSupport::TaggedLogging
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-20 11:16:12 +02:00
fc76ff1051 Disable Rails logging in CI test environments
See https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
2017-07-18 12:33:15 -04:00
38ed0b53d0 Rename CDN_HOST to GITLAB_CDN_HOST 2017-06-15 12:52:41 -07:00
96be3a4549 Support a configurable Rails asset_host to allow for CDNs
Adds support for https://gitlab.com/gitlab-com/infrastructure/issues/57
2017-06-14 23:15:22 -07:00
8b66e42b6c Merge branch '29421-production-config-assets-compile-false' into 'master'
Set 'config.assets.compile = false' in production

Closes #29421

See merge request !9917
2017-05-16 05:33:59 +00:00
00dd2ba95e Turn on caching of classes in Knapsack specs
Enabling caching of classes slows start-up time because all controllers
are loaded at initialization, but it reduces memory and load because files
are not reloaded with every request. For example, caching is not necessary
for loading database migrations but useful for handling Knapsack specs.

Addresses gitlab-org/gitlab-ee#2162
2017-04-14 15:13:31 -07:00
645a55f19b Introduce a new middleware for the test environment that can block requests
The idea is that after each feature spec example, we block all incoming
requests at the Rack level, go to the 'about:blank' page, and wait until
the current requests reach 0.

This should solve the problem where a request would end after database
cleaner performed the database truncation. The problem was that a GET
request can still lead to records creation (e.g. namespaces or routes).

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-22 19:45:21 +01:00
461d2672a4 Set 'config.assets.compile = false' in production 2017-03-14 01:14:44 +00:00
eb70f051a6 Remove quiet_assets in favor of built-in sprockets-rails config.
quiet_assets has been seemingly abandoned, and now sprockets-rails has the feature built-in!

From this PR: https://github.com/rails/sprockets-rails/pull/355
2016-06-30 16:18:05 -06:00
2682c58847 Customize ActionMailer preview path 2016-05-25 16:56:06 -04:00
f5a0ac0fc1 Codestyle: make sure we have space around operators 2016-05-13 04:46:56 -03:00
702380f1ae Add letter_opener_web gem
Sent emails in the development environment will no longer automatically
be opened in the browser. If a sent email needs to be viewed, it can be
found at the `/rails/letter_opener` route.
2016-04-22 16:13:59 -04:00
44d9f52fd9 Enable asset compression in production.
`config.assets.compress` needed to be explicitly enabled.

Follow-up to !3544. Resolves #14344.
2016-04-09 16:31:41 -06:00
5ff9d2a182 Bump rails to 4.2.6 2016-04-05 13:07:53 -04:00
9c593a51c3 Remove duplicate 'cache_store' configuration in test environment 2016-03-02 10:33:38 +00:00
96440042a9 Raise an error on page load if there are pending migrations on dev env 2016-01-19 00:12:30 -02:00
4da7547b6d Don't send (fake) email during dev bootstrap
This allows you to do:

    rake dev:setup BOOTSTRAP=1

and prevent dozens of letter_opener emai popups in your browser.
2016-01-15 13:15:24 +01:00
0dcff1342b Merge branch 'master' into reference-pipeline-and-caching 2015-12-03 13:34:25 +01:00
f21bbd4444 Rails deprecation warning about log_level 2015-12-03 10:53:58 +02:00
2955ca613b Merge branch 'master' into reference-pipeline-and-caching 2015-12-02 11:20:51 +01:00
461731f076 fix notification_service specs 2015-11-30 11:21:10 +02:00
7f214cee74 Migrate mailers to ActiveJob 2015-11-26 17:03:43 +02:00