test: e2e for sandbox create retry under mutation lock contention

Ouverte
#5,899 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
38/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
postgresql, rust
Domaine
testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
Rust
Étoiles
21.5k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de NVIDIA/OpenShell

Toutes les issues de NVIDIA/OpenShell

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.