Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tech Debt] test_dbt_debug is not dropping its test schema #560

Open
2 tasks done
mikealfare opened this issue May 1, 2024 · 0 comments
Open
2 tasks done

[Tech Debt] test_dbt_debug is not dropping its test schema #560

mikealfare opened this issue May 1, 2024 · 0 comments
Labels
pkg:dbt-bigquery Issue affects dbt-bigquery type:task Eng-driven work

Comments

@mikealfare
Copy link
Contributor

mikealfare commented May 1, 2024

Is this a new bug in dbt-bigquery?

  • I believe this is a new bug in dbt-bigquery
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

Schemas are building up in the CI database. The vast majority of them are for the test test_dbt_debug. There are others that may just be due to intermittent connection issues, but this is the primary concern.

Expected Behavior

Tests should always clean up their test schema, even when failing.

Steps To Reproduce

Run this query against the CI database:

SELECT RIGHT(schema_name, LENGTH(schema_name)-LENGTH('test17061864288069965012_')), count(schema_name)
FROM `dbt-test-env`.INFORMATION_SCHEMA.SCHEMATA
WHERE schema_name LIKE 'test%_test_%'
GROUP BY 1
ORDER BY 2 DESC

Relevant log output

Top 5 output from the above query:

schema stub schemas
test_dbt_debug 4,260
test_job_timeout 97
test_utils 51
test_get_relation_last_modified 43
test_basic 35

Environment

- OS: all
- Python: all
- dbt-core: unknown
- dbt-bigquery: unknown
@mikealfare mikealfare added type:bug Something isn't working as documented triage:product In Product's queue type:task Eng-driven work and removed type:bug Something isn't working as documented triage:product In Product's queue labels May 1, 2024
@mikealfare mikealfare added the pkg:dbt-bigquery Issue affects dbt-bigquery label Jan 14, 2025
@mikealfare mikealfare transferred this issue from dbt-labs/dbt-bigquery Jan 14, 2025
colin-rogers-dbt pushed a commit that referenced this issue Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:dbt-bigquery Issue affects dbt-bigquery type:task Eng-driven work
Projects
None yet
Development

No branches or pull requests

1 participant