Skip to content

acc: add CLI-only test for clearing a Genie space description - #7177

Draft
denik wants to merge 1 commit into
mainfrom
denik/genie-clear-description-test
Draft

denik wants to merge 1 commit into
mainfrom
denik/genie-clear-description-test

Conversation

@denik

@denik denik commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Changes

New cmd/workspace/genie-clear-description test: replays the create/update requests the direct engine sends for a genie space (plain genie create-space / update-space / get-space, no bundles), then polls GET for ~30s. Each round is classified as CONVERGED, STALE_READ (old description, then cleared for good), LOST_UPDATE (cleared, then old description returns) or NOT_APPLIED; anything other than CONVERGED prints the timeline (description, serialized_space version, etag per poll). Rounds vary the delay between create and update (0/3/6/10s on cloud).

Why

bundle/invariant/no_drift/DMS=/INPUT_CONFIG=genie_space.yml.tmpl/READPLAN= flaked on AWS in nightly 40247677044: after the field-removal deploy cleared description, the next plan still read the old value. The CLI force-sends description: "" (#6789), so it's either a stale read or the backend losing the update (e.g. to the async serialized_space v1 -> v2 migration). This test tells which.

Tests

Passes locally against the testserver. Cloud run pending.

This pull request and its description were written by Isaac.

bundle/invariant/no_drift with genie_space.yml.tmpl flakes on cloud: after an
update that clears the description, the next GET still returns the old one.
Replay the direct engine's create/update requests with plain genie commands
and poll GET to tell a stale read from a lost update.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions

Copy link
Copy Markdown
Contributor

Commit: bf5dcc5bd | Workflow run

Regression test report

Selected 1 changed tests (limit=20, 0 not selected)

1 tests: regression=0 unreleased=0 coverage=1 failing=0

test branch main (b9c6b80) latest (v1.22.1)
TestAccept/cmd/workspace/genie-clear-description ✅ ✅ ✅

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: bf5dcc5

Run: 40295175995

Env ❌​FAIL ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 282 15 5:55
❌​ aws-windows-latest-4core-16gb 2 282 13 6:05
✅​ azure linux-2core-8gb 281 15 5:45
❌​ azure-windows-latest-4core-16gb 2 281 13 6:44
✅​ gcp linux-2core-8gb 282 15 5:39
❌​ gcp-windows-latest-4core-16gb 2 282 13 4:33
Test Name aws-windows-latest-4core-16gb azure-windows-latest-4core-16gb gcp-windows-latest-4core-16gb
❌​ TestAccept ❌​F ❌​F ❌​F
❌​ TestAccept/cmd/workspace/genie-clear-description ❌​F ❌​F ❌​F
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:15 azure linux-2core-8gb TestAccept/cmd/workspace/genie-clear-description
3:13 aws linux-2core-8gb TestAccept/cmd/workspace/genie-clear-description
3:05 gcp linux-2core-8gb TestAccept/cmd/workspace/genie-clear-description

This branch has not been deployed

No deployments
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