Commit graph

7 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
422db09142 Keep fail_ci_if_error as false to avoid blocking on transient codecov issues
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2026-01-03 11:01:17 +00:00
copilot-swe-agent[bot]
6bb006fbe1 Address all review comments: fix test counts, remove unused imports, improve workflow
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2026-01-03 10:59:56 +00:00
Claude
90a70a85eb
Achieve 100% test coverage with comprehensive improvements
Enhanced test suite from 97% to 100% coverage with 173 passing tests.

## New Features

### 1. Error Handling Tests (3 tests)
- test_add_message_handles_read_error_gracefully
- test_add_message_handles_write_error_gracefully
- test_clear_user_history_handles_permission_error
- test_logger_reuses_existing_handlers

Coverage: memory.py 91% → 100%, utils.py 98% → 100%

### 2. Integration Tests (9 tests) - test_integration.py
- test_mention_to_response_workflow: Full message flow
- test_conversation_context_preserved: Multi-turn conversations
- test_config_to_components_integration: Component initialization
- test_error_recovery_workflow: Graceful error handling
- test_mention_detection_integration_with_nicknames
- test_memory_limit_enforcement_in_workflow
- test_ambiguous_greeting_workflow
- test_logger_integration_with_memory
- test_logger_integration_with_ai_provider
- test_config_validation_workflow

### 3. Parameterized Tests (45 tests)
- 18 mention detection test cases
- 17 greeting detection test cases
- 8 content extraction test cases
- Covers edge cases, unicode, nicknames, false positives

### 4. GitHub Actions CI Workflow
- Multi-Python version testing (3.9, 3.10, 3.11, 3.12)
- Automated coverage reporting
- Code quality checks (Black, isort, flake8)
- Codecov integration
- Coverage badge generation

## Test Statistics

- Tests: 116 → 173 (+49% increase)
- Coverage: 97% → 100% (+3pp)
- Execution time: ~1.1 seconds
- All components: 100% coverage

## Files Modified

- tests/test_utils.py: Added parameterized tests and error handling
- tests/test_memory.py: Added error handling tests
- tests/test_integration.py: NEW - Full integration test suite
- tests/README.md: Updated documentation
- .github/workflows/test.yml: NEW - CI/CD automation
2026-01-03 10:04:38 +00:00
Kenearos
ab437d2905
Delete Dependency Review workflow
Removed the Dependency Review workflow configuration.
2026-01-02 21:37:32 +01:00
Kenearos
92fb10860a
Merge branch 'main' into claude/search-todo-start-Alr4l 2026-01-02 21:16:47 +01:00
Claude
c8d09969df
Add comprehensive GitHub Actions CI/CD workflows
Implemented automated testing and quality assurance pipelines:

Workflows added:
- python-package.yml: Main CI pipeline
  * Multi-OS testing (Ubuntu, Windows, macOS)
  * Python 3.9-3.12 compatibility testing
  * Linting with flake8
  * Code formatting checks with black
  * Type checking with mypy
  * Import and compilation tests
  * Unit tests for core components

- codeql.yml: Security scanning
  * Weekly automated security analysis
  * CodeQL vulnerability detection
  * Extended security and quality queries

- dependency-review.yml: Dependency safety
  * Automatic dependency vulnerability checks
  * License compliance verification
  * Blocks moderate+ severity issues

- pr-labeler.yml: PR automation
  * Auto-labels based on changed files
  * PR size labeling (xs/s/m/l/xl)
  * Metadata extraction for better organization

- welcome.yml: Community engagement
  * Welcomes first-time contributors
  * Provides helpful guidelines
  * Improves contributor experience

Configuration:
- labeler.yml: Label mapping for automatic categorization

All workflows include proper permissions and error handling.
2026-01-02 11:29:19 +00:00
Kenearos
2ae9e09923
Add GitHub Actions workflow for Python package
This workflow installs Python dependencies, runs linting with flake8, and executes tests with pytest across multiple Python versions.
2026-01-02 12:26:56 +01:00