Merge origin/dev (remix engine, live rooms, channels, custom console) into dev
Reconciles the hardening/caching/deploy-pipeline work on this branch with the previously-unmerged remix engine, Pass-the-Aux room websocket infra, Channels router, and custom API console from origin/dev. Conflict resolution notes: - Kept the current JWT/session-based auth (src/core/security.py) over origin/dev's older session-string-header auth; adapted its unique test coverage (chats/music endpoint, discovery listen/swipe content paths, library search/stream/lyrics/ playlist content paths, remix-tree tests) to the current auth_as fixture instead of dropping that coverage. - Kept origin/dev's branded login-page + session-cookie docs auth (superset of the plain HTTP Basic version), and its recursive _build_remix_tree over a flat one- level version. - Replaced the stopgap _run_lightweight_migrations()/create_all-at-import-time in database.py with Alembic, which both sides now share as the single source of truth for schema; generated a new migration for the 7 tables origin/dev added (Correction, RemixJob, Channel, ChannelFollow, VibeSet, VibeSetTrack, AudioStory, ChannelShowcase). - Fixed a real bug surfaced by the merge: remix_engine.py and remix.py hardcoded /root/antigrav-stax-audio/* for stem cache/temp/downloads, a different directory than storage.py's LOCAL_STORAGE_ROOT-based paths that main.py's /downloads mount actually serves - remix downloads would have 404'd. Both now share storage.py's paths. - deploy.sh and .gitlab-ci.yml now install CPU-only torch and libsndfile1, needed by the remix engine's demucs/librosa dependency chain. - test_channels.py::test_showcase_owner_only still posted to /social/posts without auth headers; updated to use the auth_as fixture like the rest of the suite. 104 tests pass (up from 40 pre-merge + origin/dev's own suite, combined and de-duplicated). Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
| ... | @@ -10,6 +10,9 @@ google-generativeai==0.8.3 | ... | @@ -10,6 +10,9 @@ google-generativeai==0.8.3 |
| pedalboard==0.9.8 | pedalboard==0.9.8 | ||
| fastapi>=0.110.0 | fastapi>=0.110.0 | ||
| uvicorn>=0.28.0 | uvicorn>=0.28.0 | ||
| websockets>=13.0 # uvicorn's WebSocket protocol implementation - without this, uvicorn | |||
| # silently has no WebSocket support at all (no error, connections just | |||
| # fail); needed for the Pass-the-Aux room websocket routes | |||
| sqlalchemy>=2.0.0 | sqlalchemy>=2.0.0 | ||
| httpx>=0.27.0 | httpx>=0.27.0 | ||
| python-multipart>=0.0.9 | python-multipart>=0.0.9 | ||
| ... | @@ -19,3 +22,15 @@ pyrogram>=2.0.106 | ... | @@ -19,3 +22,15 @@ pyrogram>=2.0.106 |
| tgcrypto>=1.2.5 | tgcrypto>=1.2.5 | ||
| pyjwt>=2.8.0 | pyjwt>=2.8.0 | ||
| alembic>=1.13.0 | alembic>=1.13.0 | ||
| # Remix engine. Install torch CPU-only *before* this file, this VPS has no GPU: | |||
| # pip install torch --index-url https://download.pytorch.org/whl/cpu | |||
| # Otherwise pip pulls the default CUDA wheel (multiple GB, useless here). | |||
| # numpy is pinned <2: this VPS's virtualized CPU exposes no SSE3/SSE4/AVX at all, | |||
| # and numpy>=2's default wheels require the x86-64-v2 baseline and segfault/RuntimeError | |||
| # on import here. 1.26.4 is what the rest of this project already runs on successfully. | |||
| numpy==1.26.4 | |||
| scipy==1.13.1 | |||
| demucs>=4.0.1 | |||
| librosa>=0.10.2 | |||
| soundfile>=0.12.1 |
src/api/routers/channels.py
0 → 100644
src/api/routers/remix.py
0 → 100644
src/api/static/login.html
0 → 100644
src/services/remix_engine.py
0 → 100644
src/services/room_manager.py
0 → 100644
tests/fixtures/tiny.mp3
0 → 100644
File added
tests/fixtures/tone.wav
0 → 100644
File added
tests/test_channels.py
0 → 100644
tests/test_database.py
0 → 100644
tests/test_docs_auth.py
0 → 100644
tests/test_remix.py
0 → 100644
tests/test_remix_engine.py
0 → 100644
Please
register
or
sign in
to comment