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

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

Build:
DEFAULT BRANCH: main
Ran 18 Dec 2025 03:57PM UTC
Jobs 28
Files 109
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

18 Dec 2025 03:56PM UTC coverage: 83.002% (+0.1%) from 82.866%
20342941650

push

github

web-flow
Fix RabbitMQ channel reconnection (resolves #392) (#393)

* Fix RabbitMQ channel reconnection (resolves #392)

Implement automatic reconnection in RabbitMQPublisher to handle
closed channels and connection errors during event publishing.

Changes:
- Add _is_connected() method to check connection and channel state
- Add _reconnect() method with circuit breaker logic to prevent storms
- Enhance publish() to detect connection errors and auto-reconnect
- Retry publish operation once after successful reconnection
- Re-declare queues automatically after reconnection
- Add reconnection parameters: max_reconnect_attempts, reconnect_delay
- Add comprehensive test suite for reconnection logic

This prevents the 'Channel is closed' errors that required manual
service restarts, ensuring reliable event publishing even when
RabbitMQ connections are disrupted.

Fixes #392

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

* copilot_events: switch connect() to exceptions across publisher/subscriber; update RabbitMQ adapters and validating wrappers; update unit tests. Reconnect now catches exceptions. Resolves #392

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

* copilot_events: add unit test for publish connection-error path when reconnection fails; assert ConnectionError with message

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

* copilot_events: implement exponential backoff in RabbitMQPublisher._reconnect() and align log output

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

* copilot_events: make declare_queue raise exceptions; aggregate errors in declare_queues

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

* docs(copilot_events): reflect exception-based API for connect/declare_queue/publish; clarify declare_queues returns bool

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

* tests(copilot_events): add coverage for retry publish failure after successful reconnection; remove unused Mock import

Signed-off-by... (continued)

90 of 107 new or added lines in 8 files covered. (84.11%)

2 existing lines in 1 file now uncovered.

4507 of 5430 relevant lines covered (83.0%)

0.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
73.74
1.62% adapters/copilot_events/copilot_events/rabbitmq_subscriber.py
16
69.03
14.87% adapters/copilot_events/copilot_events/rabbitmq_publisher.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
69.03
14.87% adapters/copilot_events/copilot_events/rabbitmq_publisher.py
Jobs
ID Job ID Ran Files Coverage
1 reporting - 20342941650.1 18 Dec 2025 03:58PM UTC 2
88.45
GitHub Action Run
2 reporting-ui - 20342941650.2 18 Dec 2025 03:58PM UTC 1
0.0
GitHub Action Run
3 copilot_vectorstore_integration - 20342941650.3 18 Dec 2025 03:57PM UTC 7
23.15
GitHub Action Run
4 copilot_storage - 20342941650.4 18 Dec 2025 03:58PM UTC 5
65.07
GitHub Action Run
5 copilot_embedding - 20342941650.5 18 Dec 2025 03:57PM UTC 3
92.16
GitHub Action Run
6 chunking - 20342941650.6 18 Dec 2025 03:58PM UTC 2
83.25
GitHub Action Run
7 copilot_events - 20342941650.7 18 Dec 2025 03:59PM UTC 9
70.78
GitHub Action Run
8 copilot_archive_fetcher - 20342941650.8 18 Dec 2025 03:59PM UTC 9
68.27
GitHub Action Run
9 copilot_archive_fetcher_integration - 20342941650.9 18 Dec 2025 03:58PM UTC 9
46.99
GitHub Action Run
10 copilot_consensus - 20342941650.10 18 Dec 2025 03:57PM UTC 3
98.64
GitHub Action Run
11 copilot_storage_integration - 20342941650.11 18 Dec 2025 03:58PM UTC 5
50.68
GitHub Action Run
12 copilot_logging - 20342941650.12 18 Dec 2025 03:58PM UTC 5
92.45
GitHub Action Run
13 embedding - 20342941650.13 18 Dec 2025 03:57PM UTC 2
90.64
GitHub Action Run
14 copilot_config - 20342941650.14 18 Dec 2025 03:58PM UTC 10
77.57
GitHub Action Run
15 copilot_schema_validation - 20342941650.15 18 Dec 2025 03:58PM UTC 6
90.13
GitHub Action Run
16 copilot_metrics - 20342941650.16 18 Dec 2025 03:58PM UTC 5
56.83
GitHub Action Run
17 copilot_events_integration - 20342941650.17 18 Dec 2025 03:58PM UTC 9
44.9
GitHub Action Run
18 copilot_schema_validation_integration - 20342941650.18 18 Dec 2025 03:58PM UTC 6
49.78
GitHub Action Run
19 copilot_vectorstore - 20342941650.19 18 Dec 2025 03:58PM UTC 7
69.89
GitHub Action Run
20 copilot_auth - 20342941650.20 18 Dec 2025 03:58PM UTC 7
98.98
GitHub Action Run
21 parsing - 20342941650.21 18 Dec 2025 03:58PM UTC 6
83.62
GitHub Action Run
22 copilot_summarization - 20342941650.22 18 Dec 2025 03:59PM UTC 8
93.42
GitHub Action Run
23 orchestrator - 20342941650.23 18 Dec 2025 03:58PM UTC 2
65.68
GitHub Action Run
24 copilot_draft_diff - 20342941650.24 18 Dec 2025 03:59PM UTC 6
98.8
GitHub Action Run
25 summarization - 20342941650.25 18 Dec 2025 03:58PM UTC 2
91.28
GitHub Action Run
26 copilot_chunking - 20342941650.26 18 Dec 2025 04:00PM UTC 2
93.75
GitHub Action Run
27 copilot_reporting - 20342941650.27 18 Dec 2025 03:58PM UTC 5
73.17
GitHub Action Run
28 ingestion - 20342941650.28 18 Dec 2025 03:58PM UTC 2
80.44
GitHub Action Run
Source Files on build 20342941650
  • Tree
  • List 109
  • Changed 8
  • Source Changed 8
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20342941650
  • 5c21bbfb on github
  • Prev Build on main (#20340116186)
  • Next Build on main (#20343589834)
  • 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