Skip to content

test: Psl unit test cps v2#469

Closed
Prachig-Microsoft wants to merge 82 commits intopsl-cps-v2from
psl-unit-test-cps-v2
Closed

test: Psl unit test cps v2#469
Prachig-Microsoft wants to merge 82 commits intopsl-cps-v2from
psl-unit-test-cps-v2

Conversation

@Prachig-Microsoft
Copy link
Copy Markdown
Contributor

This pull request introduces significant improvements to the Python testing infrastructure and adds comprehensive unit tests for the ContentProcessor backend. The main changes include expanding the GitHub Actions workflow to support separate test jobs for core logic, API, and workflow components, upgrading the Python version, and adding new unit tests and coverage configuration files.

CI Workflow Enhancements:

  • Added new test jobs for API and workflow components in the .github/workflows/test.yml, ensuring each major backend module is tested independently with coverage enforcement.
  • Updated the backend test discovery and execution logic to reflect new directory structures and ignore specific test files as needed.
  • Upgraded the Python version used in CI from 3.11 to 3.12 for all jobs.
  • Included a new branch (psl-unit-test-cps-v2) in the workflow trigger list.

Testing and Coverage Configuration:

  • Added a .coveragerc file in src/tests/ContentProcessor to focus coverage on core business logic and exclude integration components and test files.
  • Added a README.md in src/tests/ContentProcessor to document the structure and usage of the core unit tests.

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

Harsh-Microsoft and others added 17 commits March 26, 2026 19:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fix: Code space Bug fixes for CPS V2
Prajwal-Microsoft and others added 29 commits April 8, 2026 10:04
chore: Add AZD Template Validation Workflow (Scheduled & On-Demand) and Refactor Azure Deployment Pipeline
Remove axios ^1.13.5 from package.json as all HTTP calls use native
fetch via the apiClient.tsx wrapper. Also update documentation
references in .github/instructions/ files.

- Remove axios from package.json dependencies
- Update pnpm-lock.yaml (pnpm install)
- Update test-quality.instructions.md to remove axios references
- Update code-quality.instructions.md to remove axios from import example

Resolves #39065

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
chore: Add AZD Template Validation Workflow (Scheduled & On-Demand) and Refactor Azure Deployment Pipeline
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fix: update ai summary and gap analysis once refresh is clicked
fix: add bicep version requirement (>= 0.33.0) to azure.yaml
chore: remove unused axios dependency from ContentProcessorWeb
Added important notes regarding security restrictions and Azure OpenAI quota availability.
Added note about security restrictions and WAF-supported version.
fix: Filter the paths for pipeline run
docs: Added content in Readme and deploymentguide for SFI issue
fix: Fixed all the code quality issues
feat: added support for deploying local changes
ci: Refactor pipeline, add oidc auth and integrate smoke testing automation
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.