Repository navigation
Keep PostgreSQL plan snapshots stable when GET echoes spec - #7503
janniklasrose wants to merge 3 commits into
Conversation
|
Commit: Regression test reportSelected 3 changed tests (limit=20, 0 not selected) 6 tests: regression=0 unreleased=0 coverage=6 failing=0
|
…s-plan-snapshot-parity
✅ Integration test reportCommit: e147f9e
7 interesting tests: 7 flaky
Top 36 slowest tests (at least 2 minutes):
|
…s-plan-snapshot-parity
Sankalp-Mittal
left a comment
There was a problem hiding this comment.
[AI Generated] Review by review-factory (Claude Opus 5.5 + Claude Fable 5.2, cross-verified). Only points the reviewers agreed on are posted.
| trace $CLI bundle plan -o json | nostamp | jq '.plan."resources.postgres_projects.my_project" | {action, changes}' > out.plan.json | ||
| # Whether GET echoes spec affects unchanged fields and remote metadata, not the | ||
| # planned removal. The project reads also assert that its value stays unchanged. | ||
| trace $CLI bundle plan -o json | nostamp | jq '.plan."resources.postgres_projects.my_project" | {action, changes} | del(.changes[] | select(.action == "skip")) | del(.changes[].remote)' > out.plan.json |
There was a problem hiding this comment.
[AI Generated] update_history_retention/script:19 and update_suspend_timeout/script:29 deploy the same bundles and still snapshot the spec:input_only skips unfiltered. Do they pass on Azure, or do they need this filter too?
| trace $CLI bundle plan -o json | nostamp | jq '.plan."resources.postgres_endpoints.my_endpoint" | {action, changes}' > out.plan.json | ||
| # Whether GET echoes spec affects unchanged fields and remote metadata, not the | ||
| # planned removal. The endpoint reads also assert that its value stays unchanged. | ||
| trace $CLI bundle plan -o json | nostamp | jq '.plan."resources.postgres_endpoints.my_endpoint" | {action, changes} | del(.changes[] | select(.action == "skip")) | del(.changes[].remote)' > out.plan.json |
There was a problem hiding this comment.
[AI Generated] The same skip/remote jq filter is pasted five times across three scripts. Could it be one shared helper, e.g. next to project_fields/endpoint_fields in script.prepare or as a plan_filter.py option after rebasing?
Changes
Compare planned updates in three PostgreSQL acceptance tests, excluding skipped fields and remote metadata from their plan snapshots. Keep the existing error, request, and retained-value assertions.
Why
The live API echoes some
specfields on GET, while the test server omits them. This changesspec:input_onlyentries and remote values without changing the planned operations. All six test variants fail on clean main in Azure. These failures also block #7006 and #7496.Tests
Regenerated the snapshots locally; the changed tests also pass under Go 1.27.3. All six Azure variants pass with the updated snapshots; one was rerun after a workspace state-upload timeout. The unmodified main baseline failed all six variants.
Formatting, repository checks, and full lint pass. Before the latest merge from main, the full Linux/macOS/Windows CI matrix and all six cloud CI jobs passed across AWS, Azure, and GCP on Linux and Windows. CI is rerunning for the refreshed head; the fixture diff is unchanged.
This PR was written with Codex.