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

[NADE] Enable Code Generation by default in Snow App Bundle #1167

Merged
merged 7 commits into from
Jun 13, 2024

Conversation

sfc-gh-bgoel
Copy link
Contributor

@sfc-gh-bgoel sfc-gh-bgoel commented Jun 6, 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.
  • 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

Snowpark Annotation Processing in Native Apps through Code Generation of SQL is hidden behind a feature flag up until 2.4.0. But with 2.5.0, we want to make this widely available, without any feature flags. This PR removes the condition, and also adds an E2E test that ensures we get to a working app state.

@sfc-gh-bgoel sfc-gh-bgoel force-pushed the bgoel-use-codegen-always branch 4 times, most recently from e29182a to d3d2184 Compare June 12, 2024 19:56
@sfc-gh-bgoel sfc-gh-bgoel changed the base branch from main to bgoel-symlink-to-cp-r June 12, 2024 19:57
@sfc-gh-bgoel sfc-gh-bgoel changed the title initial commit [NADE] Enable Code Generation by default in Snow App Bundle Jun 12, 2024
@@ -140,7 +140,7 @@ def _execute_in_sandbox(

if completed_process.returncode != 0:
cc.warning(
f"Could not fetch Snowpark objects from {py_file} due to the following error:\n {completed_process.stderr}"
f"Could not fetch Snowpark objects from {py_file} due to the following Snowpark-internal error:\n {completed_process.stderr}"
Copy link
Contributor

Choose a reason for hiding this comment

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

errors here aren't necessarily snowpark

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that any sandbox or execution environment based errors have been captured in lines 130 to 139. So if we get to this stage, we must have invoked the jinja file and then received a response accordingly. Is that incorrect?
Either way, I can remove the "Snowpark-internal" phrase.

Copy link
Contributor

Choose a reason for hiding this comment

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

Errors that can go to stderr include bugs in our driver and just Python errors in user code. Labelling them all as Snowpark would be misleading.

Base automatically changed from bgoel-symlink-to-cp-r to main June 12, 2024 21:14
@sfc-gh-bgoel sfc-gh-bgoel force-pushed the bgoel-use-codegen-always branch 2 times, most recently from 810a40b to a6f2fb0 Compare June 13, 2024 04:35
@sfc-gh-bgoel sfc-gh-bgoel marked this pull request as ready for review June 13, 2024 04:53
@sfc-gh-bgoel sfc-gh-bgoel requested review from a team as code owners June 13, 2024 04:53
sfc-gh-bdufour
sfc-gh-bdufour previously approved these changes Jun 13, 2024
RELEASE-NOTES.md Outdated Show resolved Hide resolved
commit for Mike's documentation
…import, introduced fn which relies on another in the same file
…sses when using real config.toml connection locally, pushing to test on Github now

fix code quality failure, loosen restriction on checking stderr when CLI's config.toml has insufficient permissions
@sfc-gh-bgoel sfc-gh-bgoel merged commit 1db08f3 into main Jun 13, 2024
22 checks passed
@sfc-gh-bgoel sfc-gh-bgoel deleted the bgoel-use-codegen-always branch June 13, 2024 12:55
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.

3 participants