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

[SERVER-SIDE] Add test infrastructure to track all requests have dataframeAST field. #1794

Merged
merged 7 commits into from
Jun 17, 2024

Conversation

sfc-gh-lspiegelberg
Copy link
Contributor

@sfc-gh-lspiegelberg sfc-gh-lspiegelberg commented Jun 17, 2024

Vendors snowflake vcrpy from https://github.com/Snowflake-Labs/snowflake-vcrpy (could not get install working, therefore vendoring it) with custom Snowflake changes to track requests in vendored urllib3 within the snowflake python connector.

Add decorator check_ast_encode_invoked (applied with autouse=True to all tests) which checks that every query send contains dataframeAst property for phase 0, and errors out together with traceback information whenever tests need to be fixed / APIs are missing that need to be encoded within the AST.

You can skip the vendored folder when reviewing.

tests/integ/conftest.py Outdated Show resolved Hide resolved
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg merged commit 9eef249 into server-side-snowpark Jun 17, 2024
7 of 8 checks passed
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg deleted the ls-track-ast-conversion branch June 17, 2024 23:20
@github-actions github-actions bot locked and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants