Skip to content

Fix Azure Functions HTTP trigger bindings for the bridge - #65

Merged
Changyong Gong (chagong) merged 4 commits into
mainfrom
chagong-issuelens-workflow-migration
Nov 24, 2026
Merged

Changyong Gong (chagong) merged 4 commits into
mainfrom
chagong-issuelens-workflow-migration

Conversation

@chagong

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 438e9dd0e74b13044aa03ce27c7d3b782f217378

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ Azure Functions Core Tools loads both routes from the fixed ZIP; unauthenticated requests are rejected by the handlers.
↑ 213 focused tests passed.
↓ The fixed ZIP has not yet been deployed to Azure.
Diagnosis confidence 10/10 ↑ Azure's Python worker reported that request was absent from the trigger binding, and the packaging test reproduced the default req argument.
Evidence fit 10/10 ↑ The indexing error explains why ingress returned HTTP 404 while the Service Bus worker loaded.

Summary

  • Explicitly bind the ingress HTTP triggers to the handlers' request parameter. Azure Functions otherwise defaults to req and fails to index either route.
  • Extend the packaged Function regression test to check the declared trigger argument against the handler signature for both roles. No changes to authorization, queue processing, or the Foundry host.

Validation

  • Reproduced the binding mismatch against the previously merged package; 213 focused tests pass with the fix.
  • Ran the fixed source ZIP with Azure Functions Core Tools. Both routes loaded and returned 401 workflow_not_authorized for unauthenticated requests.

Authenticate the opt-in issue and team-memory workflows at the bridge and invoke the existing Foundry API with managed identity. Keep the agent runtime and direct callers unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 07:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the HTTP trigger binding update.

No open issues 🎉

What changed in this PR

Fixes Azure Functions indexing for the IssueLens automation bridge’s submission and status routes without changing authorization, queue processing, or the Foundry host.

Changes:

  • Explicitly binds both HTTP triggers to the handlers’ request parameter.
  • Extends the packaged-app regression test to verify trigger names match handler parameters for ingress and worker roles.
File Description
tests/​test_automation_bridge.py Adds trigger-to-handler signature checks to the bundle test.
automation_bridge/​function_app.py Sets trigger_arg_name="request" on both HTTP routes.

Review effort: Balanced

@chagong
Changyong Gong (chagong) merged commit c0043f0 into main Nov 24, 2026
8 checks passed
@chagong
Changyong Gong (chagong) deleted the chagong-issuelens-workflow-migration branch November 24, 2026 07:16
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.

2 participants