Commit graph

1 commit

Author SHA1 Message Date
ggq-admin
9ab9c1a9cc fix: Fix rate limiter initialization bug and add CI/CD
Critical fixes before public release:

1. Rate Limiter Bug Fix:
   - Fixed bucket reset_at initialization
   - Was: datetime.now() (immediately in past)
   - Now: datetime.now() + timedelta (future time)
   - Bug caused bucket to reset on 2nd request
   - Tests now pass: 3/4 passed, 1 skipped, 0 failed

2. Test Suite Improvements:
   - Added proper skip handling for MCP integration test
   - Clear messaging for expected skips in test environments
   - Tests exit with success when no failures (skips are OK)

3. CI/CD Pipeline:
   - .github/workflows/ci.yml - GitHub Actions workflow
   - Security tests, secret scanning, code quality checks
   - Fails fast on security test failures

4. Pre-commit Hooks:
   - .pre-commit-config.yaml for local development
   - Secret detection (detect-secrets)
   - Code quality (ruff, bandit)
   - Prevents token file commits

All security tests now passing. Ready for public release.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 01:15:11 +01:00