Skip to content

test: revert gen2 migration e2e test#14190

Merged
abhi7cr merged 1 commit intomigrationsfrom
gen2-migrations-execute
Apr 24, 2025
Merged

test: revert gen2 migration e2e test#14190
abhi7cr merged 1 commit intomigrationsfrom
gen2-migrations-execute

Conversation

@abhi7cr
Copy link
Copy Markdown
Contributor

@abhi7cr abhi7cr commented Apr 24, 2025

Description of changes

  • Fix revert gen2 migration e2e test

Description of how you validated changes

e2e tests that regress revert flow

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@abhi7cr abhi7cr requested a review from a team as a code owner April 24, 2025 06:59
@abhi7cr abhi7cr changed the title fix: revert gen2 migration e2e test test: revert gen2 migration e2e test Apr 24, 2025
return undefined;
throw new Error(
`All attempts exhausted while getting resource details from CloudControl API for ${typeName} and ${identifier} identifier in ${region} region`,
);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the retry in place because it is an SDK call here or some specific reason?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah its more for eventual consistency :) Ideally 1 try should be good, but depends on the resource.

const gen1CategoryStackResource = gen1RootStackResources.find(
(gen1RootStackResource) =>
gen1RootStackResource.ResourceType === 'AWS::CloudFormation::Stack' &&
gen1RootStackResource.LogicalResourceId?.startsWith(category),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Are we always sure that the category stack always starts with the category name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, for CLI supported categories (e.g auth, storage, function, api), it always starts with the category name

@abhi7cr abhi7cr merged commit b48839d into migrations Apr 24, 2025
5 checks passed
@abhi7cr abhi7cr deleted the gen2-migrations-execute branch April 24, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants