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

trying to fix tox issue causing failures #534

Merged
merged 7 commits into from
Dec 5, 2022
Merged

Conversation

McKnight-42
Copy link
Contributor

@McKnight-42 McKnight-42 commented Dec 2, 2022

resolves #536

Description

errors in workflow caused by old python version

Checklist

@McKnight-42 McKnight-42 self-assigned this Dec 2, 2022
@cla-bot cla-bot bot added the cla:yes label Dec 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2022

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-spark contributing guide.

@McKnight-42
Copy link
Contributor Author

Question? how far up would we want to upgrade the python version? any preferences here?

@Fokko
Copy link
Contributor

Fokko commented Dec 2, 2022

I think 3.8+ is reasonable. 3.7 is being dropped by many projects. I would also include 3.10: https://github.com/dbt-labs/dbt-spark/blob/main/setup.py#L93 Python 3.11 has been released recently but hasn't been adopted widely by downstream dependencies, so that might be a bit challenging.

@colin-rogers-dbt
Copy link
Contributor

Since we're not quite at 3.7's EOL date I'd suggest we keep it for now

Copy link
Contributor

@colin-rogers-dbt colin-rogers-dbt left a comment

Choose a reason for hiding this comment

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

LGTM

@McKnight-42 McKnight-42 merged commit 9511847 into main Dec 5, 2022
@McKnight-42 McKnight-42 deleted the mcknight/tox-fix branch December 5, 2022 20:48
github-actions bot pushed a commit that referenced this pull request Dec 5, 2022
* updating tox python version, changing contriburing file example for integration tests

* remove change to contributing file for backport ease

* add changelog

* trying to incorprorate mulit python version

* trying to fix unit test

* remove unneded call to basepython

* back to 3.8

(cherry picked from commit 9511847)
@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

The backport to 1.1.latest failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.1.latest 1.1.latest
# Navigate to the new working tree
cd .worktrees/backport-1.1.latest
# Create a new branch
git switch --create backport-534-to-1.1.latest
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 951184703a3d95656b9796033503789bdfa01ce8
# Push it to GitHub
git push --set-upstream origin backport-534-to-1.1.latest
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.1.latest

Then, create a pull request where the base branch is 1.1.latest and the compare/head branch is backport-534-to-1.1.latest.

github-actions bot pushed a commit that referenced this pull request Dec 5, 2022
* updating tox python version, changing contriburing file example for integration tests

* remove change to contributing file for backport ease

* add changelog

* trying to incorprorate mulit python version

* trying to fix unit test

* remove unneded call to basepython

* back to 3.8

(cherry picked from commit 9511847)
@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

The backport to 1.1.latest failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.1.latest 1.1.latest
# Navigate to the new working tree
cd .worktrees/backport-1.1.latest
# Create a new branch
git switch --create backport-534-to-1.1.latest
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 951184703a3d95656b9796033503789bdfa01ce8
# Push it to GitHub
git push --set-upstream origin backport-534-to-1.1.latest
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.1.latest

Then, create a pull request where the base branch is 1.1.latest and the compare/head branch is backport-534-to-1.1.latest.

McKnight-42 added a commit that referenced this pull request Dec 5, 2022
@McKnight-42 McKnight-42 mentioned this pull request Dec 5, 2022
6 tasks
McKnight-42 added a commit that referenced this pull request Dec 6, 2022
* manual backport of pr #534 to 1.1.latest

* Update setup.py

Co-authored-by: Fokko Driesprong <fokko@apache.org>

* mirror python bound for dbt-core

Co-authored-by: Florian Eiden <florian.eiden@fleid.fr>
Co-authored-by: Fokko Driesprong <fokko@apache.org>
colin-rogers-dbt pushed a commit that referenced this pull request Dec 9, 2022
* trying to fix tox issue causing failures (#534)

* updating tox python version, changing contriburing file example for integration tests

* remove change to contributing file for backport ease

* add changelog

* trying to incorprorate mulit python version

* trying to fix unit test

* remove unneded call to basepython

* back to 3.8

(cherry picked from commit 9511847)

* trying to add a allowlist_externals clause for /bin/bash in tox

* formatting fix

* formatting fix

* formatting fix

* trying to tie allowlist to specific test

Co-authored-by: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com>
Co-authored-by: Matthew McKnight <matthew.mcknight@dbtlabs.com>
colin-rogers-dbt pushed a commit that referenced this pull request Dec 9, 2022
* trying to fix tox issue causing failures (#534)

* updating tox python version, changing contriburing file example for integration tests

* remove change to contributing file for backport ease

* add changelog

* trying to incorprorate mulit python version

* trying to fix unit test

* remove unneded call to basepython

* back to 3.8

(cherry picked from commit 9511847)

* created allowlist_externals part for unit test

* adding allowlist to spark-session

Co-authored-by: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com>
Co-authored-by: Matthew McKnight <matthew.mcknight@dbtlabs.com>
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.

[CT-1596] upgrade python version in tox to fix bad runs
3 participants