Skip to content

chore: resolve remaining PR #242 review feedback (unused imports + uv.lock triggers)#247

Open
Shreyas-Microsoft wants to merge 2 commits into
devfrom
psl-sw/pr242-import-cleanup
Open

chore: resolve remaining PR #242 review feedback (unused imports + uv.lock triggers)#247
Shreyas-Microsoft wants to merge 2 commits into
devfrom
psl-sw/pr242-import-cleanup

Conversation

@Shreyas-Microsoft
Copy link
Copy Markdown
Collaborator

@Shreyas-Microsoft Shreyas-Microsoft commented May 19, 2026

Purpose

This pull request mainly updates test dependencies and cleans up unused imports in several test files. The workflow configuration is also updated to ensure changes to new dependency lock files trigger CI runs.

Workflow and CI improvements:

  • Updated .github/workflows/test.yml to include uv.lock files for both src/backend-api and src/processor in the list of paths that trigger the workflow, ensuring CI runs when dependencies change. [1] [2]

Test code cleanup:

  • Removed unused imports (pytest, patch, and others) from multiple test files to improve code clarity and reduce unnecessary dependencies:
    • src/backend-api/src/tests/sas/storage/test_shared_config.py
    • src/processor/src/tests/unit/libs/agent_framework/test_cosmos_checkpoint_storage.py
    • src/processor/src/tests/unit/libs/agent_framework/test_groupchat_orchestrator_internals.py
    • src/processor/src/tests/unit/libs/mcp_server/test_mermaid_internals.py
    • src/processor/src/tests/unit/services/test_queue_service_internals.py
    • src/processor/src/tests/unit/steps/test_migration_processor_extras.py

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

Shreyas-Microsoft and others added 2 commits May 19, 2026 17:08
Removes ten unused imports identified by github-code-quality on
PR #242:

  - test_cosmos_checkpoint_storage.py: drop `patch`, `pytest`, and
    the unused `cosmos_checkpoint_storage as ccs` alias.
  - test_groupchat_orchestrator_internals.py: drop `AgentResponseStream`
    from the multi-symbol import.
  - test_mermaid_internals.py: drop `json` and `pytest`.
  - test_migration_processor_extras.py: drop `patch` and `pytest`.
  - test_queue_service_internals.py: drop `pytest`.
  - test_shared_config.py: drop `pytest`.

No behavioural change. All affected test files were re-run locally and
still pass (15 backend-api + 213 processor tests).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds `src/backend-api/uv.lock` and `src/processor/uv.lock` to the
`paths` filter for both `push` and `pull_request` triggers so that
dependency lockfile updates (e.g. Dependabot bumps) re-run the test
workflow. Addresses the copilot-pull-request-reviewer comment on
PR #242.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
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

Note

Copilot was unable to run its full agentic suite in this review.

Resolves remaining review feedback from PR #242 by cleaning up unused test imports and ensuring CI runs when uv.lock changes (e.g., Dependabot lockfile-only updates).

Changes:

  • Removed unused imports across several unit test files.
  • Updated GitHub Actions workflow path filters to include src/backend-api/uv.lock and src/processor/uv.lock.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/processor/src/tests/unit/steps/test_migration_processor_extras.py Removes unused pytest and patch imports.
src/processor/src/tests/unit/services/test_queue_service_internals.py Removes unused pytest import.
src/processor/src/tests/unit/libs/mcp_server/test_mermaid_internals.py Removes unused json and pytest imports.
src/processor/src/tests/unit/libs/agent_framework/test_groupchat_orchestrator_internals.py Removes unused AgentResponseStream import.
src/processor/src/tests/unit/libs/agent_framework/test_cosmos_checkpoint_storage.py Removes unused pytest, patch, and alias import.
src/backend-api/src/tests/sas/storage/test_shared_config.py Removes unused pytest import.
.github/workflows/test.yml Adds uv.lock files to workflow paths filters for push/PR triggers.

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

@github-actions
Copy link
Copy Markdown

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL309720893% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
588 0 💤 0 ❌ 0 🔥 23.223s ⏱️

@github-actions
Copy link
Copy Markdown

Coverage

Processor Coverage Report •
FileStmtsMissCoverMissing
TOTAL572571987% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
812 0 💤 0 ❌ 0 🔥 20.239s ⏱️

@Shreyas-Microsoft Shreyas-Microsoft changed the title test+ci: resolve remaining PR #242 review feedback (unused imports + uv.lock triggers) chore: resolve remaining PR #242 review feedback (unused imports + uv.lock triggers) May 19, 2026
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