Skip to content

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
session.artifactUploadDuration = codeTestResponseContext.serviceInvocationContext.artifactsUploadDuration
val path = codeTestResponseContext.currentFileRelativePath
if (codeTestResponseContext.payloadContext.payloadLimitCrossed == true) {
fileTooLarge()
Copy link
Contributor

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
KevinDing1 pushed a commit to KevinDing1/aws-toolkit-jetbrains that referenced this pull request Feb 6, 2025
…5324)

* Adding payload manifest for payload limit errors for debugging.
@ashishrp-aws ashishrp-aws deleted the repomap branch February 10, 2025 20:09
gandhi-21 pushed a commit to gandhi-21/aws-toolkit-jetbrains that referenced this pull request Feb 26, 2025
…5324)

* Adding payload manifest for payload limit errors for debugging.
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