Repository navigation
Register existing file state into best-effort deployment history - #7171
Conversation
|
Commit: Regression test reportSelected 20 changed tests (limit=20, 8 not selected) 21 tests: regression=19 unreleased=0 coverage=2 failing=0
TestAccept/bundle/deploy/readplan/lineage-mismatch/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): same output as main (4d88efe) TestAccept/bundle/dms/bind-unbind-unsupported/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): same output as main (4d88efe) TestAccept/bundle/dms/declined-deploy/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): TestAccept/bundle/dms/depends-on/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): same output as main (4d88efe) TestAccept/bundle/dms/deployment-metadata-change/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): same output as main (4d88efe) TestAccept/bundle/dms/existing-state/DMS=: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): same output as main (4d88efe) TestAccept/bundle/dms/failed-delete/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): same output as main (4d88efe) TestAccept/bundle/dms/failed-recreate/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): TestAccept/bundle/dms/migration-before-deploy/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): TestAccept/bundle/dms/migration-fails-open/DMS=true: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): same output as main (4d88efe) TestAccept/bundle/dms/migration/DMS=: branch ✅ | main (4d88efe) ❌ | latest (v1.22.1) ❌main (4d88efe): latest (v1.22.1): same output as main (4d88efe) 8 more failure details omitted, see the full report in the run. |
Integration test reportCommit: 482da0c
Top 20 slowest tests (at least 2 minutes):
|
f9da0d8 to
10da8f6
Compare
4017609 to
0b70621
Compare
10da8f6 to
e4f88b3
Compare
0b70621 to
d2f84b5
Compare
e4f88b3 to
06e09d2
Compare
d2f84b5 to
7767812
Compare
06e09d2 to
a682521
Compare
7767812 to
fd7ab56
Compare
a682521 to
4661cf7
Compare
fd7ab56 to
9ca0c3e
Compare
4661cf7 to
24b5917
Compare
9ca0c3e to
30e3aef
Compare
24b5917 to
6a7fbc8
Compare
30e3aef to
e977af6
Compare
6a7fbc8 to
ee4757c
Compare
e977af6 to
0471b06
Compare
ee4757c to
10360b9
Compare
0471b06 to
8542de3
Compare
10360b9 to
eeb8a3f
Compare
8542de3 to
f1e49cf
Compare
eeb8a3f to
98b7afd
Compare
f1e49cf to
ed3ba2e
Compare
98b7afd to
97c8e12
Compare
ed3ba2e to
8692c4f
Compare
97c8e12 to
fa7bad4
Compare
8692c4f to
8ca44ba
Compare
fa7bad4 to
a0f283d
Compare
8ca44ba to
49f895d
Compare
a0f283d to
f0b19b7
Compare
49f895d to
91e0249
Compare
f0b19b7 to
4985114
Compare
91e0249 to
8f9a4fa
Compare
4985114 to
67edb09
Compare
8f9a4fa to
bbd5aa4
Compare
67edb09 to
4b60136
Compare
bbd5aa4 to
7d6a9cf
Compare
4b60136 to
d5ba271
Compare
7d6a9cf to
de2849a
Compare
d5ba271 to
303c00e
Compare
de2849a to
83de547
Compare
482da0c to
ed93e75
Compare
ed93e75 to
a0136d2
Compare
Enabling best-effort history through YAML or the environment flag now attempts
INITIAL_REGISTERfor existing file state before normal deployment planning. IDs, payloads, and dependencies remain inresources.json. Empty snapshots skip registration versions.max(file serial, latest DMS version) + 1, and persist the enforced-history marker as a separate phase.Saved plans cannot enable initial registration; Terraform state must first migrate to direct with history disabled. Existing DMS-only state remains supported.
Stack: #7151 → #7169 → #7171 (this PR). Adapts #6989.
Validation: affected Go/race tests and lint pass. Acceptance coverage checks backups, IDs/dependencies, repeat registration, planning failure/decline, environment-only opt-in, and fail-open uploads. Regression tests cover state changing before migration and independent file/service counters.