Commit f8b4137
committed
feat(amplify-gen2-migration-e2e-system): add decommission step to
E2E migration flow
Wire `gen2-migration decommission` into `App.migrate()` so the
E2E system exercises the full migration lifecycle including Gen1
teardown. After the final `testSharedData()`, the flow checks out
the Gen1 branch, runs `amplifyPullNonInteractive` to restore
`amplify-meta.json` (which is gitignored and missing after branch
switch), then runs `decommission` and verifies the Gen2 app still
works via `testGen2()`.
The `decommission()` method follows the same pattern as the
existing `refactor()` — delegates to `runMigrationStep()` with
no extra args. The `amplifyPullNonInteractive` call reads the
appId from `team-provider-info.json` (which is tracked in git).
Apps with `skipRefactor=true` are unaffected since the new calls
live after the early return in `migrate()`.
E2E runs confirmed the wiring works: `backend-only` and
`store-locator` completed the full flow including decommission
and post-decommission `testGen2`.
---
Prompt: Add decommission step to E2E migration flow after
refactor, followed by testGen2() to verify the Gen2 app is
self-contained after Gen1 teardown. Run E2Es on all 9 apps
in parallel.1 parent e4bab36 commit f8b4137
1 file changed
Lines changed: 23 additions & 1 deletion
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
| |||
301 | 306 | | |
302 | 307 | | |
303 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
304 | 316 | | |
305 | 317 | | |
306 | 318 | | |
| |||
460 | 472 | | |
461 | 473 | | |
462 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
463 | 485 | | |
464 | 486 | | |
465 | 487 | | |
| |||
0 commit comments