Skip to content

Commit 3beac24

Browse files
committed
nix-eval-job: disable eval-cache
in ci, there is no cache, so it's just overhead and prints warnings.
1 parent b09586b commit 3beac24

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/run.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def run_eval_test(gcroot_dir: Path, jobs: int) -> list[str]:
6969
failed_profiles = []
7070
cmd = [
7171
"nix-eval-jobs",
72-
"--extra-experimental-features",
73-
"flakes",
72+
"--extra-experimental-features", "flakes",
73+
"--option", "eval-cache", "false",
7474
"--gc-roots-dir",
7575
str(gcroot_dir),
7676
"--max-memory-size",
@@ -97,11 +97,11 @@ def run_eval_test(gcroot_dir: Path, jobs: int) -> list[str]:
9797
failed_profiles.append(attr)
9898
error_msg = data['error']
9999
formatted_error = format_nix_error(error_msg)
100-
100+
101101
# Output for terminal
102102
print(f"{RED}FAIL {attr}:{RESET}", file=sys.stderr)
103103
print(f"{RED}{error_msg}{RESET}", file=sys.stderr)
104-
104+
105105
# Output for GitHub Actions
106106
if is_github_actions():
107107
github_error(
@@ -127,14 +127,14 @@ def main() -> None:
127127
print(f"\n{RED}{failure_msg}{RESET}")
128128
for profile in failed_profiles:
129129
print(f" '{profile}'")
130-
130+
131131
# GitHub Actions summary
132132
if is_github_actions():
133133
github_error(
134134
f"{failure_msg} {', '.join(failed_profiles)}",
135135
title="Hardware Profile Tests Failed"
136136
)
137-
137+
138138
sys.exit(1)
139139

140140

0 commit comments

Comments
 (0)