From 7415d1595d1165926e363fe8debb58d21a1b7b50 Mon Sep 17 00:00:00 2001 From: Domenik Eichhorn Date: Fri, 13 Feb 2026 13:29:00 +0100 Subject: [PATCH 1/4] udpate game version --- scripts/setup-gams.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup-gams.sh b/scripts/setup-gams.sh index 64309e47..289f8181 100755 --- a/scripts/setup-gams.sh +++ b/scripts/setup-gams.sh @@ -19,7 +19,7 @@ apt-get install curl --yes # iisaa/gams-docker (https://github.com/iiasa/gams-docker/blob/master/Dockerfile, GPL-3.0 licensed) # Configure the GAMS version here -GAMS_VERSION_RELEASE_MAJOR=49.7 +GAMS_VERSION_RELEASE_MAJOR=52.5 GAMS_VERSION_HOTFIX=0 # download the self-extracting archive to /opt/gams/gams.exe and run/extract it From 250cb354a18a085c3dde77ecb541c2c570cc13fe Mon Sep 17 00:00:00 2001 From: Domenik Eichhorn Date: Fri, 13 Feb 2026 13:40:55 +0100 Subject: [PATCH 2/4] added debug prints to testcases --- .../kit/provideq/toolbox/api/ApiTestHelper.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java b/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java index 53511624..ac4a42cf 100644 --- a/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java +++ b/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java @@ -153,11 +153,17 @@ public static ProblemDto trySolveFor( }) .returnResult() .getResponseBody(); - builder.append("Fetched problem: " + problemDto + "\n"); + if (problemDto == null) { + System.out.println("Testcase with id " + problemId + " will terminate because problemDto is null"); + System.out.println("problemType: " + problemType); + } assertNotNull(problemDto); + builder.append("Fetched problem: " + problemDto + "\n"); + if (problemDto.getState() == ProblemState.SOLVED) { + System.out.println(problemId + " solved successful."); break; } @@ -174,6 +180,11 @@ public static ProblemDto trySolveFor( .getResponseBody(); builder.append("Fetched sub problem: " + subProblemDto + "\n"); + if (subProblemDto == null) { + System.out.println("Subproblem with id " + subProblemId + " will terminate because subProblemDto is null"); + System.out.println("subProblem: " + subProblem); + System.out.println("Log: " + builder); + } assertNotNull(subProblemDto); } } @@ -187,6 +198,8 @@ public static ProblemDto trySolveFor( } if (hasTimeout.get()) { + System.out.print("Stopping testcase due to timeout."); + System.out.println("log: " + builder); throw new IllegalStateException("Problem did not solve in time: " + problemDto); } } From a1774923bbf0831a249f5d83f9285c181af61c19 Mon Sep 17 00:00:00 2001 From: Domenik Eichhorn Date: Fri, 13 Feb 2026 14:00:00 +0100 Subject: [PATCH 3/4] fixed checkstyle error (lines too long) --- .../java/edu/kit/provideq/toolbox/api/ApiTestHelper.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java b/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java index ac4a42cf..3f2eb73a 100644 --- a/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java +++ b/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java @@ -155,7 +155,8 @@ public static ProblemDto trySolveFor( .getResponseBody(); if (problemDto == null) { - System.out.println("Testcase with id " + problemId + " will terminate because problemDto is null"); + System.out.println("Testcase with id " + problemId + + " will terminate because problemDto is null"); System.out.println("problemType: " + problemType); } assertNotNull(problemDto); @@ -181,7 +182,8 @@ public static ProblemDto trySolveFor( builder.append("Fetched sub problem: " + subProblemDto + "\n"); if (subProblemDto == null) { - System.out.println("Subproblem with id " + subProblemId + " will terminate because subProblemDto is null"); + System.out.println("Subproblem with id " + subProblemId + + " will terminate because subProblemDto is null"); System.out.println("subProblem: " + subProblem); System.out.println("Log: " + builder); } From b4ea97993678ced50f86898af14702dd8bb06f92 Mon Sep 17 00:00:00 2001 From: Elscrux <34755314+Elscrux@users.noreply.github.com> Date: Fri, 13 Feb 2026 15:00:54 +0100 Subject: [PATCH 4/4] fix: replace print with println --- src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java b/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java index 3f2eb73a..2d2abb1f 100644 --- a/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java +++ b/src/test/java/edu/kit/provideq/toolbox/api/ApiTestHelper.java @@ -200,7 +200,7 @@ public static ProblemDto trySolveFor( } if (hasTimeout.get()) { - System.out.print("Stopping testcase due to timeout."); + System.out.println("Stopping testcase due to timeout."); System.out.println("log: " + builder); throw new IllegalStateException("Problem did not solve in time: " + problemDto); }