test: e2e for sandbox create retry under mutation lock contention

未關閉
#5,899 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
38/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
postgresql, rust
領域
testing

研究方向

Start by reading the #5745 review thread to see how the lock was held manually, then find where MUTATION_LOCK_TIMEOUT and --no-create-retry are handled in the CLI/SDK and covered by the existing mock suites. Next, inspect the e2e testkit to see how a suite gets a handle on the gateway's Postgres, since holding the advisory lock is the missing capability. Done means a new e2e in an existing lane that acquires the lock directly, asserts sandbox create retries to success after it frees, and asserts --no-create-retry fails fast.

由索引模型根據 Issue 內容生成。

描述

state:triage-needed

Title: test: e2e for sandbox create retry under mutation lock contention

User Story

I run multi-replica HA gateways and rely on sandbox create retrying through MUTATION_LOCK_TIMEOUT. The behavior is covered by mock suites today; I want an e2e that exercises it against a real gateway holding a real lock.

Description

An e2e that holds the gateway's sandbox mutation advisory lock (the way the manual validation of #5745 did, by acquiring the lock directly against the gateway's Postgres), then asserts that sandbox create retries and completes once the lock frees, and that --no-create-retry fails fast.

Context

  • Requested in the #5745 review round; the SDK and CLI mock suites cover the decision matrix, this guards the wire path.
  • Needs the e2e testkit to reach the gateway's Postgres to hold the lock, which the current suites do not do.

Definition of Done

  • The e2e holds the advisory lock and observes the create retry to success
  • The e2e covers --no-create-retry failing fast
  • It runs in an existing lane without new infrastructure
主要語言
Rust
星號
21.5k
分支
2.1k
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。