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

Alan-Jowett / CoPilot-For-Consensus / 20937037234
81%

Build:
DEFAULT BRANCH: main
Ran 12 Jan 2026 10:21PM UTC
Jobs 27
Files 129
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 Jan 2026 10:20PM UTC coverage: 80.655% (+0.001%) from 80.654%
20937037234

push

github

web-flow
fix: strict event validation for archive ingestion and parsing (#845)

* fix: strict event validation for archive ingestion and parsing

- startup_requeue: Add missing event envelope fields (event_id, version)
  * Generated event_id as UUID for each requeue event
  * Set version to 1.0.0 for ArchiveIngested schema compliance
  * Moved uuid import to module level per PEP 8

- parsing service: Enforce required metadata in event payload
  * Added _build_archive_ingested_event_data() validation method
  * Reject events missing source_name or source_type (required for thread correlation)
  * Validate source_type is one of valid enum: [rsync, imap, http, local]
  * Clear error messages point to ingestion service responsibility

- Result: Zero validation failures, 393/393 IETF-IPSEC archives processed successfully

* test: Update test fixtures with valid source_type enum values

- Changed test_requeue_builds_correct_event_data: source_type 'mbox' -> 'local'
- Added missing source_type field to test_requeue_handles_missing_archive_id
- Fixes compatibility with strict validation in parsing service
- All 93 parsing tests passing with 85% coverage

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Signed-off-by: GitHub Copilot <copilot@github.com>

* Address PR #845 review comments

- Add test coverage for event_id and version fields in startup_requeue tests
  - Verify event_id is valid UUID string
  - Verify version equals '1.0.0'

- Improve _build_archive_ingested_event_data method
  - Update docstring for clarity on validation purpose
  - Extract VALID_SOURCE_TYPES as module constant
  - Remove unnecessary lambda wrapper (use method directly)

- Add comprehensive unit tests for validation logic
  - Test successful validation with all fields
  - Test ValueError when source_name missing
  - Test ValueError when source_type missing
  - Test ValueError when source_type invalid
  - Test all valid enum values accepted

- Fix ingestion service
  - Simplify cache ref... (continued)

13 of 18 new or added lines in 2 files covered. (72.22%)

1 existing line in 1 file now uncovered.

6721 of 8333 relevant lines covered (80.66%)

0.9 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
74.03
-0.43% ingestion/app/service.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
74.03
-0.43% ingestion/app/service.py
Jobs
ID Job ID Ran Files Coverage
1 ingestion - 20937037234.1 12 Jan 2026 10:23PM UTC 5
78.6
GitHub Action Run
2 copilot_logging - 20937037234.2 12 Jan 2026 10:22PM UTC 7
96.36
GitHub Action Run
3 copilot_storage - 20937037234.3 12 Jan 2026 10:24PM UTC 7
73.31
GitHub Action Run
4 copilot_archive_fetcher_integration - 20937037234.4 12 Jan 2026 10:23PM UTC 9
46.48
GitHub Action Run
5 copilot_draft_diff - 20937037234.5 12 Jan 2026 10:24PM UTC 6
97.89
GitHub Action Run
6 copilot_schema_validation_integration - 20937037234.6 12 Jan 2026 10:23PM UTC 7
39.52
GitHub Action Run
7 reporting - 20937037234.7 12 Jan 2026 10:23PM UTC 2
90.0
GitHub Action Run
8 copilot_summarization - 20937037234.8 12 Jan 2026 10:22PM UTC 8
95.69
GitHub Action Run
9 copilot_embedding - 20937037234.9 12 Jan 2026 10:22PM UTC 7
96.36
GitHub Action Run
10 copilot_message_bus - 20937037234.10 12 Jan 2026 10:24PM UTC 13
65.32
GitHub Action Run
11 copilot_config - 20937037234.11 12 Jan 2026 10:21PM UTC 6
80.72
GitHub Action Run
12 copilot_message_bus_integration - 20937037234.12 12 Jan 2026 10:22PM UTC 13
34.8
GitHub Action Run
13 copilot_consensus - 20937037234.13 12 Jan 2026 10:24PM UTC 3
95.91
GitHub Action Run
14 copilot_archive_fetcher - 20937037234.14 12 Jan 2026 10:24PM UTC 9
69.14
GitHub Action Run
15 copilot_storage_integration - 20937037234.15 12 Jan 2026 10:22PM UTC 7
30.79
GitHub Action Run
16 copilot_schema_validation - 20937037234.16 12 Jan 2026 10:22PM UTC 7
84.73
GitHub Action Run
17 chunking - 20937037234.17 12 Jan 2026 10:23PM UTC 2
86.7
GitHub Action Run
18 copilot_vectorstore_integration - 20937037234.18 12 Jan 2026 10:22PM UTC 8
19.21
GitHub Action Run
19 copilot_vectorstore - 20937037234.19 12 Jan 2026 10:23PM UTC 8
73.33
GitHub Action Run
20 copilot_chunking - 20937037234.20 12 Jan 2026 10:24PM UTC 2
93.33
GitHub Action Run
21 parsing - 20937037234.21 12 Jan 2026 10:23PM UTC 7
85.62
GitHub Action Run
22 copilot_error_reporting - 20937037234.22 12 Jan 2026 10:24PM UTC 5
75.91
GitHub Action Run
23 copilot_auth - 20937037234.23 12 Jan 2026 10:25PM UTC 12
69.0
GitHub Action Run
24 copilot_metrics - 20937037234.24 12 Jan 2026 10:24PM UTC 7
43.89
GitHub Action Run
25 embedding - 20937037234.25 12 Jan 2026 10:24PM UTC 2
90.17
GitHub Action Run
26 orchestrator - 20937037234.26 12 Jan 2026 10:24PM UTC 2
84.38
GitHub Action Run
27 summarization - 20937037234.27 12 Jan 2026 10:24PM UTC 2
95.43
GitHub Action Run
Source Files on build 20937037234
  • Tree
  • List 129
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20937037234
  • 0293fad9 on github
  • Prev Build on main (#20934787988)
  • Next Build on main (#20938733652)
  • 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