Skip to content

chore(spanner): skip running tests for archived samples#17059

Merged
sakthivelmanii merged 1 commit into
mainfrom
feat-skip-archived-tests
May 13, 2026
Merged

chore(spanner): skip running tests for archived samples#17059
sakthivelmanii merged 1 commit into
mainfrom
feat-skip-archived-tests

Conversation

@sakthivelmanii
Copy link
Copy Markdown
Contributor

@sakthivelmanii sakthivelmanii commented May 13, 2026

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@sakthivelmanii sakthivelmanii requested a review from a team as a code owner May 13, 2026 05:54
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a pytest.ini file to the Google Cloud Spanner samples to exclude the archived directory from test discovery. The reviewer noted that the current configuration overwrites pytest's default directory exclusions and recommended including standard defaults like .git and venv to maintain performance and avoid discovery errors.

Comment thread packages/google-cloud-spanner/samples/samples/pytest.ini Outdated
@sakthivelmanii sakthivelmanii force-pushed the feat-skip-archived-tests branch from c7667f3 to da6f2d5 Compare May 13, 2026 05:56
@sakthivelmanii
Copy link
Copy Markdown
Contributor Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a pytest.ini configuration file to manage directory recursion during testing. The review feedback highlights a likely redundant directory level in the file path that could interfere with pytest's discovery mechanism. Additionally, there is a suggestion to optimize the norecursedirs configuration by using a wildcard pattern for hidden directories to ensure better coverage and a more concise configuration.

Comment thread packages/google-cloud-spanner/samples/samples/pytest.ini Outdated
Comment thread packages/google-cloud-spanner/samples/samples/pytest.ini Outdated
@sakthivelmanii sakthivelmanii enabled auto-merge (squash) May 13, 2026 05:59
@sakthivelmanii sakthivelmanii force-pushed the feat-skip-archived-tests branch from da6f2d5 to 2a298d1 Compare May 13, 2026 06:02
Copy link
Copy Markdown
Contributor

@sinhasubham sinhasubham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sakthivelmanii sakthivelmanii merged commit 91fc06b into main May 13, 2026
31 checks passed
@sakthivelmanii sakthivelmanii deleted the feat-skip-archived-tests branch May 13, 2026 07:21
nidhiii-27 pushed a commit that referenced this pull request May 18, 2026
Thank you for opening a Pull Request! Before submitting your PR, there
are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a
[bug/issue](https://github.com/googleapis/google-cloud-python/issues)
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
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