Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prompter and handle deletions #10122

Merged
merged 4 commits into from
Apr 4, 2022
Merged

Use prompter and handle deletions #10122

merged 4 commits into from
Apr 4, 2022

Conversation

johnpc
Copy link
Contributor

@johnpc johnpc commented Apr 4, 2022

Description of changes

This PR makes a couple small changes:

  1. it uses amplify-prompter in areas where we've noticed timeouts caused by unexpected prompts when the --yes flag is set
  2. it adds some error checking on delete - if the error is a not found exception, it treats the deletion as a success
  3. it adds a timeout bump to the artifact scanning script in our e2e pipeline. 10m to scan and clean was not enough and caused flakiness.

Issue #, if available

n/a

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes

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

@johnpc johnpc requested a review from a team as a code owner April 4, 2022 16:04
@lgtm-com
Copy link

lgtm-com bot commented Apr 4, 2022

This pull request introduces 1 alert when merging d1933fc into f634754 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@@ -1,5 +1,5 @@
import { $TSContext, $TSObject, exitOnNextTick, ResourceCredentialsNotFoundError, ResourceDoesNotExistError } from 'amplify-cli-core';
import { printer } from 'amplify-prompts';
import { printer, prompter } from 'amplify-prompts';
import chalk from 'chalk';
import { DataApiParams } from 'graphql-relational-schema-transformer';
import inquirer from 'inquirer';
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you still need this in the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed :)

@ammarkarachi
Copy link
Contributor

LGTM just some unused

@johnpc johnpc merged commit 5c0e290 into master Apr 4, 2022
@johnpc johnpc deleted the run-e2e/xss/use-prompter branch April 4, 2022 21:05
johnpc added a commit that referenced this pull request Apr 5, 2022
this commit uses prompter and handles deletions. This commit message should trigger a new major version of @aws-amplify/cli

BREAKING CHANGE: package name update requires version bump in order to keep in sync with lerna.
johnpc added a commit that referenced this pull request Apr 5, 2022
this commit uses prompter and handles deletions. This commit message should trigger a new major version of @aws-amplify/cli

BREAKING CHANGE: package name update requires version bump in order to keep in sync with lerna.
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.

None yet

3 participants