Skip to content

Conversation

NirajC-Microsoft
Copy link
Contributor

Purpose

This pull request primarily refactors import paths throughout the test suite to use explicit, absolute imports from the src.backend and src.mcp_server packages. This change improves code clarity, maintainability, and consistency as the project structure evolves. Additionally, the test workflow configuration is updated to ignore more test files during coverage runs, streamlining CI behavior.

Test workflow improvements

  • Updated the .github/workflows/test.yml workflow to ignore additional test files during coverage runs, reducing unnecessary coverage reporting and focusing on relevant tests.

Refactoring import paths in backend tests

  • Changed imports in backend test files (such as test_auth_utils.py, test_sample_user.py, test_health_check.py, test_messages.py, test_config.py, and test_otlp_tracing.py) to use explicit paths from the src.backend package, improving clarity and consistency. [1] [2] [3] [4] [5] [6]

Refactoring import paths in mcp_server and agent tests

  • Updated imports in agent and mcp_server related test files (test_foundry_integration.py, test_factory.py, test_hr_service.py, and test_utils.py) to use absolute paths from src.backend.v3.magentic_agents and src.mcp_server, ensuring proper module resolution. [1] [2] [3] [4]

Minor code cleanup

  • Removed an unnecessary trailing whitespace line in the AgentMessageData model in messages_kernel.py.
  • ...

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

Removed mcp dependency and updated formatting.
NirajC-Microsoft and others added 30 commits October 7, 2025 21:35
Refactored imports and added a successful check helper function for health checks.
Removed duplicate abstract method definition for get_agent_messages.
fix: ignore test_otlp_tracing.py file in test.yml
…eady existed agents are not using the previous resource group connection
fix: added the lifespan of the agent on container stop and checked the already existed agents are not using the previous resource group connection
fix: Unavailable quota handling in quotacheck.sh file
refactor: removes the use of `contextvars` and refactors the codebase to explicitly pass `user_id`
…ipts for users deployed using AVM template (#550)

* updated post deployment scripts for avm deployment

* fix update function call typo

* refactor: improve extraction of deployment outputs in team_config_and_data.sh

* add AVM Post Deployment Guide

* update AVM Post Deployment Guide
feat: UI updates for the Alert Message pop-up when a user attempts to navigate to another page while a plan is in progress
fix: Disable 3 dots option from Default Teams(fix for bug 23528)
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.

4 participants