feat(experiment): public transaction hook on _ModelRegistryBase

Aperta
#236 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
aws, python
Ambito
backend, cloud

Direzione di ricerca

Start with _ModelRegistryBase, Local, and S3 in packages/pipekit-experiment/src/pipekit_experiment/registry.py, then trace the writes in store and read the Recipe registries design page. Add the transaction hook and backend fault-injection tests; done means a failure after weights.bin leaves no visible local entry, with the requested README, docstring, and design-page updates.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:code priority:p2 type:feature

Problem / Request

store writes operator, weights, metadata and tag as four writes; a crash between them leaves a partial entry. Give backends a hook to group them.

Proposed API

# proposed (H)
class _ModelRegistryBase:
    @contextlib.contextmanager
    def _transaction(self, message: str) -> Iterator[None]:
        yield                                   # default: no-op (today)

References & Existing Code

Implementation Steps

  1. Wrap the writes in store in self._transaction(...).
  2. Local: write to a temp dir and rename on exit.
  3. S3: write the tag last (already) and document the guarantee.

Definition of Done

  • A failure injected after weights.bin leaves no visible entry in the local registry.

Testing

Fault-injection test per backend.

Documentation

  • Docstring with a doctested example; a line in the package README.
  • Update the design page's status for this workstream.

Relationships

  • Parent: #234
  • Blocks: #237

Pins checked: geostack 343d60e, geotoolz 640670c, pipekit 9e86a56.


Generated by Claude Code

Lingua principale
Python
Stelle
0
Fork
0
Merge medio
3h 50m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jejjohnson/pipekit

Tutte le issue di jejjohnson/pipekit

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.