Skip to content

chore: dev to main merge#549

Merged
Roopan-Microsoft merged 40 commits intomainfrom
dev
Apr 20, 2026
Merged

chore: dev to main merge#549
Roopan-Microsoft merged 40 commits intomainfrom
dev

Conversation

@Shreyas-Microsoft
Copy link
Copy Markdown
Collaborator

Purpose

This pull request makes significant improvements to the GitHub Actions workflows for deployment, testing, and automation. The main changes include standardizing Azure authentication to use federated credentials, enhancing security permissions, introducing environment scoping for jobs, and improving deployment flexibility across different operating systems. Additionally, several workflows have been refactored for clarity and maintainability.

Authentication and Security Improvements

  • Replaced all manual az login commands with the azure/login@v2 action, leveraging federated credentials for more secure and streamlined Azure authentication across all workflows. [1] [2] [3] [4] [5] [6] [7]
  • Added id-token: write to workflow permissions to support OIDC-based authentication for Azure login. [1] [2] [3]

Workflow Structure and Environment Scoping

  • Added environment: production to key jobs in deployment, build, and test workflows for better environment scoping and auditability. [1] [2] [3] [4] [5] [6] [7]

Deployment Flexibility and Refactoring

  • Renamed .github/workflows/deploy-linux.yml to .github/workflows/deploy-v2.yml and introduced a runner_os input, allowing deployments to target either ubuntu-latest or windows-latest based on user selection. The workflow now validates and propagates this input throughout the deployment process. [1] [2] [3] [4] [5]
  • Updated workflow triggers and file references to match the new naming and structure.

Code and Permission Cleanup

  • Removed redundant permissions blocks and inlined them where necessary to reduce clutter and follow best practices. [1] [2] [3] [4] [5] [6] [7] [8]

Testing Workflow Enhancements

  • Simplified test execution in test-automation-v2.yml by removing the --headed option from pytest runs, likely to improve compatibility with headless environments. [1] [2] [3]

These changes collectively modernize the CI/CD pipeline, improve security, and make the workflows more adaptable and maintainable.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Prachig-Microsoft and others added 26 commits March 25, 2026 14:48
feat: added support for deploying local changes
ci: Refactor pipeline, add oidc auth and integrate smoke testing automation
- Merged latest dev branch into psl-unit-test-cps-v2
- Fixed ContentProcessorAPI test for credential_scopes parameter
- Fixed ContentProcessorWorkflow logging and app configuration tests
- Added comprehensive tests for content_process_models.py (100% coverage)
- Added comprehensive tests for content_process_service.py (98.81% coverage)
- All modules now exceed 80% coverage threshold:
  * ContentProcessor: 86.68%
  * ContentProcessorAPI: 84.86%
  * ContentProcessorWorkflow: 92.13%
…flow

- Added services/ directory to pytest command in test.yml
- This ensures the new test_content_process_models.py and test_content_process_service.py are run in CI
- Fixes coverage from 70.68% to 92.13%
Comment thread tests/e2e-test/pages/HomePageV2.py Fixed
Comment thread tests/e2e-test/pages/HomePageV2.py Fixed
Comment thread tests/e2e-test/pages/HomePageV2.py Fixed
chore: add CodeQL Advanced security scanning workflow
Comment thread azure.yaml Outdated
result = helper.count_documents({"key": "value"})
assert result == 42

result = helper.count_documents()
# The @handler decorator in agent_framework validates type annotations at
# import time, which fails in the test environment. Patch it to a no-op
# before importing the executor module.
_orig_handler = sys.modules.get("agent_framework", MagicMock()).handler # type: ignore[union-attr]

# Import sitecustomize if available
try:
import sitecustomize # noqa: F401
# Import sitecustomize if available
try:
import sitecustomize # noqa: F401
except Exception:
assert a is b

def test_with_factory(self) -> None:
ctx = AppContext().add_singleton(_S1, lambda: _S1())
Shreyas-Microsoft and others added 2 commits April 20, 2026 14:32
revert: Restore commented schema and metadata in azure.yaml
@Roopan-Microsoft Roopan-Microsoft merged commit a6e0b38 into main Apr 20, 2026
13 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.14.0 🎉

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.

7 participants