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 摘要。