-
Notifications
You must be signed in to change notification settings - Fork 413
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
feat(amazonq): allow users to skip tests #5607
base: master
Are you sure you want to change the base?
Conversation
Note: the backend work for this feature is not done yet, so we don't want to merge it yet. |
0fc839a
to
0b5c066
Compare
} | ||
|
||
// Explicitly set metric as failed since no exception was caught | ||
telemetry.record({ result: MetadataResult.Fail, reason: errorReason }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the above logic removed (same as below) was entirely just to form the errorReason string. We include all of that info in the IDE logs already, and we can simply put the error code in telemetry to simplify.
0b5c066
to
ebc79cf
Compare
ebc79cf
to
bd64226
Compare
// one of these must be true | ||
if (skipTestsSelection === CodeWhispererConstants.skipUnitTestsMessage) { | ||
transformByQState.setCustomBuildCommand(CodeWhispererConstants.skipUnitTestsBuildCommand) | ||
} else if (skipTestsSelection === CodeWhispererConstants.doNotSkipUnitTestsMessage) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth just making this an else
and not skipping unit tests by default? What happens if setCustomBuildCommand
is never called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, will fix. Our default should be to not skip tests.
Problem
Some users transform projects with long-running tests.
Solution
Allow users to skip tests by prompting them via chat and passing the relevant flag to skip tests through the
manifest.json
.License: I confirm that my contribution is made under the terms of the Apache 2.0 license.