Skip to content

fix(iris): poll pending_reason in scheduling diagnostic e2e test#3653

Merged
ravwojdyla merged 1 commit intomainfrom
agent/20260313-fix-3652
Mar 14, 2026
Merged

fix(iris): poll pending_reason in scheduling diagnostic e2e test#3653
ravwojdyla merged 1 commit intomainfrom
agent/20260313-fix-3652

Conversation

@ravwojdyla-agent
Copy link
Copy Markdown
Contributor

Summary

  • Fix flaky test_dashboard_scheduling_diagnostic by polling pending_reason until the scheduler produces a CPU-specific message, instead of a single-shot check that races the scheduler loop.

Fixes #3652

Test plan

  • ./infra/pre-commit.py --all-files --fix passes
  • CI e2e-smoke-test passes (was flaking before this change)

🤖 Generated with Claude Code

The test was flaky because it checked `pending_reason` immediately after
job submission, before the scheduler loop had evaluated the job. On slow
CI runners the reason was still "Pending scheduler feedback" (no "cpu"
substring). Poll with a deadline instead.

Fixes #3652
@ravwojdyla ravwojdyla merged commit 652da43 into main Mar 14, 2026
24 of 25 checks passed
@ravwojdyla ravwojdyla deleted the agent/20260313-fix-3652 branch March 14, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-generated Created by automation/agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: test_dashboard_scheduling_diagnostic races scheduler feedback

3 participants