Skip to content

Added support for lifecycle.started for SQL warehouses#5348

Open
andrewnester wants to merge 1 commit into
mainfrom
feat/lifecycle-started-sql-warehouse
Open

Added support for lifecycle.started for SQL warehouses#5348
andrewnester wants to merge 1 commit into
mainfrom
feat/lifecycle-started-sql-warehouse

Conversation

@andrewnester
Copy link
Copy Markdown
Contributor

Changes

Added support for lifecycle.started for SQL warehouses

Why

Without this field, warehouses defined in a bundle are always left in whatever state the API puts them in after creation.
Users have no way to declare "ensure this sql warehouse is running after every deploy."

lifecycle.started: true guarantees the warehouse is RUNNING after bundle deploy.
lifecycle.started: false creates the warehouse but immediately terminates it, and subsequent deploys that detect drift (e.g., someone started the warehouse manually) will stop it again.

Tests

Added acceptance tests

@github-actions
Copy link
Copy Markdown
Contributor

Approval status: pending

/acceptance/bundle/ - needs approval

15 files changed
Suggested: @denik
Also eligible: @pietern, @shreyas-goenka, @janniklasrose, @anton-107, @lennartkats-db

/bundle/ - needs approval

5 files changed
Suggested: @denik
Also eligible: @pietern, @shreyas-goenka, @janniklasrose, @anton-107, @lennartkats-db

General files (require maintainer)

Files: libs/testserver/handlers.go, libs/testserver/sql_warehouses.go
Based on git history:

  • @denik -- recent work in libs/testserver/, bundle/direct/dresources/, bundle/config/resources/

Any maintainer (@anton-107, @denik, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db) can approve all areas.
See OWNERS for ownership rules.

@eng-dev-ecosystem-bot
Copy link
Copy Markdown
Collaborator

Commit: 0af4cd1

Run: 26518452865

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