• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Alan-Jowett / CoPilot-For-Consensus / 20155523940
82%

Build:
DEFAULT BRANCH: main
Ran 12 Dec 2025 03:43AM UTC
Jobs 1
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Dec 2025 03:42AM UTC coverage: 63.982% (-9.2%) from 73.152%
20155523940

push

github

web-flow
feat: Add ValidatingEventSubscriber and integrate schema validation in parsing service (#101)

* feat: add ValidatingEventSubscriber and integrate schema validation in parsing service

- Add ValidatingEventSubscriber wrapper for inbound event validation
- Integrate ValidatingEventSubscriber in parsing service
- Add copilot_schema_validation to parsing service dependencies
- Use ValidatingEventPublisher for outbound events
- Use ValidatingDocumentStore for storage operations
- Provides comprehensive schema validation defense across event lifecycle

* fix: address PR review comments for ValidatingEventSubscriber

- Fix connect() return type to match EventSubscriber interface (returns None, raises on failure)
- Use Tuple from typing module for type hint consistency
- Make subscribe() parameters required (event_type and callback)
- Add comprehensive test suite for ValidatingEventSubscriber (25 test cases)
  - Tests for initialization, validation logic, callback wrapping
  - Tests for strict/non-strict modes and error handling
  - Tests for edge cases (missing schemas, malformed events)
  - Integration tests for full event subscription flow

* fix: correct validate_json mock patch path in tests

- Patch copilot_schema_validation.validate_json instead of copilot_events.validating_subscriber.validate_json
- validate_json is imported dynamically inside _validate_event method, not at module level
- Fixes AttributeError in test suite (8 failing tests)

---------

Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>

69 of 76 new or added lines in 2 files covered. (90.79%)

286 of 447 relevant lines covered (63.98%)

0.64 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
90.67
adapters/copilot_events/copilot_events/validating_subscriber.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.11 - 20155523940.1 12 Dec 2025 03:43AM UTC 9
63.98
GitHub Action Run
Source Files on build 20155523940
  • Tree
  • List 9
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20155523940
  • de63f31d on github
  • Prev Build on main (#20155523918)
  • Next Build on main (#20173254532)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc