Skip to content

fix: Merging Dev v4 changes to main#783

Merged
Roopan-Microsoft merged 56 commits intomainfrom
dev-v4
Feb 3, 2026
Merged

fix: Merging Dev v4 changes to main#783
Roopan-Microsoft merged 56 commits intomainfrom
dev-v4

Conversation

@Priyanka-Microsoft
Copy link
Contributor

Purpose

  • ...
    This pull request primarily introduces a .coveragerc configuration file to manage code coverage reporting, and makes minor adjustments to package initialization files. The main focus is on improving test coverage management and cleaning up unnecessary docstrings.

Test coverage configuration:

  • Added a .coveragerc file to configure code coverage measurement, specifying which files and directories to include or omit, and setting up reporting rules.

Package initialization cleanup:

  • Added minimal __init__.py files to src/ and src/backend/ to mark them as Python packages. [1] [2]
  • Removed an unnecessary docstring from src/tests/mcp_server/__init__.py to clean up the test package initialization.

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

Dhruvkumar-Microsoft and others added 30 commits December 10, 2025 10:43
- Implemented unit tests for the OrchestrationManager class to ensure proper functionality.
- Mocked external dependencies including Azure services and agent framework components.
- Covered various scenarios including orchestration initialization, agent creation, and event processing.
- Added tests for error handling in orchestration execution and WebSocket communication.
- Ensured proper participant mapping and workflow execution in orchestration methods.
…les mocking with MagicMock and removing platform-specific skip markers.
…and clarity. Update test cases to ensure proper environment setup and enhance coverage for user language endpoint functionality.
…ve platform-specific skip markers and enhance mock setup for cross-platform compatibility.
…erage for user language endpoint functionality
Kingshuk-Microsoft and others added 6 commits January 28, 2026 16:50
…erter to use real classes for improved type handling and consistency
- Implemented unit tests for the OrchestrationManager class to ensure proper functionality.
- Mocked external dependencies including Azure services and agent framework components.
- Covered various scenarios including orchestration initialization, agent creation, and event processing.
- Ensured error handling and edge cases are tested, including failures in client and manager creation.
- Verified that orchestration runs correctly with different input types and handles WebSocket errors gracefully.
"""Test that event tracking is called appropriately."""
# This test verifies the event tracking integration
with patch.object(mock_event_utils, 'track_event_if_configured') as mock_track:
mock_approval = MockPlanApprovalResponse(
import pytest
import os
import logging
from unittest.mock import patch, MagicMock, AsyncMock
import os
import logging
from unittest.mock import patch, MagicMock, AsyncMock
from azure.identity import DefaultAzureCredential, ManagedIdentityCredential
import logging
from unittest.mock import patch, MagicMock, AsyncMock
from azure.identity import DefaultAzureCredential, ManagedIdentityCredential
from azure.cosmos import CosmosClient
from unittest.mock import patch, MagicMock, AsyncMock
from azure.identity import DefaultAzureCredential, ManagedIdentityCredential
from azure.cosmos import CosmosClient
from azure.ai.projects.aio import AIProjectClient
import pytest
import base64
import json
import logging
import logging
import sys
import os
import importlib.util
import sys
import importlib.util
from unittest.mock import patch, MagicMock, AsyncMock, Mock
from typing import Any, Dict, Optional, Union
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request merges v4 development changes into the main branch, primarily focusing on test infrastructure improvements and minor code cleanup. The changes introduce comprehensive test coverage configuration, add extensive unit tests for backend services, and remove unused code and imports from both frontend and backend components.

Changes:

  • Added .coveragerc configuration file for test coverage management
  • Created extensive unit tests for v4 backend services (agents, orchestration, API services)
  • Removed unused imports and commented-out code from frontend and backend
  • Updated GitHub Actions workflow to use the new coverage configuration
  • Added package initialization files for proper Python module structure

Reviewed changes

Copilot reviewed 46 out of 53 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.coveragerc Configures code coverage reporting, excluding test directories and specifying source paths
.github/workflows/test.yml Updates test workflow to use new coverage config and enforce 80% coverage threshold
src/__init__.py, src/backend/__init__.py Package initialization files for proper Python module structure
src/tests/backend/v4/**/*.py New comprehensive test files for v4 backend components including agents, services, and API endpoints
src/backend/v4/api/router.py Adds missing return statements to API endpoints
src/frontend/src/**/*.tsx Removes unused imports and conditional rendering in frontend components
src/backend/v4/magentic_agents/common/lifecycle.py Removes commented-out cleanup code
src/backend/v4/common/services/team_service.py Removes commented-out user verification code
Comments suppressed due to low confidence (1)

src/frontend/src/components/common/TeamSelector.tsx:1

  • The removal of the conditional wrapper {tempSelectedTeam && (...)} around the dialog actions means the "Continue" button is now always rendered, even when no team is selected. While the button is properly disabled via the disabled prop, this changes the UX by showing a disabled button instead of hiding it. Ensure this is the intended behavior.
import React, { useState } from 'react';

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 46 out of 53 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/frontend/src/components/common/TeamSelector.tsx:1

  • The removal of the conditional wrapper {tempSelectedTeam && (...)} means the Continue button will now always be rendered, even when tempSelectedTeam is null/undefined. This could lead to unexpected UI behavior since the button is disabled but still visible. Consider whether the button should be hidden entirely when no team is selected, or if the current approach of showing a disabled button is the desired behavior.
import React, { useState } from 'react';

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Roopan-Microsoft Roopan-Microsoft merged commit 38194fb into main Feb 3, 2026
10 checks passed
@github-actions
Copy link

github-actions bot commented Mar 2, 2026

🎉 This PR is included in version 4.0.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants