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

Remove dbt-postgres and dbt-tests-adapter from dbt-core #9492

Merged
merged 10 commits into from
Feb 5, 2024

Conversation

colin-rogers-dbt
Copy link
Contributor

@colin-rogers-dbt colin-rogers-dbt commented Jan 30, 2024

Remove dbt-tests-adapter and dbt-postgres from dbt-core but preserve the adapter one tests in the functional directory to make sure we don't lose any test coverage.

resolves #

Problem

Solution

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
  • This PR includes type annotations for new and modified functions

@cla-bot cla-bot bot added the cla:yes label Jan 30, 2024
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1a5d692) 88.04% compared to head (db779c4) 87.85%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9492      +/-   ##
==========================================
- Coverage   88.04%   87.85%   -0.20%     
==========================================
  Files         167      167              
  Lines       22126    22150      +24     
==========================================
- Hits        19480    19459      -21     
- Misses       2646     2691      +45     
Flag Coverage Δ
integration 85.44% <ø> (-0.15%) ⬇️
unit 61.85% <ø> (-0.51%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@colin-rogers-dbt colin-rogers-dbt marked this pull request as ready for review February 1, 2024 17:41
@colin-rogers-dbt colin-rogers-dbt requested review from a team as code owners February 1, 2024 17:41
Copy link
Member

@emmyoop emmyoop left a comment

Choose a reason for hiding this comment

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

Have you tested if the release will work without any changes?

docker/Dockerfile Outdated Show resolved Hide resolved
@@ -1,4 +1,5 @@
git+https://github.com/dbt-labs/dbt-adapters.git@main
git+https://github.com/dbt-labs/dbt-postgres.git@main
Copy link
Member

Choose a reason for hiding this comment

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

Is the postgres repo going to have the ability to run tests off branches of core?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indeed it will

@MichelleArk
Copy link
Contributor

In theory, the dbt-postgres tests shouldn't provide us with additional testing signal on dbt-core changes that we wouldn't be able to pick up in our existing functional tests. But the current state of things is less ideal than that 🙃

For example, test_dbt_show tests adapter-specific functionality, but I don't see another test in tests/functional that includes the --limit argument.

We can't really know the full extent of this without auditing all the tests but we'll definitely lose test coverage by removing them outright at this point, so I agree with the decision to keep them + move to tests/functional.

My main concern is that these will drift from their source definitions in dbt-adapters/dbt-postgres over time as new tests are defined in those directories. Longer term, we should explore options for running the postgres tests on commit / before merge without having to actually define them in dbt-core.

@colin-rogers-dbt
Copy link
Contributor Author

Have you tested if the release will work without any changes?

@emmyoop testing here: https://github.com/dbt-labs/dbt-core/actions/runs/7759825156/job/21164841687

@MichelleArk
Copy link
Contributor

Added a follow-on tech debt issue for dbt-core to delete the adapter tests entirely, and instead trigger dbt-postgres adapter tests to run: #9513

@colin-rogers-dbt colin-rogers-dbt merged commit 15dcb9a into main Feb 5, 2024
50 of 51 checks passed
@colin-rogers-dbt colin-rogers-dbt deleted the removePostgres branch February 5, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants