Skip to content

acc: re-enable stale-read injection without the engine matrix - #6941

Merged
denik merged 1 commit into
mainfrom
denik/fix-recreate-capped-injection
Oct 6, 2026
Merged

denik merged 1 commit into
mainfrom
denik/fix-recreate-capped-injection

Conversation

@denik

@denik denik commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Changes

The testserver's stale-read / never-finishing-delete injection (staleOnceEnabled in acceptance/internal/prepare_server.go) required both INJECT_STALE_ON_DIRECT=1 and DATABRICKS_BUNDLE_ENGINE=direct. Now it only requires INJECT_STALE_ON_DIRECT=1.

Why

#6877 removed the terraform engine from the acceptance matrix, so DATABRICKS_BUNDLE_ENGINE is no longer set and the injection silently turned off. Running -update in that PR then regenerated postgres_synced_tables/recreate_capped with a successful recreate (Recreated postgres_synced_tables.my_table). The test exists to check the opposite: its section title is "the capped wait times out and the recreate fails". It has been passing on main without checking anything since.

With the gate fixed, the golden is back to exactly what #6728 committed: the DATABRICKS_BUNDLE_RESOURCE_MAX_WAIT timeout error. The dashboards tests that also set INJECT_STALE_ON_DIRECT pass unchanged.

Tests

TestAccept/bundle/resources/(postgres_synced_tables|dashboards)

This pull request and its description were written by Isaac.

staleOnceEnabled also required DATABRICKS_BUNDLE_ENGINE=direct. Since #6877
dropped the engine matrix, that variable is unset, so the injection was off
and recreate_capped's golden was regenerated to a successful recreate instead
of the capped-wait timeout it tests. Gate on INJECT_STALE_ON_DIRECT alone.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added the DABs DABs related issues label Oct 6, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: d915481

Run: 37432305865

Env ✅​pass 🙈​skip Time
✅​ aws linux 276 17 5:52
✅​ aws windows 278 15 2:54
✅​ azure linux 275 17 5:01
✅​ azure windows 277 15 3:01
✅​ gcp linux 276 17 5:51
✅​ gcp windows 278 15 2:57
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:54 aws linux TestAccept
3:49 gcp linux TestAccept
2:49 azure linux TestAccept

@denik
denik marked this pull request as ready for review October 6, 2026 10:03
@denik
denik requested review from a team as code owners October 6, 2026 10:03
denik added a commit that referenced this pull request Oct 6, 2026
Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik enabled auto-merge October 6, 2026 11:04
@denik
denik added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit 61bd589 Oct 6, 2026
25 checks passed
@denik
denik deleted the denik/fix-recreate-capped-injection branch October 6, 2026 11:17
denik added a commit that referenced this pull request Oct 6, 2026
Co-authored-by: Isaac <no-reply@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants