Skip to content

Commit 1d1fa50

Browse files
author
David Hasani
committed
make tests pass
1 parent 85bdfef commit 1d1fa50

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

packages/core/src/codewhisperer/commands/startTransformByQ.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ export async function parseBuildFile() {
328328
export async function preTransformationUploadCode() {
329329
await vscode.commands.executeCommand('aws.amazonq.transformationHub.focus')
330330

331+
void vscode.window.showInformationMessage(CodeWhispererConstants.jobStartedNotification, {
332+
title: CodeWhispererConstants.jobStartedTitle,
333+
})
334+
331335
let uploadId = ''
332336
throwIfCancelled()
333337
try {
@@ -846,7 +850,9 @@ export async function postTransformationJob() {
846850
}
847851

848852
if (transformByQState.isSucceeded()) {
849-
void vscode.window.showInformationMessage(CodeWhispererConstants.jobCompletedNotification(diffMessage))
853+
void vscode.window.showInformationMessage(CodeWhispererConstants.jobCompletedNotification(diffMessage), {
854+
title: CodeWhispererConstants.transformationCompletedTitle,
855+
})
850856
} else if (transformByQState.isPartiallySucceeded()) {
851857
void vscode.window
852858
.showInformationMessage(

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,11 @@ export const noOngoingJobMessage = 'No ongoing job.'
554554

555555
export const nothingToShowMessage = 'Nothing to show'
556556

557+
export const jobStartedTitle = 'Transformation started'
558+
559+
export const jobStartedNotification =
560+
'Amazon Q is transforming your code. It can take 10 to 30 minutes to upgrade your code, depending on the size of your project. To monitor progress, go to the Transformation Hub.'
561+
557562
export const openTransformationHubButtonText = 'Open Transformation Hub'
558563

559564
export const startTransformationButtonText = 'Start a new transformation'
@@ -633,6 +638,8 @@ export const jobCancelledChatMessage =
633638

634639
export const jobCancelledNotification = 'You cancelled the transformation.'
635640

641+
export const transformationCompletedTitle = 'Transformation complete'
642+
636643
export const diffMessage = (multipleDiffs: boolean) => {
637644
return multipleDiffs
638645
? 'You can review the diffs to see my proposed changes and accept or reject them. You will be able to accept changes from one diff at a time. If you reject changes in one diff, you will not be able to view or accept changes in the other diffs.'

packages/core/src/testInteg/globalSetup.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { globals } from '../shared'
2020
// ASSUMPTION: Tests are not run concurrently
2121

2222
let windowPatch: vscode.Disposable
23-
const maxTestDuration = 300_000
23+
const maxTestDuration = 420_000 // 7 minutes
2424
const globalSandbox = sinon.createSandbox()
2525

2626
export async function mochaGlobalSetup(extensionId: string) {

0 commit comments

Comments
 (0)