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

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

Build:
DEFAULT BRANCH: main
Ran 17 Jan 2026 09:49PM UTC
Jobs 27
Files 154
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

17 Jan 2026 09:49PM UTC coverage: 77.972% (+0.02%) from 77.956%
21101385375

push

github

web-flow
Add option to cascade delete associated data when source is removed (#913)

* Initial plan

* Implement cascade delete functionality for source deletion

- Add delete_source_cascade() method in IngestionService
  - Deletes archives from document_store and archive_store
  - Deletes threads, messages, chunks, and summaries
  - Logs warnings for embeddings (handled by embedding service)
  - Comprehensive audit logging for all deletions
  - Emits metrics for observability
- Update delete_source() to support cascade parameter
- Update DELETE /api/sources/{name} endpoint to accept cascade query param
- Add comprehensive tests for cascade delete functionality
- Maintain backward compatibility (cascade=false by default)

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

* Add cascade delete documentation to ingestion README

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

* Address code review feedback: refactor cascade delete

- Add helper function _extract_doc_ids() to reduce code duplication
- Improve terminology: "embeddings associated with deleted chunks"
- Use helper function consistently throughout cascade delete method
- Remove redundant str() conversions when IDs are already strings

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

* Fix indentation and message_ids initialization

- Fix incorrect indentation in logger.warning call
- Initialize message_ids before try block to preserve IDs even if deletion fails
- Ensures chunks can still be queried by message_id in partial failure scenarios

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

* Fix None handling and add comprehensive tests

- Add `or []` to all query_documents calls to handle None returns
- Document cascade delete behavior when it fails (source not deleted)
- Add test for partial failure scenario with non-blocking error handling
- Add test to verify archive_store.delete_archive... (continued)

104 of 129 new or added lines in 2 files covered. (80.62%)

1 existing line in 1 file now uncovered.

7826 of 10037 relevant lines covered (77.97%)

0.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
83.33
0.17% ingestion/app/api.py
24
77.87
0.24% ingestion/app/service.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
77.87
0.24% ingestion/app/service.py
Jobs
ID Job ID Ran Files Coverage
1 copilot_schema_validation - 21101385375.1 17 Jan 2026 09:50PM UTC 7
85.04
GitHub Action Run
2 copilot_archive_fetcher_integration - 21101385375.2 17 Jan 2026 09:51PM UTC 9
47.77
GitHub Action Run
3 copilot_consensus - 21101385375.3 17 Jan 2026 09:50PM UTC 3
95.51
GitHub Action Run
4 copilot_chunking - 21101385375.4 17 Jan 2026 09:50PM UTC 2
91.91
GitHub Action Run
5 summarization - 21101385375.5 17 Jan 2026 09:51PM UTC 2
95.54
GitHub Action Run
6 copilot_vectorstore_integration - 21101385375.6 17 Jan 2026 09:50PM UTC 8
33.13
GitHub Action Run
7 copilot_vectorstore - 21101385375.7 17 Jan 2026 09:52PM UTC 8
74.2
GitHub Action Run
8 copilot_message_bus_integration - 21101385375.8 17 Jan 2026 09:51PM UTC 13
35.28
GitHub Action Run
9 copilot_error_reporting - 21101385375.9 17 Jan 2026 09:50PM UTC 5
75.17
GitHub Action Run
10 copilot_archive_fetcher - 21101385375.10 17 Jan 2026 09:51PM UTC 9
69.42
GitHub Action Run
11 ingestion - 21101385375.11 17 Jan 2026 09:50PM UTC 5
80.58
GitHub Action Run
12 copilot_message_bus - 21101385375.12 17 Jan 2026 09:49PM UTC 13
65.42
GitHub Action Run
13 copilot_auth - 21101385375.13 17 Jan 2026 09:52PM UTC 12
66.07
GitHub Action Run
14 copilot_draft_diff - 21101385375.14 17 Jan 2026 09:51PM UTC 6
90.98
GitHub Action Run
15 copilot_storage_integration - 21101385375.15 17 Jan 2026 09:51PM UTC 8
34.16
GitHub Action Run
16 parsing - 21101385375.16 17 Jan 2026 09:50PM UTC 7
86.03
GitHub Action Run
17 copilot_storage - 21101385375.17 17 Jan 2026 09:52PM UTC 8
75.1
GitHub Action Run
18 copilot_logging - 21101385375.18 17 Jan 2026 09:49PM UTC 6
92.64
GitHub Action Run
19 copilot_config - 21101385375.19 17 Jan 2026 09:52PM UTC 31
64.14
GitHub Action Run
20 copilot_schema_validation_integration - 21101385375.20 17 Jan 2026 09:50PM UTC 7
40.76
GitHub Action Run
21 copilot_metrics - 21101385375.21 17 Jan 2026 09:52PM UTC 7
72.65
GitHub Action Run
22 copilot_summarization - 21101385375.22 17 Jan 2026 09:51PM UTC 8
93.03
GitHub Action Run
23 copilot_embedding - 21101385375.23 17 Jan 2026 09:53PM UTC 7
91.81
GitHub Action Run
24 embedding - 21101385375.24 17 Jan 2026 09:50PM UTC 2
90.17
GitHub Action Run
25 reporting - 21101385375.25 17 Jan 2026 09:50PM UTC 2
89.67
GitHub Action Run
26 orchestrator - 21101385375.26 17 Jan 2026 09:51PM UTC 2
84.38
GitHub Action Run
27 chunking - 21101385375.27 17 Jan 2026 09:51PM UTC 2
84.65
GitHub Action Run
Source Files on build 21101385375
  • Tree
  • List 154
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21101385375
  • 63ce51dd on github
  • Prev Build on main (#21099359269)
  • Next Build on main (#21104939417)
  • 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