Skip to content

Commit

Permalink
Increase Friend Time limit to allow wcmp to compile (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Salil03 committed May 10, 2020
1 parent a680bca commit b297971
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/primitives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { readFileSync, existsSync } from "fs";
export const ATTIC = "attic";
export const TESTCASES = "testcases";
export const LANGUAGES = "languages";
export const FRIEND_TIMEOUT = 10_000;
export const FRIEND_TIMEOUT = 50_000; //increase limit to allow wcmp to compile TODO: Allow checker to compile without time limit
export const MAIN_SOLUTION_BINARY = "sol";
export const CHECKER_BINARY = "checker";
export const BRUTE_BINARY = "brute";
Expand Down
5 changes: 3 additions & 2 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ export function preRun(
path: string,
timeout: number
): Option<Execution> {
debug("pre-run", code);
debug("pre-run", code, output, path, timeout); //add more debug

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

Expand Down

0 comments on commit b297971

Please sign in to comment.