From 091fb6c98a391ad23263ed79fe8c000033a0cd91 Mon Sep 17 00:00:00 2001 From: Snowflake Provisioner <58576687+snowflake-provisioner@users.noreply.github.com> Date: Fri, 14 Jul 2023 11:06:24 -0700 Subject: [PATCH] Project import generated by Copybara. (#29) GitOrigin-RevId: 565ffcfe93e7c9db631e4326751a6d4043181ed0 Co-authored-by: Snowflake Authors --- CHANGELOG.md | 2 +- ci/RunTests.sh | 4 ++-- ci/build_and_run_tests.sh | 2 +- ci/type_check.sh | 2 +- .../ml/model/deployment_to_snowservice_integ_test.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc6f3c36..2266574b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.3 (2023-07-12) +## 1.0.3 (2023-07-14) ### Behavior Changes - Model Registry: When predicting a model whose output is a list of NumPy ndarray, the output would not be flattened, instead, every ndarray will act as a feature(column) in the output. diff --git a/ci/RunTests.sh b/ci/RunTests.sh index ddd969fb..c0199829 100755 --- a/ci/RunTests.sh +++ b/ci/RunTests.sh @@ -15,7 +15,7 @@ # set -o pipefail -set -e +set -u bazel="bazel" mode="standard" @@ -82,7 +82,7 @@ bazel_exit_code=$? # 0: Success; # 4: Build Successful but no tests found # See https://bazel.build/run/scripts#exit-codes -if [[ ${MODE} = "diff-only" && ${bazel_exit_code} -eq 4 ]] ; then +if [[ ${mode} = "diff-only" && ${bazel_exit_code} -eq 4 ]] ; then exit 0 fi exit $bazel_exit_code diff --git a/ci/build_and_run_tests.sh b/ci/build_and_run_tests.sh index fd9b737c..139b7699 100755 --- a/ci/build_and_run_tests.sh +++ b/ci/build_and_run_tests.sh @@ -20,7 +20,7 @@ # - This is to mimic the behavior of using snowml wheel package in user land. set -o pipefail -set -eu +set -u PROG=$0 diff --git a/ci/type_check.sh b/ci/type_check.sh index 5bf5106d..0c676224 100755 --- a/ci/type_check.sh +++ b/ci/type_check.sh @@ -25,7 +25,7 @@ # we used `kind('py_.* rule')` filter. set -o pipefail -set -e +set -u bazel="bazel" affected_targets="" diff --git a/tests/integ/snowflake/ml/model/deployment_to_snowservice_integ_test.py b/tests/integ/snowflake/ml/model/deployment_to_snowservice_integ_test.py index d98f6576..2f956ef6 100644 --- a/tests/integ/snowflake/ml/model/deployment_to_snowservice_integ_test.py +++ b/tests/integ/snowflake/ml/model/deployment_to_snowservice_integ_test.py @@ -55,7 +55,7 @@ def setUpClass(cls) -> None: cls.FULL_IMAGE_REPO_PATH = f"{registry_host}/{cls.TEST_DB}/{cls.TEST_SCHEMA}/{cls.TEST_IMAGE_REPO}/".lower() - cls._session = Session.builder.configs({**cls.login_options}).create() + cls._session = Session.builder.configs({**login_options}).create() cls._db_manager = db_manager.DBManager(cls._session) cls._db_manager.set_role(cls.TEST_ROLE) cls._db_manager.create_stage(cls.TEST_STAGE, cls.TEST_SCHEMA, cls.TEST_DB, sse_encrypted=True)