From 02ace271e423cd4d07097b510cf839bd942ad7fc Mon Sep 17 00:00:00 2001 From: PARYA JAFARI Date: Thu, 29 Aug 2024 13:36:44 -0400 Subject: [PATCH 1/8] add readme to data-mapping --- data-mapping/app/README.md | 2 ++ external-access-integration/app/manifest.yml | 1 + 2 files changed, 3 insertions(+) create mode 100644 data-mapping/app/README.md diff --git a/data-mapping/app/README.md b/data-mapping/app/README.md new file mode 100644 index 0000000..e2e703d --- /dev/null +++ b/data-mapping/app/README.md @@ -0,0 +1,2 @@ +# Data Mapping + diff --git a/external-access-integration/app/manifest.yml b/external-access-integration/app/manifest.yml index 8f5e15b..6090434 100644 --- a/external-access-integration/app/manifest.yml +++ b/external-access-integration/app/manifest.yml @@ -10,6 +10,7 @@ artifacts: setup_script: setup_script.sql default_streamlit: core.ui extension_code: true + readme: README.md references: - external_access_reference: From ccad65125adf6669d0251a78e82cc00fd98007b2 Mon Sep 17 00:00:00 2001 From: PARYA JAFARI Date: Thu, 29 Aug 2024 13:37:46 -0400 Subject: [PATCH 2/8] add readme to external-access-integration --- external-access-integration/app/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 external-access-integration/app/README.md diff --git a/external-access-integration/app/README.md b/external-access-integration/app/README.md new file mode 100644 index 0000000..1fe3d9a --- /dev/null +++ b/external-access-integration/app/README.md @@ -0,0 +1 @@ +# External Access Integration \ No newline at end of file From a022e4af0cf942c578b6efb2381d32e2b2e9543b Mon Sep 17 00:00:00 2001 From: PARYA JAFARI Date: Thu, 29 Aug 2024 13:38:37 -0400 Subject: [PATCH 3/8] remove create security integration from spcs --- spcs-three-tier/prepare/spcs_setup.sql | 5 ----- spcs-three-tier/setup.sh | 1 - 2 files changed, 6 deletions(-) delete mode 100644 spcs-three-tier/prepare/spcs_setup.sql diff --git a/spcs-three-tier/prepare/spcs_setup.sql b/spcs-three-tier/prepare/spcs_setup.sql deleted file mode 100644 index cd712e7..0000000 --- a/spcs-three-tier/prepare/spcs_setup.sql +++ /dev/null @@ -1,5 +0,0 @@ -USE ROLE ACCOUNTADMIN; -CREATE SECURITY INTEGRATION IF NOT EXISTS snowservices_ingress_oauth - TYPE=oauth - OAUTH_CLIENT=snowservices_ingress - ENABLED=true; \ No newline at end of file diff --git a/spcs-three-tier/setup.sh b/spcs-three-tier/setup.sh index fb80d0a..3d6d84f 100755 --- a/spcs-three-tier/setup.sh +++ b/spcs-three-tier/setup.sh @@ -1,5 +1,4 @@ set -e -snow sql -f "prepare/spcs_setup.sql" snow sql -f "prepare/provider_setup.sql" snow sql -f "prepare/consumer_setup.sql" From 85fa91e8ea41d0803fe41206c3254c7325dc6ad2 Mon Sep 17 00:00:00 2001 From: PARYA JAFARI Date: Thu, 29 Aug 2024 13:39:46 -0400 Subject: [PATCH 4/8] add readme to spcs example --- spcs-three-tier/app/manifest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/spcs-three-tier/app/manifest.yml b/spcs-three-tier/app/manifest.yml index 4f0f146..f2bfc97 100644 --- a/spcs-three-tier/app/manifest.yml +++ b/spcs-three-tier/app/manifest.yml @@ -8,6 +8,7 @@ configuration: artifacts: setup_script: setup.sql + readme: README.md default_web_endpoint: service: app_public.frontend From addeebec5c4976cf839fddf817e42d45e5f756fb Mon Sep 17 00:00:00 2001 From: PARYA JAFARI Date: Thu, 29 Aug 2024 14:35:04 -0400 Subject: [PATCH 5/8] update ci.yml to handle no python tests in dir --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bfb31f..d7647ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,6 +110,11 @@ jobs: echo “Nothing to test” else pytest $args + ret=$? + if [ "$ret" = 5 ]; then + echo "No tests collected." + exit 0 + fi + exit "$ret" fi - \ No newline at end of file From 698e3052eca3a0d4a3eee7b03d14ff2897e1b414 Mon Sep 17 00:00:00 2001 From: PARYA JAFARI Date: Thu, 29 Aug 2024 15:02:40 -0400 Subject: [PATCH 6/8] check ret --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7647ec..0f8b053 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,6 +111,7 @@ jobs: else pytest $args ret=$? + echo $ret if [ "$ret" = 5 ]; then echo "No tests collected." exit 0 From 5e3eef19015a6b5c3a1694e44dad1afdc92a0757 Mon Sep 17 00:00:00 2001 From: PARYA JAFARI Date: Thu, 29 Aug 2024 16:01:05 -0400 Subject: [PATCH 7/8] remove lowercase readme --- spcs-three-tier/app/readme.md | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 spcs-three-tier/app/readme.md diff --git a/spcs-three-tier/app/readme.md b/spcs-three-tier/app/readme.md deleted file mode 100644 index 63a5e2c..0000000 --- a/spcs-three-tier/app/readme.md +++ /dev/null @@ -1,2 +0,0 @@ -# Simple Native App with Snowpark Container Service Frontend -TaDa! \ No newline at end of file From 1a6364865891706221cd9c880e85a3c232c0cc63 Mon Sep 17 00:00:00 2001 From: PARYA JAFARI Date: Thu, 29 Aug 2024 16:02:44 -0400 Subject: [PATCH 8/8] re-add README.md --- spcs-three-tier/app/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 spcs-three-tier/app/README.md diff --git a/spcs-three-tier/app/README.md b/spcs-three-tier/app/README.md new file mode 100644 index 0000000..63a5e2c --- /dev/null +++ b/spcs-three-tier/app/README.md @@ -0,0 +1,2 @@ +# Simple Native App with Snowpark Container Service Frontend +TaDa! \ No newline at end of file