Skip to content

Commit 57baa95

Browse files
committed
fix: use --cpu 2 in CLI tests to avoid executor non-preemptible heuristic
The executor heuristic auto-tags jobs with ≤1 CPU, ≤4GB RAM, no device as non-preemptible. Test cluster workers are all preemptible, so jobs were stuck PENDING. Bump to 2 CPUs to bypass the heuristic.
1 parent d23f207 commit 57baa95

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/integration/iris/test_cli_dispatch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def _wait_for_job_state(
5555

5656
def test_cli_submit_and_succeed(integration_cluster):
5757
"""Submit a simple command via 'iris job run' CLI and verify it succeeds."""
58+
# Use --cpu 2 to avoid the executor heuristic (≤1 CPU → non-preemptible),
59+
# since test cluster workers are all preemptible.
5860
result = _run_iris_cli(
5961
integration_cluster.url,
6062
"job",
@@ -63,7 +65,7 @@ def test_cli_submit_and_succeed(integration_cluster):
6365
"--job-name",
6466
"itest-cli-ok",
6567
"--cpu",
66-
"1",
68+
"2",
6769
"--memory",
6870
"1g",
6971
"--",
@@ -89,7 +91,7 @@ def test_cli_submit_failing_command(integration_cluster):
8991
"--job-name",
9092
"itest-cli-fail",
9193
"--cpu",
92-
"1",
94+
"2",
9395
"--memory",
9496
"1g",
9597
"--",

0 commit comments

Comments
 (0)