Skip to content

chore: codeQL fixes#1028

Merged
Roopan-Microsoft merged 7 commits into
microsoft:dev-v4from
Rafi-Mohammad-69:psl-codeqlfixes
Jun 17, 2026
Merged

chore: codeQL fixes#1028
Roopan-Microsoft merged 7 commits into
microsoft:dev-v4from
Rafi-Mohammad-69:psl-codeqlfixes

Conversation

@Rafi-Mohammad-69

Copy link
Copy Markdown
Contributor

Purpose

fixed the codeQL issues

Does this introduce a breaking change?

  • Yes
  • No

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Updates async test cases around task cancellation and async context manager cleanup behavior.

Changes:

  • Tweaks cancellation tests to assign the awaited task result to _ inside assertRaises.
  • Refactors a database async context-manager exception test to run inside a nested async function invoked under pytest.raises.

Reviewed changes

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

File Description
src/tests/backend/v4/config/test_settings.py Adjusts how awaited task results are handled in cancellation tests.
src/tests/backend/common/database/test_database_base.py Refactors exception/cleanup test for an async database context manager.

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

Comment thread src/tests/backend/v4/config/test_settings.py
Comment thread src/tests/backend/v4/config/test_settings.py
Comment thread src/tests/backend/common/database/test_database_base.py
Copilot AI review requested due to automatic review settings June 11, 2026 18:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread src/tests/backend/v4/config/test_settings.py
Comment thread src/tests/backend/v4/config/test_settings.py
Comment thread src/tests/backend/common/database/test_database_base.py
@Roopan-Microsoft Roopan-Microsoft merged commit 4ff1586 into microsoft:dev-v4 Jun 17, 2026
2 checks passed
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.

3 participants