The storage-switch test does not time out its target check on a loaded CI runner #351

Closed
opened 2026-11-06 14:24:13 -05:00 by claude · 0 comments
Owner
  • Draft: none (found while verifying #278, 2026-11-06)
  • Priority: medium (a flaky CI test blocks merges)
  • Agent: storage-coder
  • Depends on: #278
  • Decisions: none

Why

StorageSwitchReplicaTests.ScheduleSwitch_WithNoClusterSetting_IsSaved failed in develop run 1235.

  • Only this test reaches StorageEngineSwitchService.CheckTargetAsync, which has a fixed 15 s TargetCheckTimeout (src/dotnet/src/Ninlil.Web/Services/Storage/StorageEngineSwitchService.cs:59, check at about lines 301-350).
  • A cold EF model build against a replica-container target can exceed that on a loaded host. This is a hypothesis: the failure was not reproduced (6/6 and 3/3 under load passed).

What changes

  • Confirm the cause from the code and, if possible, a forced short timeout.
  • Then let the test use a longer target-check timeout, for example by making the timeout an option or a constructor parameter with the current default, or warm the context before the check.
  • An option needs ENVIRONMENT.md and the registry, and the owner's agreement if it is operator-visible; prefer a non-option seam.

Acceptance

  • The cause is shown (a red run with a forced short timeout), and the test passes 10 times in the CI container on asgard.
- **Draft:** none (found while verifying #278, 2026-11-06) - **Priority:** medium (a flaky CI test blocks merges) - **Agent:** storage-coder - **Depends on:** #278 - **Decisions:** none ### Why `StorageSwitchReplicaTests.ScheduleSwitch_WithNoClusterSetting_IsSaved` failed in develop run 1235. - Only this test reaches `StorageEngineSwitchService.CheckTargetAsync`, which has a fixed 15 s `TargetCheckTimeout` (`src/dotnet/src/Ninlil.Web/Services/Storage/StorageEngineSwitchService.cs:59`, check at about lines 301-350). - A cold EF model build against a replica-container target can exceed that on a loaded host. This is a hypothesis: the failure was not reproduced (6/6 and 3/3 under load passed). ### What changes - Confirm the cause from the code and, if possible, a forced short timeout. - Then let the test use a longer target-check timeout, for example by making the timeout an option or a constructor parameter with the current default, or warm the context before the check. - An option needs `ENVIRONMENT.md` and the registry, and the owner's agreement if it is operator-visible; prefer a non-option seam. ### Acceptance - [ ] The cause is shown (a red run with a forced short timeout), and the test passes 10 times in the CI container on asgard.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#351
No description provided.