Skip to content

fix: backport error handling fixes to existing connectors#47

Merged
daviburg merged 5 commits into
mainfrom
hallvictoria/add-error-handling
Jun 30, 2026
Merged

fix: backport error handling fixes to existing connectors#47
daviburg merged 5 commits into
mainfrom
hallvictoria/add-error-handling

Conversation

@hallvictoria

@hallvictoria hallvictoria commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Comprehensive error handling improvements across 14 connector clients with +205 new tests, source bug fixes, and code quality improvements.

Fixes #38, #39

Changes

Fixed

  • outlook.py & office365.py: Fixed variable shadowing in respond_to_event_async methods (mypy error)
  • teams.py: Fixed incorrect ConnectorException signature in 2 webhook methods (used keyword args instead of positional)
  • test_arm.py: Fixed 3 test failures (wrong URL assertion, incorrect method parameters)

Changed

  • 14 connector source files: Regenerated with SDK Generator fixes
  • 15 test files: Added error handling tests for HTTP 4xx/5xx responses
  • test_code_quality.py: Added flake8 and mypy validation tests

Updated

  • README.md — Updated test counts for 14 connectors (+205 tests total)
  • CHANGELOG.md — Documented changes under [Unreleased]

Testing

  • Unit tests added/updated
  • All existing tests pass (pytest)
  • Linting passes (flake8 src/ tests/)
  • Manual testing (describe below if applicable)

Checklist

  • Code follows the project's coding conventions
  • No modifications to generated connector files in src/azure/connectors/*.py (unless regenerated)
  • Type hints added to all public API signatures
  • Documentation updated (if behavior changed)
  • CHANGELOG.md updated (if user-facing change)

@hallvictoria hallvictoria marked this pull request as ready for review June 25, 2026 20:37
@hallvictoria hallvictoria requested a review from a team as a code owner June 25, 2026 20:38

@daviburg daviburg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Dobby] Review comments from this session. Model used: GitHub Copilot.

I checked the PR content against the committed BPM generator on origin/master (642cbe383e). The main issue is generated-code provenance: several PR changes do not match what the committed BPM generator can emit.

Additional finding that is not cleanly inline-anchorable: GENERATION.md documents --directClient --python, but BPM origin/master does not parse a --python flag. The committed CLI supports --directClient --language=python and the legacy --pythonDirectClient; with --directClient --python, ParseDirectClientLanguage defaults to C#. Please update all five examples in this file so the documented regeneration command actually produces Python output.

Comment thread src/azure/connectors/teams.py Outdated
Comment thread src/azure/connectors/office365.py Outdated
Comment thread GENERATION.md
@daviburg

Copy link
Copy Markdown
Member

[Dobby] Review comments from this session. Model used: GitHub Copilot.

I checked the PR content against the committed BPM generator on origin/master (642cbe383e). The main issue is generated-code provenance: several PR changes do not match what the committed BPM generator can emit.

Additional finding that is not cleanly inline-anchorable: GENERATION.md documents --directClient --python, but BPM origin/master does not parse a --python flag. The committed CLI supports --directClient --language=python and the legacy --pythonDirectClient; with --directClient --python, ParseDirectClientLanguage defaults to C#. Please update all five examples in this file so the documented regeneration command actually produces Python output.

The model used was GPT-5.5
I am investigating why the agent failed to properly report.

@daviburg daviburg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Dobby] One generator/output mismatch found; see inline comment.

Comment thread src/azure/connectors/office365.py

@daviburg daviburg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional convention/codegen review findings after checking the BPM generator PR alongside this backport.

Comment thread src/azure/connectors/teams.py Outdated
Comment thread tests/test_code_quality.py Outdated
Comment thread tests/test_code_quality.py Outdated
@daviburg daviburg merged commit 4886019 into main Jun 30, 2026
17 checks passed
@daviburg daviburg deleted the hallvictoria/add-error-handling branch June 30, 2026 16:00
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.

Error Handling: void operations silently swallow server errors

2 participants