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

Fix Snowpark type casting #1657

Merged
merged 7 commits into from
Oct 9, 2024
Merged

Fix Snowpark type casting #1657

merged 7 commits into from
Oct 9, 2024

Conversation

sfc-gh-turbaszek
Copy link
Contributor

@sfc-gh-turbaszek sfc-gh-turbaszek commented Oct 2, 2024

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

Adjusts the test to work consistently on CI and QA environments. Type conversion for snowpark was reversed: user input -> snowflake type.

@sfc-gh-turbaszek
Copy link
Contributor Author

Skipping the one of NA test because is failing also on other PRs
#1691

@sfc-gh-turbaszek sfc-gh-turbaszek marked this pull request as ready for review October 9, 2024 09:24
@sfc-gh-turbaszek sfc-gh-turbaszek requested review from a team as code owners October 9, 2024 09:24
sfc-gh-astus
sfc-gh-astus previously approved these changes Oct 9, 2024
@@ -45,6 +42,10 @@ def test_large_upload_skips_reupload(
Ensure that files uploaded in multiple parts are not re-uploaded unnecessarily.
This test will currently fail when run on a non-AWS deployment.
"""
from snowflake.cli._plugins.nativeapp.v2_conversions.compat import (
_pdf_v2_to_v1,
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was causing import errors

@@ -271,6 +273,7 @@ def test_nativeapp_bundle_throws_error_on_too_many_files_to_dest(template_setup)

# Tests handling of no artifacts
@pytest.mark.integration
@pytest.mark.skip("Flaky test, needs to be fixed")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test was consistently failing

@sfc-gh-turbaszek sfc-gh-turbaszek enabled auto-merge (squash) October 9, 2024 12:35
Copy link
Contributor

@sfc-gh-bdufour sfc-gh-bdufour left a comment

Choose a reason for hiding this comment

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

Approving the test fixes on behalf of NADE

@sfc-gh-turbaszek sfc-gh-turbaszek merged commit 368063f into main Oct 9, 2024
19 checks passed
@sfc-gh-turbaszek sfc-gh-turbaszek deleted the fix-snowpark-qa branch October 9, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants