Session contexts support network and disk peers
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- backend, distributed-systems
Direzione di ricerca
Read morango/sync/context.py, especially NetworkSessionContext at lines 311-351, and the NetworkSessionContextTestCase in tests/testapp/tests/sync/test_context.py. Run the existing context and characterization tests first. Done means both subclasses meet the stated stage, state-update, inheritance, and backoff requirements, with the characterization and full suites passing unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Overview
A PeerSessionContext base class holds the peer side of a sync, with one subclass for each connection type. This work is part of milestone M4 (shared operations refactor).
Background & Motivation
Operations select the context that they handle by its type. Today only NetworkSessionContext represents a peer. A shared base class lets one operation handle both network and disk peers. The subclasses let an operation handle one connection type only, when that is necessary.
This task changes no behavior for network syncs.
Design: spec. Plan: implementation plan, Task 12.
Description & Expected Outcomes
PeerSessionContext gets the body of the current NetworkSessionContext. It holds the connection and keeps the stage state in memory. NetworkSessionContext and a new DiskSessionContext become subclasses of it. DiskSessionContext uses a maximum backoff interval of 1 second.
Deliverables & Contracts
The contexts deliver these capabilities:
NetworkSessionContextis a subclass ofPeerSessionContext, and its behavior does not change.DiskSessionContextis a subclass ofPeerSessionContext, withmax_backoff_intervalequal to 1.- Both subclasses start at stage
initializingand update their state in the same way.
Acceptance Criteria
-
issubclass(NetworkSessionContext, PeerSessionContext)is true. -
DiskSessionContext(connection).stageequalstransfer_stages.INITIALIZING. - The
update_statetests forNetworkSessionContextalso pass forDiskSessionContext. - The characterization suite passes without edits.
- The full test suite passes.
Technical Pointers & Architecture
- Target Components / Context:
morango/sync/context.py,NetworkSessionContextat:311-351. - Related Patterns:
NetworkSessionContextTestCaseattests/testapp/tests/sync/test_context.py:252. - Data Model & Schema Considerations: None.
- Resilience & Failure Modes: None.
Notes & Tradeoffs
- Dependencies: Blocked by: #370 (
Connectioninterface). Blocks: #374, #383. - Testing Requirements: This is a refactor task. The characterization suite from #363 and #364 must pass without edits.
- Tradeoffs & Alternatives Considered: One context class for all peers makes connection-specific operations impossible. The subclasses keep that option.
- Compatibility & Migrations:
NetworkSessionContextkeeps its name, so code that checks for it still works.
Metadata
- Complexity: Low
- Target Branch: release-v0.9.x
AI Usage
Drafted with Claude (Claude Code) from the approved design spec and implementation plan. The author reviewed the requirements, and the code references were checked against the release-v0.9.x codebase.
- Lingua principale
- Python
- Stelle
- 15
- Fork
- 27
- Merge medio
- 6g 44m
- PR unite (30g)
- 13
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di learningequality/morango
-
Document disk export and deprecations in the changelogForse di nuovo libera @ArpitaSamanta10 l’ha presa 14 giorni fa e non c’è nessuna pull request aperta. ApertaDEV: dev-ops DEV: distributions DOCS: developer
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
learningequality/morango#387 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
DEV: backend DEV: dev-ops TAG: unit tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
learningequality/morango#385 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 54/100
learningequality/morango#425 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 1/100
learningequality/morango#424 ·
I maintainer di solito rispondono entro 1 giorno
-
DEV: backend P2 - normal
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
learningequality/morango#416 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di learningequality/morango
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Forse già presa @cestercian l’ha presa oggi. Apertacomp/cli P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#162259 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
AOSSIE-Org/PictoPy#1802 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
community-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA-NeMo/Run#727 ·
I maintainer di solito rispondono entro 1 giorno
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
pytorch/pytorch#207247 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno