Commit a67fd682 authored by Aryan Noshirvani's avatar Aryan Noshirvani

Add remix engine tests, fix stale mock test, run CI on dev pushes

- tests/test_remix.py: exercises the /remix API contract (validation,
  job bookkeeping, 404 for unknown jobs) with identify_audio and the
  actual render pipeline mocked out - deliberately not running real
  Demucs/Gemini in CI, that's proven manually above.
- Removed test_music.py's test for the old /music/remix/batch mock
  stub, which no longer exists.
- test_social.py used a hardcoded "valid_token_xyz" cookie that the
  previous commit's auth rework removed; switched it to HTTP Basic
  using the configured DOCS_USERNAME/DOCS_PASSWORD.
- conftest.py sets safe default DOCS_USERNAME/DOCS_PASSWORD for the
  test run specifically, so tests don't depend on CI having real
  secrets configured.
- .gitlab-ci.yml: install CPU-only torch before requirements.txt
  (otherwise pip pulls a multi-GB CUDA build for nothing), and run the
  test stage on pushes to dev too, not just main/merge_requests.
- Adds the dev-instance systemd unit (deploy/systemd/, mirrors how
  stax_bot.service is tracked) for reference.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
parent 5e8ddd13
Pipeline #987 passed with stage
in 7 minutes and 6 seconds