Skip to content

test: cleanup resources at startup time in system and sample tests #590

@tswast

Description

@tswast
  1. Update fixtures to use a consistent prefix, so we can tell which resources are created by python-bigquery (and possibly disambiguate between samples and system tests). Also include a timestamp in the prefix.
  2. List all resources in the project, filter by our prefix, delete those resources that were created >= 24 hours ago.

This will prevent resource leaks from getting too bad. Teardown doesn't always get a chance to run because of intermittent Kokoro errors and timeouts.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p3Desirable enhancement or fix. May not be included in next release.samplesIssues that are directly related to samples.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions