Skip to content

Open deployment state read-only before upgrading writes - #7199

Draft
shreyas-goenka wants to merge 1 commit into
mainfrom
shreyas-goenka_data/stack/deployment-history-open-readonly
Draft

shreyas-goenka wants to merge 1 commit into
mainfrom
shreyas-goenka_data/stack/deployment-history-open-readonly

Conversation

@shreyas-goenka

@shreyas-goenka shreyas-goenka commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Make Open(ctx, path, withRecovery) read only the file checkpoint and recover its WAL. Remove both the mode argument and OpenDmsArgs. DMS-authoritative deployments explicitly call LoadDMSState before planning; that step loads service resources and validates the cached serial against the service version. All modes enable writes through UpgradeToWrite after approval.

Bind and unbind retain their DMS-authoritative-state checks.

Stacked on #7204.

Validation: affected unit tests plus DMS, bind/unbind, WAL recovery, saved-plan, generate, and jobs/update acceptance tests pass. Tests cover loading DMS resources and version counters, and rejecting DMS-only bind/unbind without modifying the checkpoint. Go lint reports no issues.

@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch 2 times, most recently from 910e30f to 9fde869 Compare October 27, 2026 17:10
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from 9fde869 to 7bbb418 Compare October 27, 2026 17:29
@shreyas-goenka
shreyas-goenka changed the base branch from shreyas-goenka_data/stack/deployment-history-setting-unenforced to shreyas-goenka_data/stack/deployment-history-bind-unbind October 27, 2026 17:29
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: df27255

Run: 40683103122

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 281 15 6:06
✅​ aws-windows-latest-4core-16gb 283 13 4:26
✅​ azure linux-2core-8gb 280 15 6:23
✅​ azure-windows-latest-4core-16gb 282 13 3:31
✅​ gcp linux-2core-8gb 281 15 6:22
✅​ gcp-windows-latest-4core-16gb 283 13 3:48
Top 6 slowest tests (at least 2 minutes):
duration env testname
3:50 gcp linux-2core-8gb TestAccept
3:48 azure linux-2core-8gb TestAccept
3:37 aws linux-2core-8gb TestAccept
3:19 aws-windows-latest-4core-16gb TestAccept
3:13 gcp-windows-latest-4core-16gb TestAccept
3:09 azure-windows-latest-4core-16gb TestAccept

@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from 7bbb418 to 336e45d Compare October 27, 2026 23:11
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from 336e45d to d792f34 Compare October 27, 2026 23:22
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from d792f34 to b86afcb Compare October 27, 2026 23:27
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from b86afcb to 7a44efa Compare October 27, 2026 23:40
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from 7a44efa to 96506a6 Compare October 27, 2026 23:54
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from 96506a6 to ecf5a72 Compare October 28, 2026 00:07
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from ecf5a72 to 6889cbc Compare October 28, 2026 00:18
@shreyas-goenka
shreyas-goenka removed this pull request from stack #7208 October 28, 2026 00:53
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from 6889cbc to f0df6cc Compare October 28, 2026 00:54
@shreyas-goenka
shreyas-goenka changed the base branch from shreyas-goenka_data/stack/deployment-history-bind-unbind to shreyas-goenka_data/stack/deployment-history-generate October 28, 2026 00:54
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from f0df6cc to 2a6f265 Compare October 28, 2026 10:06
@github-actions github-actions Bot added the DABs DABs related issues label Oct 28, 2026
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from 2a6f265 to 21c053b Compare October 28, 2026 10:58
Base automatically changed from shreyas-goenka_data/stack/deployment-history-generate to main October 28, 2026 11:50
Addresses denik review comment 4387774406. Remove Open mode selection; use loaded feature markers for the resource source and UpgradeToWrite for write policy. Nil DMS metadata retains file-only compatibility checks for bind and unbind.
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/stack/deployment-history-open-readonly branch from 21c053b to df27255 Compare October 28, 2026 11:50

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

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants