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

Alan-Jowett / CoPilot-For-Consensus / 21308345625
78%

Build:
DEFAULT BRANCH: main
Ran 24 Jan 2026 03:26AM UTC
Jobs 27
Files 160
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

24 Jan 2026 03:22AM UTC coverage: 77.571%. First build
21308345625

push

github

web-flow
Standardize duplicate document handling across all document store adapters (#1016)

* Initial plan

* Add DocumentAlreadyExistsError exception and update handlers

- Add DocumentAlreadyExistsError exception to document_store module
- Update Azure Cosmos DB adapter to raise DocumentAlreadyExistsError instead of generic DocumentStoreError
- Update parsing service to catch DocumentAlreadyExistsError and handle as duplicate
- Add tests for new exception handling in messages and threads

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Update Azure Cosmos DB test to expect DocumentAlreadyExistsError

- Update test_insert_document_resource_exists to expect DocumentAlreadyExistsError
- Import DocumentAlreadyExistsError in test file
- Update test docstring to reflect the new specific exception type

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Update MongoDB adapter to raise DocumentAlreadyExistsError

- Import DocumentAlreadyExistsError in MongoDocumentStore
- Catch pymongo DuplicateKeyError and raise DocumentAlreadyExistsError
- Update docstring to document new exception
- Maintains backward compatibility by handling pymongo not being installed

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Remove redundant duplicate key error fallback logic

- Remove _is_duplicate_key_error helper function (no longer needed)
- Remove fallback handling for raw DuplicateKeyError exceptions
- All duplicate detection now uses standardized DocumentAlreadyExistsError
- Update tests to use DocumentAlreadyExistsError instead of DuplicateKeyError
- Remove pymongo.errors.DuplicateKeyError import from tests

Co-authored-by: Alan-Jowett <20480683+Alan-Jowett@users.noreply.github.com>

* Refactor MongoDB DuplicateKeyError handling to avoid nested try-catch

- Move pymongo.errors.DuplicateKeyError import to module level with try-except
- Replace nested try-catch in insert_document with simpl... (continued)

27 of 30 new or added lines in 5 files covered. (90.0%)

8591 of 11075 relevant lines covered (77.57%)

0.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.81
adapters/copilot_storage/copilot_storage/inmemory_document_store.py
2
85.26
adapters/copilot_storage/copilot_storage/mongo_document_store.py
Jobs
ID Job ID Ran Files Coverage
1 copilot_error_reporting - 21308345625.1 24 Jan 2026 03:32AM UTC 5
75.34
GitHub Action Run
2 copilot_config - 21308345625.2 24 Jan 2026 03:29AM UTC 33
63.41
GitHub Action Run
3 copilot_chunking - 21308345625.3 24 Jan 2026 03:32AM UTC 2
91.91
GitHub Action Run
4 copilot_message_bus - 21308345625.4 24 Jan 2026 03:29AM UTC 13
71.19
GitHub Action Run
5 copilot_vectorstore - 21308345625.5 24 Jan 2026 03:29AM UTC 8
74.09
GitHub Action Run
6 copilot_storage - 21308345625.6 24 Jan 2026 03:30AM UTC 8
75.56
GitHub Action Run
7 chunking - 21308345625.7 24 Jan 2026 03:27AM UTC 2
82.75
GitHub Action Run
8 copilot_auth - 21308345625.8 24 Jan 2026 03:28AM UTC 12
63.87
GitHub Action Run
9 copilot_archive_fetcher_integration - 21308345625.9 24 Jan 2026 03:26AM UTC 9
47.46
GitHub Action Run
10 reporting - 21308345625.10 24 Jan 2026 03:29AM UTC 2
84.48
GitHub Action Run
11 copilot_archive_fetcher - 21308345625.11 24 Jan 2026 03:30AM UTC 9
68.81
GitHub Action Run
12 copilot_schema_validation - 21308345625.12 24 Jan 2026 03:32AM UTC 7
85.23
GitHub Action Run
13 copilot_metrics - 21308345625.13 24 Jan 2026 03:30AM UTC 7
72.95
GitHub Action Run
14 embedding - 21308345625.14 24 Jan 2026 03:28AM UTC 2
80.63
GitHub Action Run
15 orchestrator - 21308345625.15 24 Jan 2026 03:27AM UTC 6
87.53
GitHub Action Run
16 copilot_consensus - 21308345625.16 24 Jan 2026 03:31AM UTC 3
95.48
GitHub Action Run
17 parsing - 21308345625.17 24 Jan 2026 03:27AM UTC 7
81.79
GitHub Action Run
18 copilot_embedding - 21308345625.18 24 Jan 2026 03:32AM UTC 7
91.81
GitHub Action Run
19 copilot_vectorstore_integration - 21308345625.19 24 Jan 2026 03:28AM UTC 8
33.08
GitHub Action Run
20 summarization - 21308345625.20 24 Jan 2026 03:29AM UTC 2
91.28
GitHub Action Run
21 ingestion - 21308345625.21 24 Jan 2026 03:29AM UTC 5
79.85
GitHub Action Run
22 copilot_summarization - 21308345625.22 24 Jan 2026 03:29AM UTC 8
90.61
GitHub Action Run
23 copilot_draft_diff - 21308345625.23 24 Jan 2026 03:30AM UTC 6
90.98
GitHub Action Run
24 copilot_schema_validation_integration - 21308345625.24 24 Jan 2026 03:27AM UTC 7
42.05
GitHub Action Run
25 copilot_storage_integration - 21308345625.25 24 Jan 2026 03:28AM UTC 8
34.15
GitHub Action Run
26 copilot_message_bus_integration - 21308345625.26 24 Jan 2026 03:26AM UTC 13
32.55
GitHub Action Run
27 copilot_logging - 21308345625.27 24 Jan 2026 03:31AM UTC 6
92.64
GitHub Action Run
Source Files on build 21308345625
  • Tree
  • List 160
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21308345625
  • 3ada6e24 on github
  • Prev Build on main (#21308293585)
  • Next Build on main (#21308450853)
  • 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