1
0
This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Timmy-time-dashboard/.githooks/pre-push
Trip T f6a6c0f62e feat: upgrade to qwen3.5, self-hosted Gitea CI, optimize Docker image
Model upgrade:
- qwen2.5:14b → qwen3.5:latest across config, tools, and docs
- Added qwen3.5 to multimodal model registry

Self-hosted Gitea CI:
- .gitea/workflows/tests.yml: lint + test jobs via act_runner
- Unified Dockerfile: pre-baked deps from poetry.lock for fast CI
- sitepackages=true in tox for ~2s dep resolution (was ~40s)
- OLLAMA_URL set to dead port in CI to prevent real LLM calls

Test isolation fixes:
- Smoke test fixture mocks create_timmy (was hitting real Ollama)
- WebSocket sends initial_state before joining broadcast pool (race fix)
- Tests use settings.ollama_model/url instead of hardcoded values
- skip_ci marker for Ollama-dependent tests, excluded in CI tox envs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 18:36:42 -04:00

19 lines
448 B
Bash
Executable File

#!/usr/bin/env bash
# Pre-push hook: runs the full CI-mirror suite before allowing a push.
# Prevents broken builds from reaching Gitea.
#
# Auto-activated by `make install` via git core.hooksPath.
set -e
echo "Running pre-push gate (tox -e pre-push — mirrors CI exactly)..."
tox -e pre-push
exit_code=$?
if [ "$exit_code" -ne 0 ]; then
echo ""
echo "BLOCKED: pre-push gate failed. Fix the issues above before pushing."
exit 1
fi