Skip to content

Commit b297971

Browse files
authored
Increase Friend Time limit to allow wcmp to compile (#69)
1 parent a680bca commit b297971

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/primitives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { readFileSync, existsSync } from "fs";
66
export const ATTIC = "attic";
77
export const TESTCASES = "testcases";
88
export const LANGUAGES = "languages";
9-
export const FRIEND_TIMEOUT = 10_000;
9+
export const FRIEND_TIMEOUT = 50_000; //increase limit to allow wcmp to compile TODO: Allow checker to compile without time limit
1010
export const MAIN_SOLUTION_BINARY = "sol";
1111
export const CHECKER_BINARY = "checker";
1212
export const BRUTE_BINARY = "brute";

src/runner.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ export function preRun(
8484
path: string,
8585
timeout: number
8686
): Option<Execution> {
87-
debug("pre-run", code);
87+
debug("pre-run", code, output, path, timeout); //add more debug
8888

89-
if (checkMD5(code, path)) {
89+
// check if md5 is same and wcmp is already compiled
90+
if (checkMD5(code, path) && existsSync(output)) {
9091
return Option.some(Execution.cached());
9192
}
9293

0 commit comments

Comments
 (0)