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
8f598780
Commit
8f598780
authored
Nov 17, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache classes in CI
Source code won't change in CI so we don't need code-reloading
parent
fd74d775
Changes
2
Hide 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 @
8f598780
...
...
@@ -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 @
8f598780
...
...
@@ -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