Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

chore(tests): clean up sample test tables#1030

Merged
daniel-sanche merged 12 commits into
mainfrom
cleanup_sample_tests
Nov 11, 2024
Merged

chore(tests): clean up sample test tables#1030
daniel-sanche merged 12 commits into
mainfrom
cleanup_sample_tests

Conversation

@daniel-sanche

@daniel-sanche daniel-sanche commented Oct 25, 2024

Copy link
Copy Markdown
Contributor

Currently, the sample tests are creating new tables for each test run, and not always cleaning them up properly. This causes tests to start failing when we hit the 1000 table per instance limit

This PR attempts to fix all the clean-up code to always run, even if there are errors in the tests. We do this using context managers and try/except statements

@daniel-sanche daniel-sanche requested a review from a team as a code owner October 25, 2024 20:58
@daniel-sanche daniel-sanche requested review from a team and msampathkumar October 25, 2024 20:58
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigtable Issues related to the googleapis/python-bigtable API. samples Issues that are directly related to samples. labels Oct 25, 2024
@daniel-sanche daniel-sanche changed the title chore(tests): clean up sample test tables [DRAFT] chore(tests): clean up sample test tables Oct 25, 2024
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Oct 28, 2024
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 29, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 29, 2024
@daniel-sanche daniel-sanche requested a review from a team October 29, 2024 22:08
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 30, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 30, 2024
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 31, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 31, 2024
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 4, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 4, 2024
@snippet-bot

snippet-bot Bot commented Nov 7, 2024

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 23 region tags.
You are about to delete 23 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label Bot removed the size: l Pull request size is large. label Nov 7, 2024
@product-auto-label product-auto-label Bot added the size: xl Pull request size is extra large. label Nov 7, 2024
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 8, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 8, 2024
@daniel-sanche daniel-sanche changed the title [DRAFT] chore(tests): clean up sample test tables chore(tests): clean up sample test tables Nov 8, 2024
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 11, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 11, 2024
@daniel-sanche daniel-sanche merged commit d354349 into main Nov 11, 2024
@daniel-sanche daniel-sanche deleted the cleanup_sample_tests branch November 11, 2024 19:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigtable Issues related to the googleapis/python-bigtable API. samples Issues that are directly related to samples. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants