Skip to content

Snowflake Apps: Use artifact repository only#2881

Merged
sfc-gh-gbloom merged 2 commits intomainfrom
gbloom/snowflake-apps-default-artifact-repo
Apr 17, 2026
Merged

Snowflake Apps: Use artifact repository only#2881
sfc-gh-gbloom merged 2 commits intomainfrom
gbloom/snowflake-apps-default-artifact-repo

Conversation

@sfc-gh-gbloom
Copy link
Copy Markdown
Contributor

@sfc-gh-gbloom sfc-gh-gbloom commented Apr 13, 2026

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 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.
  • I've described my changes in the documentation.

Changes description

For snow __app deploy, use only artifact-repository (drop support for image repository). If a specific artifact_repository was not specified in snowflake.yml or config table, a new artifact repository named <APP_ID>_REPO will be created.

@sfc-gh-gbloom sfc-gh-gbloom marked this pull request as ready for review April 13, 2026 19:05
@sfc-gh-gbloom sfc-gh-gbloom requested a review from a team as a code owner April 13, 2026 19:05
@sfc-gh-gbloom sfc-gh-gbloom changed the title Snowflake Apps: Use artifact repository by default Snowflake Apps: Use artifact repository only Apr 13, 2026
@sfc-gh-gbloom sfc-gh-gbloom requested a review from a team as a code owner April 14, 2026 12:43
@sfc-gh-gbloom sfc-gh-gbloom force-pushed the gbloom/snowflake-apps-default-artifact-repo branch 4 times, most recently from 23d5d5a to 31949a5 Compare April 16, 2026 15:15
Replace the image-repository deploy path with artifact repositories as
the sole build/deploy mechanism. Every app now gets a per-app artifact
repo named `<app-id>_REPO` by default (overridable via YAML, SnowApps
params, or config table).

- Add artifact_repository to _resolve_deploy_defaults with 5-tier
  precedence (yml > params > config table > built-in > session)
- Remove image-repo branching from deploy(); always use artifact repo
- Remove unused image-repo methods and helpers
- Omit artifact_repository from generated snowflake.yml (convention)
- Warn when image_repository is configured but ignored
- Update all tests for new default behavior

Made-with: Cursor
@sfc-gh-gbloom sfc-gh-gbloom force-pushed the gbloom/snowflake-apps-default-artifact-repo branch from 31949a5 to c96f2b0 Compare April 17, 2026 12:38
Comment thread src/snowflake/cli/_plugins/apps/commands.py
sfc-gh-jfloyd
sfc-gh-jfloyd previously approved these changes Apr 17, 2026
… deployments

The teardown command was lost during a merge conflict resolution.
Re-add it with support for both deploy paths: artifact-repo deployments
use DROP APPLICATION SERVICE, while legacy image-repo deployments use
DROP SERVICE and also clean up the build job service.

Made-with: Cursor
@sfc-gh-gbloom sfc-gh-gbloom force-pushed the gbloom/snowflake-apps-default-artifact-repo branch from c96f2b0 to 443a4e9 Compare April 17, 2026 14:16
@sfc-gh-gbloom sfc-gh-gbloom enabled auto-merge (squash) April 17, 2026 14:17
@sfc-gh-gbloom sfc-gh-gbloom merged commit 11cd440 into main Apr 17, 2026
30 checks passed
@sfc-gh-gbloom sfc-gh-gbloom deleted the gbloom/snowflake-apps-default-artifact-repo branch April 17, 2026 14:58
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.

2 participants