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

Integration workflow update to support all-in-one adapter testing #1149

Merged
merged 22 commits into from
Aug 1, 2024

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Jul 25, 2024

resolves #

Problem

When testing changes to adapters, particularly dbt-adapters changes but also some core changes, we need to execute integration tests on all of the adapters, with the ability to specify dbt-adapters branch, dbt-core branch, and sometimes the local adapter branch.

Solution

Add additional input fields for the "workflow_dispatch" event: "dbt_adapter_branch", and "name". The name helps to identify individual runs in the lists of workflow runs, which can get lost. Also there's no good way to connect up a rest api workflow run or a gh cli workflow run with the matching run result, so adding a distinctive name assists in finding the correct results.

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

@gshank gshank requested a review from a team as a code owner July 25, 2024 16:07
@cla-bot cla-bot bot added the cla:yes label Jul 25, 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 dbt-snowflake contributing guide.

@gshank gshank marked this pull request as draft July 25, 2024 16:07
@gshank gshank added the Skip Changelog Skips GHA to check for changelog file label Jul 25, 2024
@@ -34,10 +36,26 @@ on:
# manual trigger
workflow_dispatch:
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we anticipate other workflows (i.e. in dbt-core) wanting to run this workflow? Should we also add workflow_call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Workflow_call just calls the action code, without actually executing in this repository. We might want to standardize on an action in a central repository, but I'm guessing it wouldn't be in dbt-snowflake. Workflow_dispatch works for cross-repo calls. I'm running these now with a script, but once the individual repository changes are in place I'm going to try to set up an action in dbt-adapters to call all of the individual adapter integration tests and see how that goes.

Copy link
Contributor

@mikealfare mikealfare Jul 29, 2024

Choose a reason for hiding this comment

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

Agreed w/ @gshank, workflow_dispatch is effectively workflow_call + the workflow repo's code in this scenario, which is what we want.

Copy link
Contributor

@mikealfare mikealfare left a comment

Choose a reason for hiding this comment

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

Mostly nits, but I do think it would make it smoother. Let me know what you think.

.github/scripts/update_dev_packages.sh Outdated Show resolved Hide resolved
.github/workflows/integration.yml Outdated Show resolved Hide resolved
.github/workflows/integration.yml Outdated Show resolved Hide resolved
.github/workflows/integration.yml Show resolved Hide resolved
.github/workflows/integration.yml Show resolved Hide resolved
.github/workflows/integration.yml Outdated Show resolved Hide resolved
@gshank
Copy link
Contributor Author

gshank commented Jul 29, 2024

@gshank gshank marked this pull request as ready for review July 29, 2024 22:18
@gshank gshank merged commit 7fb4549 into main Aug 1, 2024
46 checks passed
@gshank gshank deleted the integration_workflow_update branch August 1, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants