Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3e76e2a1
Commit
3e76e2a1
authored
Jan 20, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '31034-cache-classes-in-ci' into 'master'
Cache classes in CI See merge request gitlab-org/gitlab!20949
parents
b9136f1f
8f598780
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
config/environments/test.rb
config/environments/test.rb
+2
-5
scripts/rspec_helpers.sh
scripts/rspec_helpers.sh
+0
-2
No files found.
config/environments/test.rb
View file @
3e76e2a1
...
...
@@ -10,11 +10,8 @@ Rails.application.configure do
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
# 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.
config
.
cache_classes
=
ENV
[
'CACHE_CLASSES'
]
==
'true'
# Code doesn't change in CI so we don't need code-reloading
config
.
cache_classes
=
!!
ENV
[
'CI'
]
# Configure static asset server for tests with Cache-Control for performance
config
.
assets
.
compile
=
false
if
ENV
[
'CI'
]
...
...
scripts/rspec_helpers.sh
View file @
3e76e2a1
...
...
@@ -40,7 +40,6 @@ function rspec_simple_job() {
local
rspec_opts
=
"
${
1
}
"
export
NO_KNAPSACK
=
"1"
export
CACHE_CLASSES
=
"true"
scripts/gitaly-test-spawn
...
...
@@ -59,7 +58,6 @@ function rspec_paralellized_job() {
spec_folder_prefix
=
"ee/"
fi
export
CACHE_CLASSES
=
"true"
export
KNAPSACK_LOG_LEVEL
=
"debug"
export
KNAPSACK_REPORT_PATH
=
"knapsack/
${
test_tool
}
_
${
test_level
}
_
${
database
}
_
${
CI_NODE_INDEX
}
_
${
CI_NODE_TOTAL
}
_report.json"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment