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

add base class for merge exclude tests #6700

Merged
merged 4 commits into from
Feb 8, 2023

Conversation

dave-connors-3
Copy link
Contributor

@dave-connors-3 dave-connors-3 commented Jan 23, 2023

resolves #6699

Description

  • Adds missing adapter Base class for merge_exclude_columns adapter tests
  • removes corresponding integration tests (TODO)

Related PRs:

Checklist

@dave-connors-3 dave-connors-3 requested a review from a team as a code owner January 23, 2023 19:27
@cla-bot cla-bot bot added the cla:yes label Jan 23, 2023
@github-actions
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
Contributor

@dbeatty10 dbeatty10 left a comment

Choose a reason for hiding this comment

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

@dave-connors-3

hey I have given all of these PRs a read-through, and they look awesome to me 🤩

yo, is there a single description that can be used across all the body: description_here portions of the changie entries so that all the changelogs will read uniformly? This is just a nit. A related nit is that I think these "family of PRs" are most readable when they all have identical PR names. Not a big deal, but giving you my best by presenting it as an option.

anyway, this is great and glad it's all working! I'll defer to anyone else that wants to review these. Otherwise, I'll be happy to go ahead and do formal review for these.

@jtcohen6 jtcohen6 added Team:Adapters Issues designated for the adapter area of the code ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering labels Jan 29, 2023
seed_count = len(run_dbt(["seed", "--select", seed, "--full-refresh"]))

model_count = len(run_dbt(["run", "--select", incremental_model, "--full-refresh"]))
# pass on kwarg
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the keyword argument here exactly? I just see renaming a variable name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

believe this code was copied from elsewhere, the comments may not be perfectly applicable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

specifically, took Matt's work from in test_incremental_unique_id

project.adapter, [expected_fields.relation, test_case_fields.relation]
)

def get_expected_fields(self, relation, seed_rows, opt_model_count=None):
Copy link
Contributor

@VersusFacit VersusFacit Feb 7, 2023

Choose a reason for hiding this comment

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

nit: I'd probably make this a class object or a constant and not use a method to obscure it. All that this really does it hide the instantiation, but we don't expect these values to change. I don't see an advantage to this factory-function.

Copy link
Contributor

@VersusFacit VersusFacit left a comment

Choose a reason for hiding this comment

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

Hey Dave, this PR is merge-able on a functional level -- thanks a bundle!

But, if you're willing to indulge us, we're making a big push to make our adapter-first test code updated in terms of design/framework use.

If you want to chat with me on some of these design considerations, do reach out and I'm happy to pair up.

Copy link
Contributor

@VersusFacit VersusFacit left a comment

Choose a reason for hiding this comment

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

Approval here but we may have to tweak the downstream classes or branching so that they have access to adapter zone classes. Let's merge this, then see about changing the adapter PRs to pull from main.

Also: I edited the PRs for posterity

@VersusFacit VersusFacit merged commit 3ad4037 into main Feb 8, 2023
@VersusFacit VersusFacit deleted the adapter-zone-test-merge-exclude-cols branch February 8, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering Team:Adapters Issues designated for the adapter area of the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-1883] Adapter Zone Tests for merge_exclude_tests
4 participants