All checks were successful
Smoke Test / smoke (pull_request) Successful in 28s
- Add scripts/upstream_watch.py for monitoring upstream repositories - Add .github/workflows/upstream-watch.yml for weekly automated monitoring - Add docs/upstream-watch.md for documentation - Add scripts/run_upstream_watch.sh for easy execution - Add scripts/test_upstream_watch.py for testing Addresses issue #15: [P4] Upstream llama.cpp / Ollama TurboQuant watch Features: 1. Monitor llama.cpp, Ollama, and ggml repositories 2. Search for TurboQuant/PolarQuant/QJL keywords 3. Check issues, PRs, and release notes 4. Generate text and JSON reports 5. Weekly GitHub Action for continuous monitoring 6. Automated issue creation when findings detected Usage: - Run monitor: python3 scripts/upstream_watch.py --days 30 - JSON output: python3 scripts/upstream_watch.py --format json - Weekly monitoring: GitHub Action runs every Monday at 9:00 AM UTC When upstream lands: 1. Detection: Monitor will detect mentions 2. Evaluation: Compare upstream vs fork 3. Decision: Migrate if upstream is better Closes #15
40 lines
1.2 KiB
Bash
Executable File
40 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# Run TurboQuant upstream watch monitor
|
|
# Usage: ./run_upstream_watch.sh [days]
|
|
|
|
set -e
|
|
|
|
# Default to 30 days if not specified
|
|
DAYS=${1:-30}
|
|
|
|
echo "Running TurboQuant upstream watch for last $DAYS days..."
|
|
|
|
# Check if GitHub token is set
|
|
if [ -z "$GITHUB_TOKEN" ]; then
|
|
echo "Warning: GITHUB_TOKEN not set. Using unauthenticated API (60 req/hour limit)."
|
|
echo "Set GITHUB_TOKEN for higher rate limits."
|
|
echo ""
|
|
fi
|
|
|
|
# Run the monitor
|
|
python3 scripts/upstream_watch.py --days "$DAYS" --format text --output upstream-report.md
|
|
|
|
# Also generate JSON report
|
|
python3 scripts/upstream_watch.py --days "$DAYS" --format json --output upstream-report.json
|
|
|
|
echo ""
|
|
echo "Reports generated:"
|
|
echo " - upstream-report.md (text format)"
|
|
echo " - upstream-report.json (JSON format)"
|
|
echo ""
|
|
|
|
# Check if there are findings
|
|
FINDINGS=$(python3 -c "import json; data=json.load(open('upstream-report.json')); print(data['total_found'])")
|
|
|
|
if [ "$FINDINGS" -gt 0 ]; then
|
|
echo "⚠️ Found $FINDINGS TurboQuant mentions in upstream repositories"
|
|
echo "Review upstream-report.md for details"
|
|
else
|
|
echo "✅ No TurboQuant mentions found in upstream repositories"
|
|
echo "Recommendation: Continue using fork, re-check in $DAYS days"
|
|
fi |