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

fix(amazonq): Adding payload manifest for payload limit errors. #5324

Merged
merged 7 commits into from
Feb 5, 2025

Conversation

ashishrp-aws
Copy link
Contributor

@ashishrp-aws ashishrp-aws commented Feb 5, 2025

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Our major failure reason is due to payload limit error. Especially for internal amazon users, we want to add file manifest in payload to help our debugging on service and client errors.

  • Also removed codewhispererCodeScanBuildPayloadBytes telemetry event which is unused
  • Removed buildPayloadSize from the payloadMetadata.
  • Telemetry now published payload size incase of payload size failures.

Tested on Amazon Internal repositories, public github repositories for both python and Java languages

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashishrp-aws ashishrp-aws requested a review from a team as a code owner February 5, 2025 00:00
@ashishrp-aws ashishrp-aws enabled auto-merge (squash) February 5, 2025 00:07
@ashishrp-aws ashishrp-aws disabled auto-merge February 5, 2025 00:18
@ashishrp-aws ashishrp-aws enabled auto-merge (squash) February 5, 2025 00:23
@@ -98,6 +99,9 @@ class CodeWhispererUTGChatManager(val project: Project, private val cs: Coroutin
session.srcZipFileSize = codeTestResponseContext.payloadContext.srcZipFileSize
session.artifactUploadDuration = codeTestResponseContext.serviceInvocationContext.artifactsUploadDuration
val path = codeTestResponseContext.currentFileRelativePath
if (codeTestResponseContext.payloadContext.payloadLimitCrossed == true) {
fileTooLarge()
Copy link

Choose a reason for hiding this comment

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

If FileTooLarge throws an exception, where does the manifest get uploaded?

Copy link
Contributor Author

@ashishrp-aws ashishrp-aws Feb 5, 2025

Choose a reason for hiding this comment

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

manifest is already uploaded to service.

@ashishrp-aws ashishrp-aws merged commit 17dcd44 into aws:main Feb 5, 2025
11 checks passed
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.

4 participants