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

[POC] spcs project #1727

Draft
wants to merge 1,048 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1048 commits
Select commit Hold shift + click to select a range
99c9f69
Bump tomlkit from 0.12.5 to 0.13.0 (#1320)
dependabot[bot] Jul 16, 2024
b5da4d3
Bump setuptools from 70.2.0 to 70.3.0 (#1319)
dependabot[bot] Jul 16, 2024
5dc0117
Snow 1515844 init integration tests; incorrect URL error handling (#1…
sfc-gh-pczajka Jul 16, 2024
6ef0136
Temporarily skip failing test due to server side issue (#1329)
sfc-gh-pczajka Jul 17, 2024
255b705
Fixed logs init with disabled save_logs and debug flag (#1324)
sfc-gh-astus Jul 17, 2024
94b0a65
Support project definition v2 in "snow app open" (#1307)
sfc-gh-gbloom Jul 17, 2024
04d2b23
Add command error to telemetry (#1266)
sfc-gh-jvasquezrojas Jul 17, 2024
4ef777f
[Alpha] Add support for snowflake.app-generated SQL setup (#1318)
sfc-gh-bdufour Jul 17, 2024
8ac077d
bump version to 2.6.1 (#1328)
sfc-gh-pczajka Jul 18, 2024
9c86b45
Support project definition v2 in "snow app teardown" (#1326)
sfc-gh-gbloom Jul 18, 2024
7208413
Support project definition v2 in "snow app" commands: bundle, validat…
sfc-gh-gbloom Jul 18, 2024
4eaa950
Refactor VariableOption flag (#1345)
sfc-gh-pczajka Jul 22, 2024
659f370
Show snow init command (#1346)
sfc-gh-pczajka Jul 22, 2024
ab697b1
Post_deploy script should run relative to project root, Fixes #1325. …
sfc-gh-melnacouzi Jul 22, 2024
9ab61af
SNOW-1544012 Validate that account has an event table set up (#1337)
sfc-gh-fcampbell Jul 22, 2024
5eb9d56
Update post_install default database to point to application database…
sfc-gh-melnacouzi Jul 22, 2024
153bfce
Support project definition v2 in "app version" and "app run" (#1353)
sfc-gh-gbloom Jul 22, 2024
4d706f8
Snow 1482578 add integration tests for create task warehouse (#1347)
sfc-gh-pczajka Jul 23, 2024
c53ac07
Bump pytest from 8.2.2 to 8.3.1 (#1350)
dependabot[bot] Jul 23, 2024
6186213
CREATE OR REPLACE for `runtime` and `execute_as_caller` (#1356)
sfc-gh-jsikorski Jul 24, 2024
7511a5d
Removed supporting git copy to for user stages (#1348)
sfc-gh-astus Jul 24, 2024
eef8dcb
Handle null md5s when given by storage backend (#1359)
sfc-gh-cgorrie Jul 24, 2024
7b85d3a
Support regionless host URLs (#1358)
sfc-gh-cgorrie Jul 24, 2024
c34513b
Allow commands to return multiple results as a stream (#1349)
sfc-gh-fcampbell Jul 24, 2024
8c1ea7f
SNOW-1544013 Fetch events for app (#1352)
sfc-gh-fcampbell Jul 24, 2024
03a972e
Revert "SNOW-1544013 Fetch events for app" (#1361)
sfc-gh-fcampbell Jul 24, 2024
9c8fc29
Revert "Revert "SNOW-1544013 Fetch events for app"" (#1362)
sfc-gh-fcampbell Jul 24, 2024
689ad9e
Add deprecation warnings for `init` commands (#1360)
sfc-gh-jsikorski Jul 25, 2024
042c120
Bump version to 2.7.0rc0 and updated release notes (#1364)
sfc-gh-astus Jul 25, 2024
a81756a
Bump version to 3.0.0dev0 (#1365)
sfc-gh-astus Jul 25, 2024
0373b59
New epic for community issues for Q3 (#1366)
sfc-gh-jsikorski Jul 25, 2024
50a6d09
Add spaces in deprecated init help messages (#1368)
sfc-gh-pczajka Jul 25, 2024
8a5e055
Converting additional project definition v2 fields (#1355)
sfc-gh-gbloom Jul 25, 2024
82808a6
Added connectors log_configuration module to reload (#1336)
sfc-gh-astus Jul 25, 2024
dad53e8
Wrapped cli_context with function (#1331)
sfc-gh-astus Jul 25, 2024
fb77c5f
Add default values to generated docs (#1371)
sfc-gh-pczajka Jul 26, 2024
58db9bd
SNOW-1544013 Add interval filtering to `snow app events` (#1354)
sfc-gh-fcampbell Jul 26, 2024
0654a28
Drop support for Python <3.10 (#1014)
sfc-gh-turbaszek Jul 29, 2024
8d1431e
SNOW-1544013 Add `--first` and `--last` to `snow app events` (#1370)
sfc-gh-fcampbell Jul 29, 2024
2cafd19
Add `--type` and `--scope` filters (#1379)
sfc-gh-fcampbell Jul 29, 2024
5ce249a
Decouple project definition object from artifact processors (#1374)
sfc-gh-gbloom Jul 29, 2024
9ece39b
Bump snowflake-connector-python[secure-local-storage] from 3.11.0 to …
dependabot[bot] Jul 30, 2024
7b0c2e3
Bump pytest from 8.3.1 to 8.3.2 (#1381)
dependabot[bot] Jul 30, 2024
6faa488
Remove object stage command group (#1373)
sfc-gh-turbaszek Jul 30, 2024
b02608c
Remove deprecated init commands (#1390)
sfc-gh-pczajka Jul 30, 2024
047a232
Snow 1532860 clean deprecated snowpark flags, clean help messages (#1…
sfc-gh-pczajka Jul 30, 2024
1720751
Add support for defaults in project definition file templating (#1330)
sfc-gh-melnacouzi Jul 31, 2024
54151b3
Enable project definition 2.0 by default (#1388)
sfc-gh-turbaszek Jul 31, 2024
077c641
Bump execution threshold for perf tests (#1393)
sfc-gh-turbaszek Jul 31, 2024
f00fe65
Update Streamlit with new experimental feature (ENABLE_STREAMLIT_VERS…
sfc-gh-wschmitt Jul 31, 2024
ea1c88a
Guess chunk size for multi-part md5sums to prevent unnecessary re-upl…
sfc-gh-cgorrie Jul 31, 2024
cb68d05
Added --token-file-path for connection add command (#1395)
sfc-gh-astus Jul 31, 2024
c100b27
Support project definition V2 in streamlit deploy command (#1394)
sfc-gh-turbaszek Jul 31, 2024
7f3fd9f
Add `--follow` to `snow app events` (#1385)
sfc-gh-fcampbell Jul 31, 2024
abb7878
Moved fix for large files uploaded to AWS S3 to 2.7.0 version (#1403)
sfc-gh-astus Aug 1, 2024
12cec94
Set test config file mode to 600 to prevent warnings (#1398)
sfc-gh-fcampbell Aug 1, 2024
d19a503
Remove streamlit template (#1405)
sfc-gh-turbaszek Aug 1, 2024
f912c92
Integration test CI improvements (#1396)
sfc-gh-fcampbell Aug 1, 2024
dadf00f
Bump requirements-parser from 0.9.0 to 0.10.2 (#1383)
dependabot[bot] Aug 1, 2024
f0017a9
Fix for failing code quality checks (#1412)
sfc-gh-jsikorski Aug 2, 2024
8e593ef
Fix for whitespaces problem in connection add (#1410)
sfc-gh-jsikorski Aug 2, 2024
4bdfb9d
SNOW-1571918 Update deprecated usages to recommended ones (#1400)
sfc-gh-fcampbell Aug 2, 2024
1098c42
Changed integration tests user auth to private key (#1389)
sfc-gh-astus Aug 6, 2024
792de8d
Use IDENTIFIER for string literals (#1409)
sfc-gh-turbaszek Aug 6, 2024
7097d30
Refactor: make cli.api only public module (#1415)
sfc-gh-pczajka Aug 6, 2024
df64e31
Bump coverage from 7.6.0 to 7.6.1 (#1416)
dependabot[bot] Aug 7, 2024
3bf75de
Add check if token and private key paths exist (#1417)
sfc-gh-jsikorski Aug 7, 2024
f5c0cb1
Add package post-deploy scripts in project definition file (#1399)
sfc-gh-melnacouzi Aug 7, 2024
660276b
Retry integration test failures automatically (#1397)
sfc-gh-fcampbell Aug 7, 2024
57454e4
WorkspaceManager and wiring of "snow ws bundle" (#1392)
sfc-gh-gbloom Aug 7, 2024
3e36668
Cleanup script fix (#1424)
sfc-gh-astus Aug 8, 2024
b4882e6
Fix cleanup task (#1425)
sfc-gh-turbaszek Aug 8, 2024
a95aed8
SNOW-1568998 Add SPCS job service support in SnowCLI (#1422)
sfc-gh-yiwang Aug 8, 2024
ad44539
Bump Snowpark default Python version to 3.10 (#1420)
sfc-gh-turbaszek Aug 8, 2024
0b34608
Introduce entity identifier (#1413)
sfc-gh-turbaszek Aug 9, 2024
3fea493
V2.0 Definition for snowpark (#1402)
sfc-gh-jsikorski Aug 10, 2024
fd9aef5
SNOW-1565541 Implement fetching events shared from consumer account (…
sfc-gh-fcampbell Aug 12, 2024
3178ec6
Fix IndexError when app has no events (#1432)
sfc-gh-fcampbell Aug 12, 2024
de5a0cb
Add missing teardown to integration test (#1438)
sfc-gh-fcampbell Aug 12, 2024
d22da29
Fix git integration tests (#1414)
sfc-gh-pczajka Aug 13, 2024
59aec25
SNOW-1565544 Unhide snow app events command (#1431)
sfc-gh-fcampbell Aug 13, 2024
21abe77
SNOW-1623352 Add option to pass app installation hash (#1441)
sfc-gh-fcampbell Aug 13, 2024
26320db
Common error for mutually exclusive flags (#1375)
sfc-gh-jvasquezrojas Aug 14, 2024
484ba19
Append SNOWFLAKE_CLI_TEST_RESOURCE_SUFFIX value to app and package na…
sfc-gh-fcampbell Aug 14, 2024
be45a5f
Align snowpark entities to use identifier (#1449)
sfc-gh-turbaszek Aug 19, 2024
e2481d5
Workspaces application package bundle (#1429)
sfc-gh-gbloom Aug 19, 2024
5f8d1cf
Rename clean_id to sanitize_id and limit functionality. Also rename i…
sfc-gh-melnacouzi Aug 19, 2024
6894138
SNOW-1623250 Add current test name to test resource env var in tests …
sfc-gh-fcampbell Aug 19, 2024
e41fbe3
Add is_empty check to bundle_map in build bundle step (#1419)
sfc-gh-pjafari Aug 19, 2024
d28ebec
Tweak default detection to ignore transformations (#1451)
sfc-gh-melnacouzi Aug 20, 2024
56cf202
Bump typer from 0.12.3 to 0.12.4 (#1452)
dependabot[bot] Aug 20, 2024
beded81
Updated integration tests account setup scripts (#1445)
sfc-gh-astus Aug 20, 2024
1bfbcb4
Add external access support in streamlit (#1439)
sfc-gh-turbaszek Aug 20, 2024
822b6c2
Bump tomlkit from 0.13.0 to 0.13.2 (#1453)
dependabot[bot] Aug 20, 2024
5ab57b3
Snow 1633381 add jinja blocks to snow init (#1456)
sfc-gh-pczajka Aug 20, 2024
d682a6c
Fix snowpark aliases (#1457)
sfc-gh-pczajka Aug 20, 2024
42cd81f
Print warnings on CREATE or UPGRADE (#1462)
sfc-gh-cgorrie Aug 21, 2024
d63126d
Removed env password from CONTRIBUTING.md (#1466)
sfc-gh-astus Aug 22, 2024
862c357
Add support for multiple Streamlits (#1440)
sfc-gh-turbaszek Aug 22, 2024
6bbcaee
Fix Snowpark V2 implementation to support multiple artifacts (#1465)
sfc-gh-turbaszek Aug 23, 2024
ec4fb05
v2.8.0 release notes
sfc-gh-pczajka Aug 23, 2024
784936c
Build snowpark deps only if any exist (#1481)
sfc-gh-turbaszek Aug 23, 2024
9c81c52
SNOW-1636849 Auto-teardown Native App in integration tests (#1478)
sfc-gh-fcampbell Aug 23, 2024
8388fd8
SNOW-1621834 Cast version to identifier when creating/dropping app ve…
sfc-gh-fcampbell Aug 23, 2024
36987ad
Refactor snowpark commands to be entity-centric (#1483)
sfc-gh-turbaszek Aug 26, 2024
046f34f
Add mixins (#1484)
sfc-gh-jsikorski Aug 26, 2024
0a20f59
Snow 1625040 unify sql template syntax (#1458)
sfc-gh-pczajka Aug 26, 2024
21ca8ae
Fix integer indices in error reporting (#1487)
sfc-gh-melnacouzi Aug 26, 2024
9daa411
More actionable error message for snow init (#1488)
sfc-gh-pczajka Aug 26, 2024
a2ffad2
Refactor app package deploy logic from NativeAppManager to Applicatio…
sfc-gh-gbloom Aug 26, 2024
ad6c848
Make Snowpark to support artifacts mappings (#1497)
sfc-gh-turbaszek Aug 27, 2024
0651e8c
Docs generation updates. New line replace in help and docstring, chan…
sfc-gh-astus Aug 27, 2024
2545de0
Added `snow ws migrate` command (#1474)
sfc-gh-astus Aug 27, 2024
da86efa
Snow 1639660 cleanup "todo in 3.0" comments (#1489)
sfc-gh-pczajka Aug 27, 2024
8eca7eb
3.0.0RC release notes cut-off (#1500)
sfc-gh-jsikorski Aug 27, 2024
91577c4
Update setup processor according to new result schema (#1448)
sfc-gh-bdufour Aug 27, 2024
95fe9fc
Workspace migrate doc typo fix (#1504)
sfc-gh-astus Aug 28, 2024
2e6653c
Skip empty pages directory when deploying streamlit (#1499)
sfc-gh-astus Aug 28, 2024
ad56031
Add Windows permissions check (#1450)
sfc-gh-pczajka Aug 28, 2024
761420b
Add templating processor for native apps (#1503)
sfc-gh-melnacouzi Aug 28, 2024
a8524f0
Update CODEOWNERS with workspaces paths (#1508)
sfc-gh-gbloom Aug 29, 2024
e026152
Improve error messages on SQL execution (#1509)
sfc-gh-melnacouzi Aug 29, 2024
c74b827
`snow ws migrate` fixes #1 (#1505)
sfc-gh-jsikorski Aug 29, 2024
d011997
Workspaces application package - deploy action and command (#1461)
sfc-gh-gbloom Aug 29, 2024
66983e5
Workspaces post deploy hooks (#1507)
sfc-gh-gbloom Aug 29, 2024
292aaf8
Add sql file to main branch to test git execute command in PR 1494 (#…
sfc-gh-jvasquezrojas Aug 30, 2024
b252a01
Fixed stage commands with stages starting with @ (#1519)
sfc-gh-astus Aug 30, 2024
7b634bf
Remove template syntax from SQL command (#1514)
sfc-gh-turbaszek Aug 30, 2024
5f2c26a
Fixes to `snow ws migrate` (#1515)
sfc-gh-jsikorski Aug 30, 2024
d964371
Renamed private-key-path to private-key-file (#1506)
sfc-gh-astus Sep 2, 2024
11fe5bd
Tests cleanup for `snow ws migrate` (#1524)
sfc-gh-jsikorski Sep 2, 2024
7d00c5e
Add warehouse check in snowpark deploy (#1516)
sfc-gh-turbaszek Sep 2, 2024
70c48e5
Bump snowflake-connector-python[secure-local-storage] from 3.12.0 to …
dependabot[bot] Sep 3, 2024
9cad289
Bump typer from 0.12.4 to 0.12.5 (#1491)
dependabot[bot] Sep 3, 2024
318ac14
Bump requirements-parser from 0.10.2 to 0.11.0 (#1435)
dependabot[bot] Sep 3, 2024
69ddd63
Bump setuptools from 70.3.0 to 74.1.0 (#1528)
dependabot[bot] Sep 3, 2024
355eaeb
Raise error for duplicated keys in project definition (#1526)
sfc-gh-jsikorski Sep 3, 2024
bb0cafe
Workspaces application package - drop action and command (#1517)
sfc-gh-gbloom Sep 3, 2024
a3fc58f
Fix git execute with upper letter in directory (#1494)
sfc-gh-jvasquezrojas Sep 4, 2024
fd61620
Stage execute fix (#1525)
sfc-gh-astus Sep 4, 2024
22e30e5
Fix git setup with FQN repo names (#1530)
sfc-gh-turbaszek Sep 4, 2024
47e6936
Bump pyyaml from 6.0.1 to 6.0.2 (#1434)
dependabot[bot] Sep 4, 2024
2f4f60c
fix diag_log_path default value (#1533)
sfc-gh-pczajka Sep 5, 2024
edbb623
Check for existing streamlit before deploying anything (#1531)
sfc-gh-turbaszek Sep 5, 2024
63b00cc
Snow 1644844 git setup api integration naming fix (#1532)
sfc-gh-pczajka Sep 5, 2024
7b26ca0
SNOW-1643030 Add Native App support to `snow ws migrate` command (#1536)
sfc-gh-fcampbell Sep 5, 2024
15eb3ec
Workspaces application package - validate action and command (#1520)
sfc-gh-gbloom Sep 5, 2024
a6b2795
SNOW-1643030 Emit specific errors if manifest location can't be found…
sfc-gh-fcampbell Sep 6, 2024
c04e3a2
SNOW-1571915 Add pytest plugin to deflake tests and create a GH issue…
sfc-gh-fcampbell Sep 6, 2024
968bc86
SNOW-1653357 Refactor build_bundle to use method in ApplicationPackag…
sfc-gh-fcampbell Sep 6, 2024
32e45b3
SNOW-1643030 Convert package scripts to post-deploy hooks (#1538)
sfc-gh-fcampbell Sep 9, 2024
a236af2
Improve messaging for templates processor (#1521)
sfc-gh-melnacouzi Sep 9, 2024
544abba
Snow 1650685 fix snowpark package (#1541)
sfc-gh-pczajka Sep 9, 2024
357979d
Bump rich from 13.7.1 to 13.8.0 (#1543)
dependabot[bot] Sep 10, 2024
ecd0031
Bump pydantic from 2.8.2 to 2.9.1 (#1545)
dependabot[bot] Sep 10, 2024
d4bfa19
Bump setuptools from 74.1.0 to 74.1.2 (#1544)
dependabot[bot] Sep 10, 2024
fa8f419
Bump syrupy from 4.6.1 to 4.7.1 (#1542)
dependabot[bot] Sep 10, 2024
e209698
Fix compute pool integration test assertion (#1554)
sfc-gh-fcampbell Sep 10, 2024
2c23f10
CLI context as ContextVar: forking, asyncio, connection caching (#1518)
sfc-gh-cgorrie Sep 10, 2024
2ab812d
SNOW-1653909 Add options for choosing which entities to convert back …
sfc-gh-fcampbell Sep 10, 2024
9b695f2
Adjust tests for qa (#1548)
sfc-gh-astus Sep 11, 2024
a862c59
Update release notes after 2.8.1 release (#1551)
sfc-gh-pczajka Sep 11, 2024
1c03d58
Separate SPCS int tests (#1559)
sfc-gh-turbaszek Sep 11, 2024
892f2c6
Run tests only when code changes (#1560)
sfc-gh-turbaszek Sep 11, 2024
d959674
Remove defaults and fix mixins behavior (#1513)
sfc-gh-turbaszek Sep 11, 2024
d97301d
Revert "Run tests only when code changes (#1560)" (#1563)
sfc-gh-turbaszek Sep 11, 2024
d646047
Added script for tests on qa (#1561)
sfc-gh-astus Sep 11, 2024
a265c77
Remove V3 from RELEASE-NOTES.md (#1564)
sfc-gh-turbaszek Sep 11, 2024
4f5002e
Load private key from env variable (#1552)
sfc-gh-astus Sep 12, 2024
dfe2424
External_access_db cleanup (#1565)
sfc-gh-astus Sep 12, 2024
8bd1422
Cast database errors to click exceptions for UX (#1522)
sfc-gh-turbaszek Sep 12, 2024
0e332f5
Add latest version check (#1553)
sfc-gh-turbaszek Sep 12, 2024
2813566
Workspaces application - deploy action (#1558)
sfc-gh-gbloom Sep 12, 2024
869a48e
SNOW-1653357 Use ApplicationPackageEntity.deploy for both PDF version…
sfc-gh-fcampbell Sep 13, 2024
636402c
Workspaces application - drop action (#1572)
sfc-gh-gbloom Sep 13, 2024
c3a1e8c
SNOW-1643030 Append username template for v1.0 PDFs (#1556)
sfc-gh-fcampbell Sep 16, 2024
d5e00b8
Add override tag support in mixins (#1568)
sfc-gh-turbaszek Sep 17, 2024
963fa5d
Adding experimental integration test for large lobs feature (#1534)
sfc-gh-jvasquezrojas Sep 17, 2024
4164652
Bump version to 3.0.0rc2 (#1582)
sfc-gh-astus Sep 17, 2024
800f8fd
Add `snow ws version list` command (#1574)
sfc-gh-fcampbell Sep 17, 2024
01c17f3
Bump rich from 13.8.0 to 13.8.1 (#1579)
dependabot[bot] Sep 18, 2024
b25e326
Bump snowflake.core to 0.12.1 (#1587)
sfc-gh-turbaszek Sep 18, 2024
40fdad2
Bump snowflake-connector-python[secure-local-storage] from 3.12.1 to …
dependabot[bot] Sep 18, 2024
6215298
Bump setuptools from 74.1.2 to 75.1.0 (#1577)
dependabot[bot] Sep 18, 2024
4175aab
Bump pytest from 8.3.2 to 8.3.3 (#1576)
dependabot[bot] Sep 18, 2024
74863b3
Remove use of DictCursor for use_role (#1584)
sfc-gh-fcampbell Sep 18, 2024
6521d47
Fix negative execution time (#1583)
sfc-gh-melnacouzi Sep 18, 2024
2baaadc
Move entities definitions to respective plugins (#1581)
sfc-gh-turbaszek Sep 18, 2024
939df9b
Remove DictCursor from use_warehouse (#1588)
sfc-gh-fcampbell Sep 18, 2024
6efc4d5
Add integration test to check for backslashes on Windows (#1595)
sfc-gh-melnacouzi Sep 18, 2024
0d07af9
Add Comment Support for Streamlit App Creation (#1580)
sfc-gh-vmaleki Sep 19, 2024
8ff015c
Slash in git execute fix (#1575)
sfc-gh-astus Sep 19, 2024
4f4083d
Add imports support in Streamlit (#1590)
sfc-gh-turbaszek Sep 19, 2024
f899461
Added support for private key path nad file in integration tests (#1570)
sfc-gh-astus Sep 19, 2024
32230fe
Remove owner check in native app logic (#1589)
sfc-gh-bdufour Sep 19, 2024
98e1380
Fix incorrect test assertions (#1596)
sfc-gh-bdufour Sep 19, 2024
d8a791f
Fix app role None with ws commands (#1601)
sfc-gh-melnacouzi Sep 19, 2024
e83e040
SNOW-1653909 If we can't find an app entity to convert, only fail if …
sfc-gh-fcampbell Sep 19, 2024
fcdffcc
Fix numerical version when reading from manifest file (#1602)
sfc-gh-bdufour Sep 19, 2024
73e42d8
Added class to hide variables in tracebacks (#1599)
sfc-gh-astus Sep 20, 2024
baa623f
Rename ws migrate to migrate-definition (#1598)
sfc-gh-turbaszek Sep 20, 2024
e0a27ea
Bring back glob support in streamlit (#1605)
sfc-gh-turbaszek Sep 20, 2024
cd918df
Catch error on deploy for package with special comment (#1600)
sfc-gh-pjafari Sep 20, 2024
2f4fd4a
Don't error on a PDFv2 with multiple entities if it's not required (#…
sfc-gh-fcampbell Sep 20, 2024
73f2952
SNOW-1643309 Move version create to app package entity (#1585)
sfc-gh-fcampbell Sep 20, 2024
24d1eea
Fix DeprecationWarning in tests (#1608)
sfc-gh-fcampbell Sep 20, 2024
608450f
Disabled cortex tests on qa (#1611)
sfc-gh-astus Sep 23, 2024
3c017d6
Don't break long lines when converting v1 to v2 (#1609)
sfc-gh-fcampbell Sep 23, 2024
00fd0aa
SNOW-1643309 Move version drop to app package (#1610)
sfc-gh-fcampbell Sep 23, 2024
02f86fe
Remove NativeAppManager SQL mocks (#1617)
sfc-gh-fcampbell Sep 23, 2024
411eabb
SNOW-1677344 Move Native App entities to single modules (#1615)
sfc-gh-fcampbell Sep 24, 2024
579a01d
Bump pydantic from 2.9.1 to 2.9.2 (#1614)
dependabot[bot] Sep 24, 2024
46eb2a8
Release notes cleanup (#1618)
sfc-gh-jsikorski Sep 24, 2024
1b7482c
Fix adding new connection if connections.toml exists (#1612)
sfc-gh-turbaszek Sep 24, 2024
b63b15e
Fix release notes (#1619)
sfc-gh-turbaszek Sep 24, 2024
33c6943
Snow 1556380 object create error messages (#1613)
sfc-gh-pczajka Sep 24, 2024
1f26ddb
Move get_events and stream_events to app entity (#1616)
sfc-gh-fcampbell Sep 24, 2024
bcaec82
Cleanup private key env fix (#1624)
sfc-gh-astus Sep 25, 2024
e6eac35
Quoted name in cleanup script (#1625)
sfc-gh-astus Sep 25, 2024
668492e
Remove None envs in cleanup script (#1626)
sfc-gh-astus Sep 25, 2024
86c792f
Make NativeAppManager no longer inherit from SqlExecutionMixin (#1620)
sfc-gh-fcampbell Sep 25, 2024
f04226b
Add Execute Streamlit command for running Streamlit apps (#1603)
sfc-gh-vmaleki Sep 25, 2024
b4668c7
implement metrics counter feature tracking for NADE (#1597)
sfc-gh-mchok Sep 26, 2024
e791276
Snow 1686909 add host to connection flags (#1627)
sfc-gh-pczajka Sep 26, 2024
218b476
Don't sort keys when converting PDFv1 to v2 (#1629)
sfc-gh-fcampbell Sep 26, 2024
e91ca80
SNOW-1055755: binary releases workflow (#1357)
sfc-gh-mraba Sep 26, 2024
5f5eaef
SNOW-1653357 Remove deploy_to_scratch_stage_fn() and call deploy() di…
sfc-gh-fcampbell Sep 26, 2024
15249c2
Remove `snow app init` command (#1630)
sfc-gh-pjafari Sep 27, 2024
9a234a3
Don't output default native_app fields in v1 to v2 migration (#1632)
sfc-gh-bdufour Sep 27, 2024
d8358a9
Defer fetching role and warehouse until they're needed (#1631)
sfc-gh-fcampbell Sep 27, 2024
6caa802
SNOW-1694005: fix executable path (#1634)
sfc-gh-mraba Sep 27, 2024
505362a
Disable snowflake.local.yml migration by default, add flag to enable …
sfc-gh-fcampbell Sep 30, 2024
630e110
Removed double grave accent in docs (#1641)
sfc-gh-astus Sep 30, 2024
2edbfee
Find deeply-nested manifest.yml when converting v1 to v2 (#1637)
sfc-gh-fcampbell Sep 30, 2024
45ba096
Release notes cleanup (#1643)
sfc-gh-jsikorski Sep 30, 2024
210b943
version bump (#1653)
sfc-gh-jsikorski Oct 2, 2024
dcbec36
mraba/help-version-info: add version to tool description on help scre…
sfc-gh-mraba Oct 2, 2024
b411b3b
Update repo_meta.yaml (#1656)
sfc-gh-turbaszek Oct 2, 2024
0bf53f5
Factories for test data (#1592)
sfc-gh-pjafari Oct 2, 2024
9ab1ea3
Add simple ws dump command to show final PDF model (#1648)
sfc-gh-fcampbell Oct 2, 2024
914f7bd
SNOW-1706990 Rename v2_to_v1_decorator.py to compat.py (#1658)
sfc-gh-fcampbell Oct 2, 2024
2723509
Don't let an invalid project definition file break telemetry (#1660)
sfc-gh-fcampbell Oct 3, 2024
5b8b5d2
SNOW-1694005: MacOS binary signing (#1640)
sfc-gh-mraba Oct 3, 2024
ad09ad9
SNOW-1706990 Extract non action-related fields in ActionContext to ne…
sfc-gh-fcampbell Oct 3, 2024
42fb8bc
SNOW-1706990 Extract fields in compat module (#1663)
sfc-gh-fcampbell Oct 3, 2024
9f83cd9
Run int and e2e test after push to main (#1664)
sfc-gh-astus Oct 4, 2024
1fc572c
Allow converting PDFv1 to PDFv2 in-memory only (#1670)
sfc-gh-fcampbell Oct 4, 2024
5fc0c5b
SNOW-1706990 Add decorator to extract a single app and package from a…
sfc-gh-fcampbell Oct 4, 2024
8f92b10
SNOW-1706990 Convert `snow app diff` to v2-native (#1671)
sfc-gh-fcampbell Oct 4, 2024
d01730c
poc
sfc-gh-sichen Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 27 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
* @sfc-gh-turbaszek @sfc-gh-pjob @sfc-gh-jsikorski @sfc-gh-astus
* @snowflakedb/snowcli

# Shared ownership
**/__snapshots__/ @snowflakedb/snowcli @snowflakedb/nade
**/testing_utils/ @snowflakedb/snowcli @snowflakedb/nade
src/snowflake/cli/api/utils/ @snowflakedb/snowcli @snowflakedb/nade
**/test_data @snowflakedb/snowcli @snowflakedb/nade
tests_e2e/conftest.py @snowflakedb/snowcli @snowflakedb/nade

## Workspaces (shared ownership)
src/snowflake/cli/_plugins/workspace/ @snowflakedb/snowcli @snowflakedb/nade
src/snowflake/cli/api/entities/ @snowflakedb/snowcli @snowflakedb/nade
src/snowflake/cli/api/project/schemas/entities/ @snowflakedb/snowcli @snowflakedb/nade
tests/workspace/ @snowflakedb/snowcli @snowflakedb/nade
tests_integration/workspaces/ @snowflakedb/snowcli @snowflakedb/nade

# Native Apps Owners
**/nativeapp/ @snowflakedb/nade
**/native_app/ @snowflakedb/nade
tests_e2e/test_nativeapp.py @snowflakedb/nade

# Project Definition Owners
tests/project/ @snowflakedb/snowcli @snowflakedb/nade

# No ownership to reduce friction
RELEASE-NOTES.md
src/snowflake/cli/api/errno.py # SQL error codes
7 changes: 6 additions & 1 deletion .github/ISSUE_TEMPLATE/BUG-REPORT.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Bug Report
description: File a bug report
body:
- type: input
attributes:
label: "SnowCLI version"
description: "What version of snow are you using?"
placeholder: "Run `snow --version`"
- type: input
attributes:
label: "Python version"
description: "What version of Python are you using?"
placeholder: "Run `python --version --version`"
placeholder: "Run `python --version`"
- type: input
attributes:
label: "Platform"
Expand Down
6 changes: 5 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### Pre-review checklist
* [ ] I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
* [ ] I've added new automated tests to verify correctness of my new code.
* [ ] 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
Expand Down
10 changes: 10 additions & 0 deletions .github/repo_meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
point_of_contact: @snowflakedb/snowcli
production: true
distributed: true
modified: false
code_owners_file_present: true
release_branches:
- release-*
- main
jira_area: Developer Platform
audit_in_scope: true
81 changes: 25 additions & 56 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,74 +3,43 @@ name: Build
on:
pull_request:
branches:
- main
- "*"
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
branches:
- "**"

jobs:
- main

lint:
name: Check linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install pre-commit
run: python -m pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
define-matrix:
uses: ./.github/workflows/matrix.yaml
build:
name: Build packages
runs-on: ${{ matrix.os }}
needs: lint
needs: define-matrix
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- os: macos-latest
TARGET: macos
CMD_BUILD: >
pyinstaller snowcli.spec &&
cd ./dist/snow &&
zip -g ../../snow.zip -r .
ARTIFACT_NAME: snow-${{ github.sha }}-darwin
PATH: snow.zip
- os: windows-latest
TARGET: windows
CMD_BUILD: pyinstaller snowcli.spec
ARTIFACT_NAME: snow-${{ github.sha }}-windows
PATH: ./dist/snow/
- os: ubuntu-latest
TARGET: linux
CMD_BUILD: >
pyinstaller snowcli.spec &&
cd ./dist/snow &&
zip -g ../../snow.zip -r .
ARTIFACT_NAME: snow-${{ github.sha }}-linux
PATH: snow.zip
os: ${{ fromJSON(needs.define-matrix.outputs.os) }}
python-version: ${{ fromJSON(needs.define-matrix.outputs.python) }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
python-version: ${{ matrix.python-version }}
- name: Install Snowflake CLI
run: |
python -m pip install --upgrade pip
pip install .
pip check
pip install -U pyinstaller
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
- name: Archive python artifact
uses: actions/upload-artifact@v3
with:
name: ${{matrix.ARTIFACT_NAME}}
path: ${{matrix.PATH}}
retention-days: 7
snow --help
- name: Install dev dependencies
run: |
pip install ".[development]"
pip check
16 changes: 16 additions & 0 deletions .github/workflows/cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Environment cleanup

on:
workflow_dispatch:
schedule:
- cron: "0 10 * * *"

jobs:
tests:
uses: ./.github/workflows/test_trusted.yaml
with:
runs-on: ubuntu-latest
python-version: "3.11"
python-env: e2e
hatch-run: e2e:cleanup
secrets: inherit
5 changes: 3 additions & 2 deletions .github/workflows/jira_close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: snowflakedb/gh-actions
ref: jira_v1
token: ${{ secrets.SNOWFLAKE_GITHUB_TOKEN }} # stored in GitHub secrets
path: .
persist-credentials: false
- name: Jira login
uses: atlassian/gajira-login@master
env:
Expand All @@ -26,7 +27,7 @@ jobs:
env:
TITLE: "${{ github.event.issue.title }}"
run: |
jira=$(echo -n $TITLE | awk '{print $1}' | sed -e 's/://')
jira=$(echo -n "${TITLE}" | awk '{print $1}' | sed -e 's/://')
echo ::set-output name=jira::$jira
- name: Close issue
uses: ./jira/gajira-close
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jira_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
env:
TITLE: "${{ github.event.issue.title }}"
run: |
jira=$(echo -n $TITLE | awk '{print $1}' | sed -e 's/://')
jira=$(echo -n "${TITLE}" | awk '{print $1}' | sed -e 's/://')
echo ::set-output name=jira::$jira
- name: Comment on issue
uses: atlassian/gajira-comment@master
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/jira_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,23 @@ jobs:
&& (github.event.comment.user.login == 'sfc-gh-turbaszek'
|| github.event.comment.user.login == 'sfc-gh-astus'
|| github.event.comment.user.login == 'sfc-gh-pjob'
|| github.event.comment.user.login == 'sfc-gh-jsikorski')
|| github.event.comment.user.login == 'sfc-gh-jsikorski'
|| github.event.comment.user.login == 'sfc-gh-pczajka'
|| github.event.comment.user.login == 'sfc-gh-mraba')
)
|| (github.event_name == 'issues' && github.event.pull_request.user.login != 'whitesource-for-github-com[bot]'))
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: snowflakedb/gh-actions
ref: jira_v1
token: ${{ secrets.SNOWFLAKE_GITHUB_TOKEN }} # stored in GitHub secrets
path: .
persist-credentials: false

- name: Login
uses: atlassian/gajira-login@v2.0.0
uses: atlassian/gajira-login@v3.0.1
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
Expand All @@ -45,9 +48,10 @@ jobs:
project: SNOW
issuetype: Bug
summary: '${{ github.event.issue.title }}'
description: |
${{ github.event.issue.body }} \\ \\ _Created from GitHub Action_ for ${{ github.event.issue.html_url }}
fields: '{"customfield_11401":{"id":"14723"},"labels":["dp-snowcli","github"]}'
description: >
_Created from GitHub Action_ for ${{ github.event.issue.html_url }}
```${{ github.event.issue.body }}```
fields: '{"customfield_11401":{"id":"14723"},"labels":["dp-snowcli","github"],"parent":{"key":"SNOW-1555958"}}'

- name: Update GitHub Issue
uses: ./jira/gajira-issue-update
Expand All @@ -58,3 +62,8 @@ jobs:
owner: "{{ event.repository.owner.login }}"
name: "{{ event.repository.name }}"
jira: "${{ steps.create.outputs.issue }}"
- name: Transition issue
uses: atlassian/gajira-transition@v3
with:
issue: "${{ steps.create.outputs.issue }}"
transition: "TODO"
32 changes: 32 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Code quality checks

on:
pull_request:
branches:
- "*"
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Check code quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install pre-commit
run: python -m pip install pre-commit tomlkit
- name: Run pre-commit
run: pre-commit run --all-files
34 changes: 34 additions & 0 deletions .github/workflows/matrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: shared matrix
on:
workflow_call:
# Map the workflow outputs to job outputs
outputs:
os:
value: ${{ jobs.define-matrix.outputs.os }}
python:
value: ${{ jobs.define-matrix.outputs.python }}

jobs:
define-matrix:
runs-on: ubuntu-latest
outputs:
os: ${{ steps.os.outputs.os }}
python: ${{ steps.python.outputs.python }}
steps:
- name: Define OS versions
id: os
run: |
if [ "${{ github.event_name }}" = "schedule" ]; then
echo 'os=["windows-latest", "ubuntu-latest", "macos-latest"]' >> "$GITHUB_OUTPUT"
else
echo 'os=["windows-latest", "ubuntu-latest"]' >> "$GITHUB_OUTPUT"
fi
- name: Define python versions
id: python
run: |
if [ "${{ github.event_name }}" = "schedule" ]; then
echo 'python=["3.10", "3.11", "3.12"]' >> "$GITHUB_OUTPUT"
else
# Last supported and most frequently used
echo 'python=["3.10"]' >> "$GITHUB_OUTPUT"
fi
32 changes: 32 additions & 0 deletions .github/workflows/ok_to_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# If someone with write access comments "/ok-to-test" on a pull request, emit a repository_dispatch event
name: Ok To Test

on:
issue_comment:
types: [created]

jobs:
ok-to-test:
runs-on: ubuntu-latest
environment: ok-to-test
permissions:
pull-requests: write
# Only run for PRs, not issue comments
if: ${{ github.event.issue.pull_request }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- name: Slash Command Dispatch
uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4
env:
TOKEN: ${{ steps.app-token.outputs.token }}
with:
token: ${{ env.TOKEN }}
reaction-token: ${{ secrets.GITHUB_TOKEN }}
issue-type: pull-request
commands: ok-to-test
permission: write
7 changes: 5 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ permissions:

jobs:
deploy:
environment: release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
Expand Down
Loading