Skip to content

Broaden exception handling in test_matches_schema_store tests#1009

Merged
nathanjmcdougall merged 1 commit intomainfrom
1008-make-test_matches_schema_store-tests-less-flaky
Oct 13, 2025
Merged

Broaden exception handling in test_matches_schema_store tests#1009
nathanjmcdougall merged 1 commit intomainfrom
1008-make-test_matches_schema_store-tests-less-flaky

Conversation

@nathanjmcdougall
Copy link
Copy Markdown
Collaborator

No description provided.

@nathanjmcdougall nathanjmcdougall linked an issue Oct 13, 2025 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Oct 13, 2025

CodSpeed Performance Report

Merging #1009 will not alter performance

Comparing 1008-make-test_matches_schema_store-tests-less-flaky (8f834b0) with main (bd036f6)

Summary

✅ 2 untouched

@nathanjmcdougall nathanjmcdougall marked this pull request as ready for review October 13, 2025 20:55
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

This PR broadens exception handling in schema validation tests by replacing specific ConnectionError exceptions with the more general RequestException base class. This ensures that various HTTP-related errors (timeouts, DNS failures, etc.) are properly caught and handled during schema fetching operations.

  • Updated exception handling from ConnectionError to RequestException in two test files
  • Maintains existing test skip behavior in CI environments when network issues occur

Reviewed Changes

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

File Description
tests/usethis/_integrations/pre_commit/test_pre_commit_schema.py Broadened exception handling to catch all request-related exceptions
tests/usethis/_integrations/ci/bitbucket/test_bitbucket_schema.py Broadened exception handling to catch all request-related exceptions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nathanjmcdougall nathanjmcdougall merged commit 2d2b00f into main Oct 13, 2025
18 checks passed
@nathanjmcdougall nathanjmcdougall deleted the 1008-make-test_matches_schema_store-tests-less-flaky branch October 13, 2025 20:57
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.

Make test_matches_schema_store tests less flaky

2 participants