Skip to content

Commit

Permalink
Merge pull request #943 from vespa-engine/thomasht86/increase-timeout…
Browse files Browse the repository at this point in the history
…-integration-test

(ci) increase timeout from 300 to 600
  • Loading branch information
thomasht86 authored Oct 1, 2024
2 parents d6a997a + 4235ba0 commit 55a0872
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/integration/test_integration_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,9 @@ def setUp(self) -> None:
)

self.vespa_docker = VespaDocker(port=8089)
self.app = self.vespa_docker.deploy(application_package=self.app_package)
self.app = self.vespa_docker.deploy(
application_package=self.app_package, max_wait_deployment=600
)

def test_crossencoder_threads(self):
# Feed sample documents to the application
Expand All @@ -2105,21 +2107,24 @@ def test_crossencoder_threads(self):
}

# Warm-up query
self.app.query(body=query_body)
with self.app.syncio() as sess:
_ = sess.query(body=query_body)
query_body_reranking = {
**query_body,
"ranking.profile": "reranking",
}
# Query with default persearch threads (set to 4)
response_default = self.app.query(body=query_body_reranking)
with self.app.syncio() as sess:
response_default = sess.query(body=query_body_reranking)

# Query with num-threads-per-search overridden to 1
query_body_one_thread = {
**query_body,
"ranking.profile": "one-thread-profile",
"ranking.matching.numThreadsPerSearch": 1,
}
response_one_thread = self.app.query(body=query_body_one_thread)
with self.app.syncio() as sess:
response_one_thread = sess.query(body=query_body_one_thread)

# Extract query times
timing_default = response_default.json["timing"]
Expand Down

0 comments on commit 55a0872

Please sign in to comment.