Repository navigation
v2.2.0
stackql-deploy v2.2.0
Features
teardown --on-failure ignoreis now honoured. Adeletestatement the provider rejects is logged atwarnlevel, the resource is reported as not confirmed deleted, and the teardown continues with the next resource; the default (error) still aborts at the first failure. Fatal errors (network, auth, planner) abort in both modes. Every teardown now ends with a summary of resources whose delete could not be confirmed.rollbackis not meaningful for teardown and is treated aserror.- Added a live integration test suite (
tests/live.rs,tests/live_stacks/) that runs the real binary against real providers using free resources only: AWS SSM Parameter Store parameters (Cloud Control and native API) and GitHub repository labels. It covers create withRETURNING *,return_vals,callback,statecheck,PatchDocumentupdates,createorupdate,query/command/scriptresources, conditions,file(),merge, per-environment values, protected masking, stack exports,testpass and fail,teardownwithskip_on_delete,--on-failure, and idempotent re-runs. The tests are#[ignore]d forcargo test;ci-scripts/integration-test.shruns them, and the newIntegration Testsworkflow runs them on pull requests tomainas a merge gate (replacing theTest Demoplaceholder workflow). Seetests/README.md. - Added
skip_on_delete: truefor resources (#56). Aqueryresource with this flag is not executed duringteardownand its declared exports are set to<unknown>; aresourceormultiresource with this flag still has its exports collected (a downstreamdeletemay need them) but itsdeletequery is not executed, so the resource is retained. The flag has no effect onbuildortest. - Added an integration test suite (
tests/) that drives thebuildandteardownflows against an in-process mock stackql server speaking the PostgreSQL wire protocol, with fixture stacks undertests/fixtures/. Tests assert on the exact statements sent and need no stackql binary, provider registry, network access, or cloud credentials.ci-scripts/test.shnow runscargo test, and the CI workflow triggers ontests/**andci-scripts/**changes. To support this, the crate now has a library target alongside the binary; it is not a public API.
Fixes
- Teardown no longer executes queries that interpolate the
<unknown>export placeholder. When an upstream resource had already been deleted (for example by an earlier, partially successful teardown), its exports were set to<unknown>and then substituted into downstreamexists,exports,delete, and inlinesqlqueries. For a Databricks workspace this producedhttps://<unknown>.cloud.databricks.com/..., a fataldial tcp ... no such hosterror, and an aborted teardown that could never complete. Such queries are now skipped with a log line naming the resource and anchor, and the dependent resource's exports are themselves marked<unknown>so the skip propagates consistently. - Teardown now tolerates a non-fatal provider error on an
exportsquery (fatal network and auth errors still abort). The resource's exports are marked<unknown>with a warning and the teardown continues; previously the error aborted the run. - Teardown no longer aborts on stacks that contain a
scriptresource. Export collection tried to load a.iqlfile for the script and exited when it was not found; script exports are now marked<unknown>(scripts are never executed on teardown). - Inline
sqlonqueryresources is rendered tolerantly during teardown: a missing template variable skips the query instead of exiting the process. - The
testcommand now evaluatesifconditions (it previously processed every resource regardless) and runsscriptresources the same waybuilddoes (it previously exited withunknown resource type: script). - A
--dry-runteardown now renders and logs eachdeletestatement. Previously the dry-run exists check reported every resource as not found, so the run only showed "skipping delete". - The
<evaluated>and<unknown>export placeholders are no longer registered for log redaction when the export isprotected. Previously a protected export in a dry run registered<evaluated>as a secret, which then masked every other placeholder in the run as********. - Command failures that are ignored (
multiresources, and now--on-failure ignore) are logged atwarnlevel instead ofdebug. - A
callback:delete(or genericcallback) anchor no longer aborts a--dry-runteardown, or a teardown whose delete returned noRETURNING *row. Callbacks poll the handle returned byRETURNING *, so they are now skipped with a log line when there is nothing to poll, matchingbuild. - The
postdelete_retriesandpostdelete_retry_delayoptions on theexistsanchor are now honoured, as documented (defaults 10 and 5). They were parsed but never used: the post-delete check ran once immediately and once more after thedeleteanchor'sretry_delay, which defaults to 0, so an asynchronous delete (Cloud Control, most SaaS APIs) could only be confirmed by luck of timing. After each delete attempt the exists query now polls until the resource is gone, up topostdelete_retriestimes,postdelete_retry_delayseconds apart; only then is the delete re-issued, up to thedeleteanchor'sretries. - The
callback:deleteanchor now runs before the post-delete check rather than after it, so a provider's asynchronous delete is polled to completion before the resource is checked for absence.
Download
| Platform | Architecture | Asset |
|---|---|---|
| Linux | x86_64 | stackql-deploy-linux-x86_64.tar.gz |
| Linux | arm64 | stackql-deploy-linux-arm64.tar.gz |
| macOS | Universal (Apple Silicon + Intel) | stackql-deploy-macos-universal.tar.gz |
| Windows | x86_64 | stackql-deploy-windows-x86_64.zip |
Each archive contains a single binary named stackql-deploy (or stackql-deploy.exe on Windows). Verify your download with SHA256SUMS.
Install (quick)
Linux / macOS:
curl -L https://get-stackql-deploy.rs -o stackql-deploy.tar.gz && tar xz stackql-deploy.tar.gzWindows (PowerShell):
Invoke-WebRequest -Uri https://get-stackql-deploy.rs -OutFile stackql-deploy.zip
Expand-Archive stackql-deploy.zip -DestinationPath .cargo:
cargo install stackql-deployFull documentation: stackql-deploy.io - Source: github.com/stackql/stackql-deploy