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

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

Build:
DEFAULT BRANCH: main
Ran 12 Feb 2026 04:29PM 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

12 Feb 2026 04:27PM UTC coverage: 77.835%. First build
21955084380

push

github

web-flow
fix: reporting UI shows stale results due to in-memory sort buffer overflow (#1164)

* fix: reporting UI shows stale results due to in-memory sort buffer overflow

The reporting service's get_reports() fetched only the first
limit+skip+100 summaries in arbitrary DB order, then sorted
in-memory. With 31K+ summaries, threads newer than ~position 120
in insertion order were never returned to the UI.

Root cause: query_documents() had no sort support, forcing
in-memory sort with a fixed buffer (METADATA_FILTER_BUFFER_SIZE=100).

Fix:
- Add sort_by/sort_order params to DocumentStore.query_documents()
  interface and all implementations (Cosmos, Mongo, InMemory, Validating)
- Denormalize first_message_date/last_message_date from threads into
  summary documents (schema + reporting service process_summary())
- Use DB-level ORDER BY in get_reports() instead of in-memory sort
- Add first_message_date_idx to summaries collection config

Existing 31K summaries were backfilled via a one-time migration script.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* fix: address PR review — init thread_docs, handle None in sort, add sort_by mapping test

- Initialize thread_docs as empty list before try block to prevent
  UnboundLocalError if the thread lookup throws
- Log exception with exc_info=True for diagnosability
- Coerce None values to empty string in InMemory sort key to avoid
  TypeError when documents have null sort fields
- Add test_get_reports_passes_sort_by_to_query_documents verifying
  thread_start_date maps to first_message_date, generated_at passes
  through, and no sort_by passes None

Signed-off-by: Alan Jowett <alanjo@microsoft.com>

* fix: update query_documents wrappers in tests for new sort params

Update all test helper functions that wrap query_documents to accept
the new sort_by/sort_order parameters:
- embedding/tests/test_integration.py: _add_in_operator_support
- chunking/tests/conftest.py: create_query_with_in_support, enhanced_query
- ... (continued)

47 of 66 new or added lines in 6 files covered. (71.21%)

8793 of 11297 relevant lines covered (77.83%)

0.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
83.25
adapters/copilot_storage/copilot_storage/mongo_document_store.py
6
78.71
adapters/copilot_storage/copilot_storage/azure_cosmos_document_store.py
8
83.18
reporting/app/service.py
Jobs
ID Job ID Ran Files Coverage
1 copilot_message_bus - 21955084380.1 12 Feb 2026 04:32PM UTC 13
74.62
GitHub Action Run
2 copilot_logging - 21955084380.2 12 Feb 2026 04:31PM UTC 6
92.64
GitHub Action Run
3 copilot_metrics - 21955084380.3 12 Feb 2026 04:32PM UTC 7
72.95
GitHub Action Run
4 embedding - 21955084380.4 12 Feb 2026 04:32PM UTC 2
81.42
GitHub Action Run
5 copilot_draft_diff - 21955084380.5 12 Feb 2026 04:32PM UTC 6
90.98
GitHub Action Run
6 copilot_archive_fetcher - 21955084380.6 12 Feb 2026 04:31PM UTC 9
68.81
GitHub Action Run
7 copilot_embedding - 21955084380.7 12 Feb 2026 04:30PM UTC 7
91.81
GitHub Action Run
8 copilot_chunking - 21955084380.8 12 Feb 2026 04:31PM UTC 2
91.91
GitHub Action Run
9 copilot_auth - 21955084380.9 12 Feb 2026 04:32PM UTC 12
64.82
GitHub Action Run
10 copilot_config - 21955084380.10 12 Feb 2026 04:32PM UTC 33
63.43
GitHub Action Run
11 copilot_vectorstore - 21955084380.11 12 Feb 2026 04:33PM UTC 8
75.56
GitHub Action Run
12 copilot_vectorstore_integration - 21955084380.12 12 Feb 2026 04:29PM UTC 8
33.28
GitHub Action Run
13 copilot_message_bus_integration - 21955084380.13 12 Feb 2026 04:30PM UTC 13
30.05
GitHub Action Run
14 parsing - 21955084380.14 12 Feb 2026 04:30PM UTC 7
81.9
GitHub Action Run
15 reporting - 21955084380.15 12 Feb 2026 04:30PM UTC 2
83.22
GitHub Action Run
16 orchestrator - 21955084380.16 12 Feb 2026 04:31PM UTC 6
86.25
GitHub Action Run
17 copilot_consensus - 21955084380.17 12 Feb 2026 04:29PM UTC 3
95.48
GitHub Action Run
18 copilot_error_reporting - 21955084380.18 12 Feb 2026 04:30PM UTC 5
75.34
GitHub Action Run
19 copilot_archive_fetcher_integration - 21955084380.19 12 Feb 2026 04:30PM UTC 9
47.46
GitHub Action Run
20 chunking - 21955084380.20 12 Feb 2026 04:30PM UTC 2
82.75
GitHub Action Run
21 ingestion - 21955084380.21 12 Feb 2026 04:32PM UTC 5
79.85
GitHub Action Run
22 copilot_schema_validation - 21955084380.22 12 Feb 2026 04:32PM UTC 7
85.23
GitHub Action Run
23 copilot_storage - 21955084380.23 12 Feb 2026 04:32PM UTC 8
74.86
GitHub Action Run
24 copilot_schema_validation_integration - 21955084380.24 12 Feb 2026 04:30PM UTC 7
42.05
GitHub Action Run
25 summarization - 21955084380.25 12 Feb 2026 04:31PM UTC 2
90.81
GitHub Action Run
26 copilot_summarization - 21955084380.26 12 Feb 2026 04:32PM UTC 8
90.61
GitHub Action Run
27 copilot_storage_integration - 21955084380.27 12 Feb 2026 04:29PM UTC 8
32.56
GitHub Action Run
Source Files on build 21955084380
  • 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 #21955084380
  • 53a30872 on github
  • Prev Build on main (#21933260757)
  • Next Build on main (#21974302233)
  • 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