Spaces:
Running
Running
Commit History
-
Pin dependencies and add CI on pull requests
ClaudeUnverified signatureTwo related gaps found while writing the "coming back after a month" runbook: - requirements.txt/requirements-dev.txt had no version pins at all. A fresh `pip install` any time in the future would silently grab whatever's newest on PyPI, with no way to tell "my change broke this" from "an unrelated dependency update broke this." Pinned every package to the version this codebase is actually tested against, with a range up to its next breaking boundary (next major for a stable package, next minor for a 0.x one). playwright and duckduckgo_search are pinned tighter (patch-only): playwright ships in lockstep with a specific browser revision - a mismatch is a real failure mode we already hit and worked around in tests/conftest.py - and duckduckgo_search has a history of breaking changes between versions. pytest-asyncio (dev-only) is pinned the same way, for the same reason: its event-loop-scope semantics bit us once already this project (see the `browser` fixture's c…2d3711f -
Make the HF Space deploy fail loudly on a concurrent-write collision
ClaudeUnverified signaturegit push --force to the Space was a blind overwrite: it never checked what was currently there, so if anyone else has independent push access to the same Space (direct git push, HF's web editor, their own CI) and deploys around the same time, whichever push landed second would win silently. The loser gets no error - git push --force always succeeds regardless of what it's overwriting - so neither side would know a collision happened without manually diffing the Space's history after the fact. Switched to `git push --force-with-lease`, which refuses to push if the remote's current value doesn't match what we last fetched - i.e. someone else changed it since we looked. Needs an explicit `git fetch space main` right before the push: --force-with-lease compares against the local remote-tracking ref, and this job adds the `space` remote fresh each run with nothing to compare against otherwise (it would either fail every single deploy, or on some git versions silently fall back to acting li…56b0d37 -
Gate the HF Space deploy on tests passing (item 5 from review)
ClaudeUnverified signaturedeploy-to-hf.yml previously went straight from checkout to `git push --force` on every push to main - no lint, no type-check, no test run in between. Added a `test` job (install deps, install Playwright's Chromium, run pytest) and made `deploy` depend on it via `needs: test`, so a commit that breaks the test suite no longer reaches the production HF Space.caf91fb
-
Add GitHub Actions workflow to deploy to HF Space on push to main (#1)
Unverified signaturePushes the repo to huggingface.co/spaces/OrganizedProgrammers/SERPent using the HF_TOKEN repo secret. Claude-Session: https://claude.ai/code/session_012sXQyRk3EZHbYHas8fQsiS Co-authored-by: Claude <noreply@anthropic.com>cd869cb