Skip to content

Direct engine fixes#5864

Open
radakam wants to merge 2 commits into
mainfrom
deco-25361-direct-engine-fixes
Open

Direct engine fixes#5864
radakam wants to merge 2 commits into
mainfrom
deco-25361-direct-engine-fixes

Conversation

@radakam

@radakam radakam commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes two direct-engine deploy bugs found via invariant fuzzing (#5686):

  • SQL warehouse redeploy hang: Editing a warehouse restarts it (the Edit API returns a WaitGetWarehouseRunning waiter), so DoUpdate now reconciles the start/stop decision from the post-edit RUNNING state instead of the stale pre-plan state. A redeploy with lifecycle.started=false no longer hangs waiting for STOPPED.
  • registered_models alias drift: DoRead fetches with IncludeAliases=false and aliases live on model versions via a separate API, so GET never echoes them back. A config that set aliases reported a perpetual update; it's now classified ignore_remote_changes / input_only so plans converge.

Each fix includes an acceptance regression test.

radakam added 2 commits July 8, 2026 13:36
Editing a warehouse restarts it (the Edit API returns a
WaitGetWarehouseRunning waiter), so DoUpdate must reconcile the
started/stopped decision from RUNNING rather than the stale pre-plan
state. Without this a redeploy with lifecycle.started=false hung waiting
for STOPPED because no Stop was ever issued after the Edit.

Adds an acceptance test covering the edit + started=false path.
DoRead fetches with IncludeAliases=false and aliases live on model
versions via a separate API, so GET never echoes them back. A config that
sets aliases reported a perpetual in-place update and never converged.
Classify aliases as ignore_remote_changes/input_only.

Adds an acceptance test that deploys a model with aliases, edits the
comment, and asserts the re-plan is a no-op.
@radakam radakam temporarily deployed to test-trigger-is July 8, 2026 13:53 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is July 8, 2026 13:53 — with GitHub Actions Inactive
@radakam radakam marked this pull request as ready for review July 8, 2026 13:55
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Approval status: pending

/acceptance/bundle/ - needs approval

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

/bundle/ - needs approval

Files: bundle/direct/dresources/resources.yml, bundle/direct/dresources/sql_warehouse.go
Suggested: @denik
Also eligible: @pietern, @andrewnester, @janniklasrose, @shreyas-goenka, @anton-107, @lennartkats-db

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

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: bfe52be

Run: 28948081051

Env 🟨​KNOWN 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 230 1071 4:27
💚​ aws windows 4 4 232 1069 3:56
💚​ aws-ucws linux 4 4 314 989 9:15
🔄​ aws-ucws windows 2 4 4 314 987 5:43
🟨​ azure linux 2 1 1 4 230 1070 7:11
💚​ azure windows 4 4 232 1068 4:14
🔄​ azure-ucws linux 3 1 4 316 986 13:05
🔄​ azure-ucws windows 2 2 4 318 984 8:37
💚​ gcp linux 4 4 229 1072 4:15
💚​ gcp windows 4 4 231 1070 3:57
10 interesting tests: 4 SKIP, 3 flaky, 2 KNOWN, 1 RECOVERED
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🔄​ TestFilerReadWrite ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p
🔄​ TestFilerReadWrite/dbfs ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p ✅​p ✅​p ✅​p
🟨​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 🟨​K 💚​R 🔄​f 💚​R 💚​R 💚​R
🟨​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R 🟨​K 💚​R 🔄​f 🔄​f 💚​R 💚​R
🔄​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 🔄​f 💚​R 🔄​f 🔄​f 💚​R 💚​R
Top 5 slowest tests (at least 2 minutes):
duration env testname
3:08 azure-ucws windows TestAccept
3:06 gcp windows TestAccept
3:03 azure windows TestAccept
3:01 aws windows TestAccept
2:55 aws-ucws windows TestAccept

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