Extract a 4-method SynthesisStore port
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
Research direction
Start in src/aitts/synthesis.py and inspect how SynthesisPool uses Store, then read the related tests in tests/test_synthesis.py. Define the four-method SynthesisStorePort with the shown signatures, document that claiming must be atomic, and verify that Store still satisfies it and the synthesis tests pass.
Written by the indexing model from the issue text.
Description
The problem
SynthesisPool takes the whole Store and uses four methods:
claim_for_synthesis, synthesis_work_is_active, finish_synthesis, fail_synthesis
The fix
class SynthesisStorePort(Protocol):
def claim_for_synthesis(self) -> SynthesisWork | None: ...
def synthesis_work_is_active(self, work: SynthesisWork) -> bool: ...
def finish_synthesis(self, work: SynthesisWork, *, audio_path: str, duration_ms: int | None) -> None: ...
def fail_synthesis(self, work: SynthesisWork, error: str) -> None: ...
Store satisfies it structurally, unchanged. See #12 for the rationale and
#7 for the worked example.
Worth noting while you are in here
claim_for_synthesis is the atomic claim — one SQL statement that picks the
earliest unclaimed unit and marks it Synthesizing, which is what stops two
workers taking the same work. The port makes that contract explicit rather
than implied by the fact that everyone happens to be sharing one SQLite
connection. Whoever writes a second implementation has to be told that
atomicity is the requirement, so say so in the Protocol's docstring.
Scope
src/aitts/synthesis.pytests/test_synthesis.py
Part of #12.
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 51
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flyingrobots/AI-TTS
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
flyingrobots/AI-TTS#225 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
flyingrobots/AI-TTS#7 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
flyingrobots/AI-TTS#166 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
flyingrobots/AI-TTS#165 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 1-2 days Newbie friendliness 58/100
flyingrobots/AI-TTS#163 ·
Maintainers usually reply within 1 day
All issues in flyingrobots/AI-TTS
Similar issues
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
future-agi/future-agi#6392 ·
Maintainers usually reply within 1 day
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdPossibly taken @prathameshfuke claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
StingraySoftware/HENDRICS#213 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day