Commit 6597ea0
authored
chore(gen2-migration): stable & e2e based snapshots (#14782)
* feat(amplify-gen2-migration-e2e-system): add snapshot normalization
Add a normalize script that replaces run-specific values
(deploymentName, envName, envHash, sandboxHash, commitHash,
CFN nested stack hashes) with stable placeholders in snapshot
filenames and content, making snapshots deterministic across
e2e runs.
Use a fixed --identifier e2e for ampx sandbox deployments
instead of deriving the stack prefix from os.userInfo().username.
Regenerate and normalize project-boards snapshots.
---
Prompt: commit everything
* chore: reset project-boards snapshots
* chore: regen project-boards snapshots with e2e
* chore: normalization script to project-boards
* chore: mid work
* chore: new snapshots take 1
* chore: normalize snapshots after e2e run
* chore: snapshots again
* chore: normalize skip replaced hashes
* chore: more snapshots
* chore: fixed length replacement
* chore: new snapshots
* chore: new snapshots
* chore: new snapshots
* chore: sanitize all outputs
* chore: sanitize all outputs
* chore: sanitize based on outputs
* chore: restore snapshots
* chore: restore snapshots
* chore: restore snapshots
* chore: restore snapshots
* snapshots
* snapshots
* snapshots
* snapshots
* chore: mid work
* chore: more snapshots
* chore: regen project-boards pre.generate
* chore: fix scripts
* chore: restore gen2-migration snapshots
* chore: regen project-boards snapshots
* chore: regen project-boards snapshots
* chore: regen discussions snapshots
* chore: regen project-boards snapshots
* chore: restore gen2-migration fitness-tracker snapshots
* chore: restore gen2-migration product-catalog snapshots
* chore: regen discussions snapshots
* chore: restore gen2-migration store-locator snapshots
* chore: restore gen2-migration media-vault snapshots
* chore: restore gen2-migration backend-only snapshots
* chore: restore gen2-migration mood-board snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* refactor(amplify-gen2-migration-e2e-system): clean up sanitize and
normalize, update docs
Remove getAllFiles wrapper, unused os import, and username
sanitization from sanitize.ts. Fix orphaned JSDoc in
normalize.ts. Update sanitize JSDoc to reflect current behavior.
Add snapshot post-processing documentation to the E2E system
README covering normalization and sanitization steps. Slim down
the migration-apps README to point to the E2E README for details
while keeping the manual invocation instructions local.
---
Prompt: commit
* chore: update yarn.lock
* chore: restore gen2-migration snapshot
* chore: restore gen2-migration snapshot
* refactor(amplify-gen2-migration-e2e-system): remove output value
replacements, restore gen2 API key sanitization
Remove the output value replacement logic from sanitize.ts — it
was replacing values inside pre.generate snapshots that the
generate command depends on. Restore the original gen2 API key
extraction and sanitization. Normalize now only renames files,
no content replacement.
---
Prompt: commit
* fix(amplify-gen2-migration-e2e-system): remove da2- prefix guard
on API key sanitization
---
Prompt: made some changes, commit
* chore: regen snapshots
* feat: add normalize script to all apps
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: regen snapshots
* chore: lock file
* chore: regen snapshots1 parent e313e27 commit 6597ea0
File tree
4,152 files changed
+200889
-199945
lines changed- amplify-migration-apps
- backend-only
- _snapshot.post.generate
- amplify
- data
- storage
- _snapshot.post.refactor
- _snapshot.pre.generate
- amplify
- #current-cloud-backend
- api/backendonly
- build
- resolvers
- stacks
- resolvers
- auth/backendonlyf8c4c57b
- build
- awscloudformation/build
- api/backendonly/build
- auth/backendonlyf8c4c57b/build
- awscloudformation/build
- function/quotegeneratorbe
- storage/s3c31471c3/build
- function/quotegeneratorbe
- src
- storage/s3c31471c3
- build
- .config
- backend
- api/backendonly
- build
- resolvers
- stacks
- resolvers
- auth/backendonlyf8c4c57b
- build
- awscloudformation/build
- api/backendonly/build
- auth/backendonlyf8c4c57b/build
- awscloudformation/build
- function/quotegeneratorbe
- storage/s3c31471c3/build
- function/quotegeneratorbe
- src
- storage/s3c31471c3
- build
- types
- _snapshot.pre.refactor
- discussions
- _snapshot.post.generate
- amplify
- data
- storage
- _snapshot.post.refactor
- _snapshot.pre.generate
- amplify
- #current-cloud-backend
- api/discussions
- build
- resolvers
- stacks
- resolvers
- auth
- discussions22367c6822367c68
- build
- discussionsc578c16ec578c16e
- build
- awscloudformation/build
- api/discussions/build
- auth
- discussions22367c6822367c68/build
- discussionsc578c16ec578c16e/build
- awscloudformation/build
- function
- fetchuseractivity
- recorduseractivity
- storage
- activity/build
- avatars/build
- bookmarks/build
- function
- fetchuseractivity
- recorduseractivity
- storage
- activity
- build
- avatars
- build
- bookmarks/build
- .config
- backend
- api/discussions
- build
- resolvers
- stacks
- resolvers
- auth
- discussions22367c6822367c68
- build
- discussionsc578c16ec578c16e
- build
- awscloudformation/build
- api/discussions/build
- auth
- discussions22367c6822367c68/build
- discussionsc578c16ec578c16e/build
- awscloudformation/build
- function
- fetchuseractivity
- recorduseractivity
- storage
- activity/build
- avatars/build
- bookmarks/build
- function
- fetchuseractivity
- recorduseractivity
- storage
- activity
- build
- avatars
- build
- bookmarks/build
- types
- _snapshot.pre.refactor
- fitness-tracker
- _snapshot.post.generate
- amplify
- data
- _snapshot.post.refactor
- _snapshot.pre.generate
- amplify
- #current-cloud-backend
- api
- adminapi
- build
- fitnesstracker
- build
- resolvers
- stacks
- resolvers
- nutritionapi
- build
- auth
- fitnesstracker33f5545533f55455
- build
- userPoolGroups
- build
- awscloudformation/build
- api
- adminapi/build
- fitnesstracker/build
- nutritionapi/build
- auth
- fitnesstracker33f5545533f55455/build
- userPoolGroups/build
- awscloudformation/build
- function
- admin
- fitnesstracker33f5545533f55455PreSignup
- lognutrition
- function
- admin
- fitnesstracker33f5545533f55455PreSignup
- lognutrition
- .config
- backend
- api
- adminapi
- build
- fitnesstracker
- build
- resolvers
- stacks
- resolvers
- nutritionapi
- build
- auth
- fitnesstracker33f5545533f55455
- build
- userPoolGroups
- build
- awscloudformation/build
- api
- adminapi/build
- fitnesstracker/build
- nutritionapi/build
- auth
- fitnesstracker33f5545533f55455/build
- userPoolGroups/build
- awscloudformation/build
- function
- admin
- fitnesstracker33f5545533f55455PreSignup
- lognutrition
- function
- admin
- fitnesstracker33f5545533f55455PreSignup
- lognutrition
- types
- _snapshot.pre.refactor
- migration
- imported-resources
- _snapshot.post.generate
- _snapshot.post.refactor
- _snapshot.pre.generate/amplify
- #current-cloud-backend
- api/importedresources
- build
- resolvers
- stacks
- resolvers
- auth/importedresources2c7c1c40
- awscloudformation/build
- api/importedresources/build
- awscloudformation/build
- function/importedresourcequotegenerator
- storage/s34ebf8874/build
- function/importedresourcequotegenerator
- storage/s34ebf8874
- build
- .config
- backend
- api/importedresources
- build
- resolvers
- stacks
- resolvers
- auth/importedresources2c7c1c40
- awscloudformation/build
- api/importedresources/build
- awscloudformation/build
- function/importedresourcequotegenerator
- storage/s34ebf8874/build
- function/importedresourcequotegenerator
- storage/s34ebf8874
- build
- types
- _snapshot.pre.refactor
- media-vault
- _snapshot.post.generate
- amplify
- data
- storage
- _snapshot.pre.generate
- amplify
- #current-cloud-backend
- api/mediavault
- build
- resolvers
- stacks
- resolvers
- auth
- mediavault1f08412d
- build
- userPoolGroups
- build
- awscloudformation/build
- api/mediavault/build
- auth
- mediavault1f08412d/build
- userPoolGroups/build
- awscloudformation/build
- function
- addusertogroup
- removeuserfromgroup
- thumbnailgen
- storage/mediavault/build
- function
- addusertogroup
- removeuserfromgroup
- thumbnailgen
- storage/mediavault
- build
- .config
- backend
- api/mediavault
- build
- resolvers
- stacks
- resolvers
- auth
- mediavault1f08412d
- build
- userPoolGroups
- build
- awscloudformation/build
- api/mediavault/build
- auth
- mediavault1f08412d/build
- userPoolGroups/build
- awscloudformation/build
- function
- addusertogroup
- removeuserfromgroup
- thumbnailgen
- storage/mediavault/build
- function
- addusertogroup
- removeuserfromgroup
- thumbnailgen
- storage/mediavault
- build
- types
- _snapshot.pre.refactor
- mood-board
- _snapshot.post.generate
- amplify
- analytics
- data
- storage
- _snapshot.post.refactor
- _snapshot.pre.generate
- amplify
- #current-cloud-backend
- analytics/moodboardKinesis
- api/moodboard
- build
- resolvers
- stacks
- resolvers
- auth/moodboard759ae00a
- build
- awscloudformation/build
- analytics/moodboardKinesis
- api/moodboard/build
- auth/moodboard759ae00a/build
- awscloudformation/build
- function
- moodboardGetRandomEmoji
- moodboardKinesisReader
- storage/moodboardStorage/build
- function
- moodboardGetRandomEmoji
- moodboardKinesisReader
- storage/moodboardStorage
- build
- .config
- backend
- analytics/moodboardKinesis
- api/moodboard
- build
- resolvers
- stacks
- resolvers
- auth/moodboard759ae00a
- build
- awscloudformation/build
- analytics/moodboardKinesis
- api/moodboard/build
- auth/moodboard759ae00a/build
- awscloudformation/build
- function
- moodboardGetRandomEmoji
- moodboardKinesisReader
- storage/moodboardStorage/build
- function
- moodboardGetRandomEmoji
- moodboardKinesisReader
- storage/moodboardStorage
- build
- types
- _snapshot.pre.refactor
- product-catalog
- _snapshot.post.generate
- amplify
- data
- function/lowstockproducts
- storage
- _snapshot.post.refactor
- _snapshot.pre.generate
- amplify/#current-cloud-backend
- api/productcatalog/build
- resolvers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
4,152 files changed
+200889
-199945
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | | - | |
| 234 | + | |
| 235 | + | |
234 | 236 | | |
235 | 237 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 238 | + | |
243 | 239 | | |
244 | 240 | | |
245 | 241 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
| 30 | + | |
20 | 31 | | |
21 | 32 | | |
22 | 33 | | |
| |||
25 | 36 | | |
26 | 37 | | |
27 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
28 | 42 | | |
29 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments