Skip to content

Commit 96afdd9

Browse files
author
José Valim
committed
Increase long compilation thredshold to 10
1 parent ef53759 commit 96afdd9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/elixir/lib/kernel/parallel_compiler.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule Kernel.ParallelCompiler do
2525
this callback passing the file as its argument
2626
2727
* `:long_compilation_threshold` - the timeout (in seconds) after the
28-
`:each_long_compilation` callback is invoked; defaults to `5`
28+
`:each_long_compilation` callback is invoked; defaults to `10`
2929
3030
* `:each_module` - for each module compiled, invokes the callback passing
3131
the file, module and the module bytecode
@@ -122,7 +122,7 @@ defmodule Kernel.ParallelCompiler do
122122
end)
123123
end
124124

125-
timeout = Keyword.get(options, :long_compilation_threshold, 5) * 1_000
125+
timeout = Keyword.get(options, :long_compilation_threshold, 10) * 1_000
126126
timer_ref = Process.send_after(self(), {:timed_out, pid}, timeout)
127127

128128
new_queued = [{pid, ref, file, timer_ref} | queued]

lib/mix/lib/mix/compilers/elixir.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ defmodule Mix.Compilers.Elixir do
151151
# Starts a server responsible for keeping track which files
152152
# were compiled and the dependencies between them.
153153
{:ok, pid} = Agent.start_link(fn -> {modules, sources} end)
154-
long_compilation_threshold = opts[:long_compilation_threshold] || 5
154+
long_compilation_threshold = opts[:long_compilation_threshold] || 10
155155

156156
try do
157157
_ = Kernel.ParallelCompiler.files stale,

lib/mix/lib/mix/tasks/test.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ defmodule Mix.Tasks.Test do
184184
end
185185

186186
project = Mix.Project.config
187-
188187

189188
# Start cover after we load deps but before we start the app.
190189
cover =

0 commit comments

Comments
 (0)