soulsync/tests/repair_jobs
BoulderBadgeDad bd3c5860f6 preview-clip job: fix scan hang + report live per-track progress
two field-reported issues: clicking the job sat at 'Starting…' with Scanned: 0 forever and
never showed the current track.

1) HANG — spotify get_track_details() defaults to allow_fallback=True, which scrapes the
   configured metadata source when the official API isn't authed (HiFi users). that scrape is
   slow and blocked the scan loop on the first track. now pass allow_fallback=False (official
   only — fast, returns None cleanly) and fall through to iTunes/MusicBrainz.
2) NO LIVE UPDATE — progress was only pushed every 5 tracks via update_progress, never the
   current item. now report_progress() every track (phase + 'artist — title' + scanned/total)
   plus a start phase, so the UI moves and shows what it's checking.

also made the test track ids INTEGER to match production (tracks.id is INTEGER PRIMARY KEY),
exercising the real str(id) finding -> WHERE id=? round-trip. 5 tests green.
2026-06-27 16:24:31 -07:00
..
test_quality_upgrade.py fix(repair): merge duplicate _fix_quality_upgrade + update tests (#896) 2026-06-24 21:40:04 +02:00
test_relocate.py #704: add "Relocate" fix for AcoustID mismatches — retag + restage for re-import 2026-06-11 12:01:05 -07:00
test_short_preview_track.py preview-clip job: fix scan hang + report live per-track progress 2026-06-27 16:24:31 -07:00