Skip to content

Commit

Permalink
update k8s with most recent docker builds
Browse files Browse the repository at this point in the history
Break out slow E2E tests so fast E2E tests  can be run in VSCode easily
  • Loading branch information
johnml1135 committed Oct 14, 2023
1 parent 022819e commit 5ee0eb8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 21 deletions.
6 changes: 3 additions & 3 deletions deploy/qa-ext-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace: serval
auth0Domain: dev-sillsdev.auth0.com
lokiTenent: serval-tenant
lokiUrl: http://loki-distributed-gateway.loki.svc.cluster.local
servalImage: ghcr.io/sillsdev/serval:0.7.1
machineImage: ghcr.io/sillsdev/machine:3.3.2
ClearMLDockerImage: ghcr.io/sillsdev/machine.py:0.9.5
servalImage: ghcr.io/sillsdev/serval:0.8.0
machineImage: ghcr.io/sillsdev/machine:3.4.0
ClearMLDockerImage: ghcr.io/sillsdev/machine.py:0.9.6.2
ClearMLQueue: lambert_24gb
SharedFileLocation: s3://aqua-ml-data/ext-qa/
enableEcho: true
6 changes: 3 additions & 3 deletions deploy/qa-int-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace: nlp
auth0Domain: sil-appbuilder.auth0.com
lokiTenent: nlp-tenant
lokiUrl: http://loki-distributed-gateway.loki.svc.cluster.local
servalImage: ghcr.io/sillsdev/serval:0.7.1
machineImage: ghcr.io/sillsdev/machine:3.3.2
ClearMLDockerImage: ghcr.io/sillsdev/machine.py:0.9.5
servalImage: ghcr.io/sillsdev/serval:0.8.0
machineImage: ghcr.io/sillsdev/machine:3.4.0
ClearMLDockerImage: ghcr.io/sillsdev/machine.py:0.9.6.2
ClearMLQueue: lambert_24gb
SharedFileLocation: s3://aqua-ml-data/int-qa/
enableEcho: true
6 changes: 3 additions & 3 deletions deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace: serval
auth0Domain: languagetechnology.auth0.com
lokiTenent: nlp-tenant
lokiUrl: http://loki-distributed-gateway.loki.svc.cluster.local
servalImage: ghcr.io/sillsdev/serval:0.7.1
machineImage: ghcr.io/sillsdev/machine:3.3.2
ClearMLDockerImage: ghcr.io/sillsdev/machine.py:0.9.5
servalImage: ghcr.io/sillsdev/serval:0.8.0
machineImage: ghcr.io/sillsdev/machine:3.4.0
ClearMLDockerImage: ghcr.io/sillsdev/machine.py:0.9.6.2
ClearMLQueue: production
SharedFileLocation: s3://aqua-ml-data/production/
enableEcho: true
26 changes: 26 additions & 0 deletions tests/Serval.E2ETests/ServalApiSlowTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
namespace Serval.E2ETests;

[TestFixture]
[Category("E2E")]
[Category("slow")]
public class ServalApiSlowTests
{
private ServalClientHelper? _helperClient;

[SetUp]
public void SetUp()
{
_helperClient = new ServalClientHelper("https://machine.sil.org", ignoreSSLErrors: true);
}

[Test]
public async Task GetSmtWholeBible()
{
await _helperClient!.ClearEngines();
string engineId = await _helperClient.CreateNewEngine("SmtTransfer", "es", "en", "SMT2");
await _helperClient.AddTextCorpusToEngine(engineId, new string[] { "bible.txt" }, "es", "en", false);
await _helperClient.BuildEngine(engineId);
TranslationResult tResult = await _helperClient.translationEnginesClient.TranslateAsync(engineId, "Espíritu");
Assert.AreEqual(tResult.Translation, "Spirit");
}
}
12 changes: 0 additions & 12 deletions tests/Serval.E2ETests/ServalApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,6 @@ public async Task GetSmtTranslation()
Assert.AreEqual(tResult.Translation, "spirit");
}

[Test]
[Category("slow")]
public async Task GetSmtWholeBible()
{
await _helperClient!.ClearEngines();
string engineId = await _helperClient.CreateNewEngine("SmtTransfer", "es", "en", "SMT2");
await _helperClient.AddTextCorpusToEngine(engineId, new string[] { "bible.txt" }, "es", "en", false);
await _helperClient.BuildEngine(engineId);
TranslationResult tResult = await _helperClient.translationEnginesClient.TranslateAsync(engineId, "Espíritu");
Assert.AreEqual(tResult.Translation, "Spirit");
}

[Test]
public async Task GetSmtAddSegment()
{
Expand Down

0 comments on commit 5ee0eb8

Please sign in to comment.