Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
7e1e0086
Unverified
Commit
7e1e0086
authored
May 16, 2024
by
Daniel Hiltgen
Committed by
GitHub
May 16, 2024
Browse files
Merge pull request #4482 from dhiltgen/integration_improvements
Skip max queue test on remote
parents
5bece945
7f2fbad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
integration/max_queue_test.go
integration/max_queue_test.go
+6
-1
No files found.
integration/max_queue_test.go
View file @
7e1e0086
...
...
@@ -19,6 +19,11 @@ import (
)
func
TestMaxQueue
(
t
*
testing
.
T
)
{
if
os
.
Getenv
(
"OLLAMA_TEST_EXISTING"
)
!=
""
{
t
.
Skip
(
"Max Queue test requires spawing a local server so we can adjust the queue size"
)
return
}
// Note: This test can be quite slow when running in CPU mode, so keep the threadCount low unless your on GPU
// Also note that by default Darwin can't sustain > ~128 connections without adjusting limits
threadCount
:=
32
...
...
@@ -109,9 +114,9 @@ func TestMaxQueue(t *testing.T) {
slog
.
Info
(
"generate done, waiting for embeds"
)
embedwg
.
Wait
()
slog
.
Info
(
"embeds completed"
,
"success"
,
succesCount
,
"busy"
,
busyCount
,
"reset"
,
resetByPeerCount
,
"canceled"
,
canceledCount
)
require
.
Equal
(
t
,
resetByPeerCount
,
0
,
"Connections reset by peer, have you updated your fd and socket limits?"
)
require
.
True
(
t
,
busyCount
>
0
,
"no requests hit busy error but some should have"
)
require
.
True
(
t
,
canceledCount
==
0
,
"no requests should have been canceled due to timeout"
)
slog
.
Info
(
"embeds completed"
,
"success"
,
succesCount
,
"busy"
,
busyCount
,
"reset"
,
resetByPeerCount
,
"canceled"
,
canceledCount
)
}
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