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

feat(amazonq): UTG build and execute for internal users. #5436

Open
wants to merge 29 commits into
base: feature/build-execute
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
24a0832
add build-execute code
Randall-Jiang Feb 21, 2025
4168e78
address comment
Randall-Jiang Feb 21, 2025
b5de261
create progress bar for fixing build failure
Randall-Jiang Feb 21, 2025
9cf1786
fix the bug which might cause user can not execute the build command …
Randall-Jiang Feb 24, 2025
ca2c128
fix format error
Randall-Jiang Feb 24, 2025
9151dce
correct the logic to send the telemetry
Randall-Jiang Feb 25, 2025
b5792bc
addressed comment
Randall-Jiang Feb 25, 2025
5231789
nit
Randall-Jiang Feb 25, 2025
9e323fe
addressing comments
Randall-Jiang Feb 25, 2025
3601d49
add PATH
Randall-Jiang Feb 28, 2025
fc8d07b
add gradle file for groovy version of the gradle build script
Randall-Jiang Feb 28, 2025
d195b1a
fix UI error
Randall-Jiang Mar 3, 2025
7e6a367
Fix lint errors
laileni-aws Mar 3, 2025
2c3ddba
Merge branch 'feature/build-execute' into build-execute
laileni-aws Mar 3, 2025
43dced6
Merge from Feature/build-execute
laileni-aws Mar 4, 2025
bc510d0
Merge branch 'feature/build-execute' into randal/build
laileni-aws Mar 4, 2025
3c6c33c
Refactoring Build and execute
laileni-aws Mar 4, 2025
d139695
Revert "Refactoring Build and execute"
laileni-aws Mar 4, 2025
b257fed
Refactoring Build and execute
laileni-aws Mar 4, 2025
1b76a80
Fixing build and execute command issue
laileni-aws Mar 4, 2025
e87fe92
Bug fixes in build and execute
laileni-aws Mar 6, 2025
3e129b2
Progress bar cancel UX changes
laileni-aws Mar 6, 2025
3dcde41
Fixes
laileni-aws Mar 7, 2025
22b1e81
Merge branch 'feature/build-execute' into randal/build
laileni-aws Mar 7, 2025
931fca3
Fixes
laileni-aws Mar 7, 2025
27b22d5
Modified impl of progress bar cancel functionality and some UX change…
laileni-aws Mar 7, 2025
6d039ae
Merge branch 'feature/build-execute' into randal/build
laileni-aws Mar 7, 2025
f7d450e
Minor fixes and refactoring in CTCChatController, CWSPRUTGChatManager…
laileni-aws Mar 7, 2025
e770e53
Removing commented code
laileni-aws Mar 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
create progress bar for fixing build failure
  • Loading branch information
Randall-Jiang committed Feb 21, 2025
commit b5de261c268a49d9fdf6435cb48c571f66f203a3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "feature",
"description" : "Add back build and execute for Internal Amazon Customers."
}
Original file line number Diff line number Diff line change
@@ -36,3 +36,9 @@ fun testGenProgressField(value: Int) = ProgressField(
valueText = "$value%",
actions = listOf(cancelTestGenButton)
)

val buildAndExecuteProgrogressField = ProgressField(
status = "default",
text = message("testgen.progressbar.build_and_execute"),
actions = listOf(cancelTestGenButton)
)
Original file line number Diff line number Diff line change
@@ -93,11 +93,20 @@ class CodeWhispererUTGChatManager(val project: Project, private val cs: Coroutin
}
val final = session.testGenerationJobGroupName

if(session.iteration == 1){
codeTestChatHelper.updateUI(
promptInputDisabledState = true,
promptInputProgress = testGenProgressField(0),
)
}else{
codeTestChatHelper.updateUI(
promptInputDisabledState = true,
promptInputProgress = buildAndExecuteProgrogressField,
)
}

// Set the Progress bar to "Generating unit tests..."
codeTestChatHelper.updateUI(
promptInputDisabledState = true,
promptInputProgress = testGenProgressField(0),
)


val codeTestResponseContext = createUploadUrl(codeTestChatHelper, previousIterationContext)
session.srcPayloadSize = codeTestResponseContext.payloadContext.srcPayloadSize
@@ -263,10 +272,17 @@ class CodeWhispererUTGChatManager(val project: Project, private val cs: Coroutin
messageIdOverride = codeTestResponseContext.testSummaryMessageId
)
}
codeTestChatHelper.updateUI(
promptInputDisabledState = true,
promptInputProgress = testGenProgressField(progressRate),
)
if(session.iteration == 1){
codeTestChatHelper.updateUI(
promptInputDisabledState = true,
promptInputProgress = testGenProgressField(0),
)
}else{
codeTestChatHelper.updateUI(
promptInputDisabledState = true,
promptInputProgress = buildAndExecuteProgrogressField,
)
}
}

// polling every 2 seconds to reduce # of API calls
Original file line number Diff line number Diff line change
@@ -2078,6 +2078,7 @@ testgen.placeholder.select_an_option = Please select an action to proceed (Accep
testgen.placeholder.view_diff=Select View Diff to see the generated unit tests
testgen.placeholder.waiting_on_your_inputs=Waiting on your inputs...
testgen.progressbar.generate_unit_tests=Generating unit tests...
testgen.progressbar.build_and_execute=Fixing test errors...
toolkit.login.aws_builder_id.already_connected.cancel=Use existing AWS Builder ID
toolkit.login.aws_builder_id.already_connected.message=You already signed in with an AWS Builder ID.\nSign out to add another?
toolkit.login.aws_builder_id.already_connected.reconnect=Sign out
Loading