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
Removing commented code
  • Loading branch information
laileni-aws committed Mar 10, 2025
commit e770e53817a5f575c7adb7b62eb7d907c9da0069
Original file line number Diff line number Diff line change
@@ -45,62 +45,6 @@ fun constructBuildAndExecutionSummaryText(currentStatus: BuildAndExecuteProgress
progressMessages.add("${BuildAndExecuteStatusIcon.DONE.icon} ${"All tests passed\n"}")
}
// TODO: Commenting out this code to do a better UX in the V2 version after science support
Copy link
Contributor

Choose a reason for hiding this comment

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

Leaving a TODO message makes sense but don't include the commented out code block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed comment!

/*

if (currentStatus >= BuildAndExecuteProgressStatus.RUN_BUILD) {
val buildStatus = when (currentStatus) {
BuildAndExecuteProgressStatus.RUN_BUILD -> "in progress"
BuildAndExecuteProgressStatus.BUILD_FAILED -> "failed"
else -> "complete"
}
val icon = if (buildStatus == "in progress") {
BuildAndExecuteStatusIcon.WAIT.icon
} else if (codeTestChatHelper.getActiveSession().buildStatus == BuildStatus.SUCCESS) {
BuildAndExecuteStatusIcon.DONE.icon
} else {
BuildAndExecuteStatusIcon.FAILED.icon
}
progressMessages.add(
"$icon ${
if (buildStatus == "in progress") {
"Project compiling"
} else if (codeTestChatHelper.getActiveSession().buildStatus == BuildStatus.SUCCESS) {
"Project compiled"
} else {
"Unable to compile project"
}
}"
)
}

if (currentStatus >= BuildAndExecuteProgressStatus.RUN_EXECUTION_TESTS) {
val buildStatus = if (currentStatus == BuildAndExecuteProgressStatus.RUN_BUILD) {
"Running tests"
} else if (codeTestChatHelper.getActiveSession().buildStatus == BuildStatus.SUCCESS) {
"Tests passed"
} else {
"Tests failed"
}
val icon = if (buildStatus == "Running tests") {
BuildAndExecuteStatusIcon.WAIT.icon
} else if (codeTestChatHelper.getActiveSession().buildStatus == BuildStatus.SUCCESS) {
BuildAndExecuteStatusIcon.DONE.icon
} else {
BuildAndExecuteStatusIcon.FAILED.icon
}
progressMessages.add("$icon $buildStatus")
}

if ((currentStatus >= BuildAndExecuteProgressStatus.BUILD_FAILED) && codeTestChatHelper.getActiveSession().buildStatus == BuildStatus.FAILURE) {
val buildStatus = if (currentStatus == BuildAndExecuteProgressStatus.RUN_EXECUTION_TESTS) "Fixing" else "Fixed"
val icon = if (currentStatus == BuildAndExecuteProgressStatus.RUN_EXECUTION_TESTS) {
BuildAndExecuteStatusIcon.WAIT.icon
} else {
BuildAndExecuteStatusIcon.DONE.icon
}
progressMessages.add("$icon $buildStatus test failures")
}
*/
if (currentStatus >= BuildAndExecuteProgressStatus.FIXING_TEST_CASES && codeTestChatHelper.getActiveSession().buildStatus == BuildStatus.FAILURE) {
progressMessages.add("\n")
progressMessages.add("**Results**")