Skip to content

Address backend config review feedback#77

Merged
timkpaine merged 1 commit into
mainfrom
tkp/composable-backends
Jun 22, 2026
Merged

Address backend config review feedback#77
timkpaine merged 1 commit into
mainfrom
tkp/composable-backends

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Fix correctness issues found in review of the composable backend configs.

  • Discord: request the privileged message_content intent in the preset so guild command text is delivered; document the Developer Portal requirement.
  • Symphony: complete the preset with host, bot_username, and certificate auth via a combined .pem (bot_certificate_path), which the bare key-content preset could not start; update docs and examples.
  • Commands: fix to_chatom_user() on already-chatom.User targets in the built-in echo command and in the Writing-Commands guide; pass targets straight to mention_users. Update echo tests to use real users instead of mocks that hid the bug.
  • Docs: keep the built-in commands in the custom-command registration example and note that command modules must be importable on PYTHONPATH.
  • Tests: add gateway/backend composition coverage over every pre-canned gateway plus ad-hoc +backend=[...] selection.

Fix correctness issues found in review of the composable backend configs.

- Discord: request the privileged `message_content` intent in the preset
  so guild command text is delivered; document the Developer Portal
  requirement.
- Symphony: complete the preset with `host`, `bot_username`, and
  certificate auth via a combined `.pem` (`bot_certificate_path`), which
  the bare key-content preset could not start; update docs and examples.
- Commands: fix `to_chatom_user()` on already-`chatom.User` targets in
  the built-in echo command and in the Writing-Commands guide; pass
  targets straight to `mention_users`. Update echo tests to use real
  users instead of mocks that hid the bug.
- Docs: keep the built-in commands in the custom-command registration
  example and note that command modules must be importable on PYTHONPATH.
- Tests: add gateway/backend composition coverage over every pre-canned
  gateway plus ad-hoc `+backend=[...]` selection.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

97 tests  +8   97 ✅ +8   2s ⏱️ -1s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 289b202. ± Comparison against base commit a388841.

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.41%. Comparing base (a388841) to head (289b202).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
+ Coverage   65.49%   66.41%   +0.92%     
==========================================
  Files          29       30       +1     
  Lines        1672     1694      +22     
  Branches      170      171       +1     
==========================================
+ Hits         1095     1125      +30     
+ Misses        545      537       -8     
  Partials       32       32              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timkpaine timkpaine marked this pull request as ready for review June 22, 2026 02:31
@timkpaine timkpaine requested a review from ptomecek as a code owner June 22, 2026 02:31
@timkpaine timkpaine merged commit 62d72c1 into main Jun 22, 2026
5 checks passed
@timkpaine timkpaine deleted the tkp/composable-backends branch June 22, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant