You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/CodeWhispererCodeTestSession.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -75,12 +75,12 @@ class CodeWhispererCodeTestSession(val sessionContext: CodeTestSessionContext) {
75
75
76
76
LOG.debug {
77
77
"Total size of source payload in KB: ${payloadContext.srcPayloadSize *1.0/TOTAL_BYTES_IN_KB}\n"+
78
-
"Total size of build payload in KB: ${(payloadContext.buildPayloadSize ?:0) *1.0/TOTAL_BYTES_IN_KB}\n"+
79
78
"Total size of source zip file in KB: ${payloadContext.srcZipFileSize *1.0/TOTAL_BYTES_IN_KB}\n"+
80
79
"Total number of lines included: ${payloadContext.totalLines}\n"+
81
80
"Total number of files included in payload: ${payloadContext.totalFiles}\n"+
82
81
"Total time taken for creating payload: ${payloadContext.totalTimeInMilliseconds *1.0/TOTAL_MILLIS_IN_SECOND} seconds\n"+
Copy file name to clipboardexpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/CodeWhispererUTGChatManager.kt
Copy file name to clipboardexpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/CodeWhispererCodeScanSession.kt
-1
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,6 @@ class CodeWhispererCodeScanSession(val sessionContext: CodeScanSessionContext) {
91
91
if (isProjectScope()) {
92
92
LOG.debug {
93
93
"Total size of source payload in KB: ${payloadContext.srcPayloadSize *1.0/TOTAL_BYTES_IN_KB}\n"+
94
-
"Total size of build payload in KB: ${(payloadContext.buildPayloadSize ?:0) *1.0/TOTAL_BYTES_IN_KB}\n"+
95
94
"Total size of source zip file in KB: ${payloadContext.srcZipFileSize *1.0/TOTAL_BYTES_IN_KB}\n"+
96
95
"Total number of lines reviewed: ${payloadContext.totalLines}\n"+
97
96
"Total number of files included in payload: ${payloadContext.totalFiles}\n"+
Copy file name to clipboardexpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/sessionconfig/CodeScanSessionConfig.kt
Copy file name to clipboardexpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codetest/CodeTestException.kt
Copy file name to clipboardexpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codetest/sessionconfig/CodeTestSessionConfig.kt
+99-51
Original file line number
Diff line number
Diff line change
@@ -101,15 +101,17 @@ class CodeTestSessionConfig(
101
101
}
102
102
103
103
// Copy all the included source files to the source zip
104
-
val srcZip = zipFiles(payloadMetadata.sourceFiles.map { Path.of(it) })
// write payloadMetadata.payloadManifest into a json file in repoMapData directory. manifest is Set<Pair<String, Long>> write into file first or ina byte stream
171
+
val payloadManifestPath =Path.of(utgDir, "repoMapData", "payloadManifest.json")
172
+
LOG.debug { "Adding payload manifest to ZIP: $payloadManifestPath" }
173
+
// Create ZIP entry with the relative path
174
+
val zipEntry =ZipEntry(payloadManifestPath.toString())
Copy file name to clipboardexpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/telemetry/CodeWhispererTelemetryService.kt
-2
Original file line number
Diff line number
Diff line change
@@ -315,7 +315,6 @@ class CodeWhispererTelemetryService {
315
315
"Number of security scan issues with fixes: $issuesWithFixes, \n"+
316
316
"Language: ${payloadContext.language}, \n"+
317
317
"Uncompressed source payload size in bytes: ${payloadContext.srcPayloadSize}, \n"+
318
-
"Uncompressed build payload size in bytes: ${payloadContext.buildPayloadSize}, \n"+
319
318
"Compressed source zip file size in bytes: ${payloadContext.srcZipFileSize}, \n"+
320
319
"Total project size in bytes: ${codeScanEvent.totalProjectSizeInBytes}, \n"+
321
320
"Total duration of the security scan job in milliseconds: ${codeScanEvent.duration}, \n"+
@@ -334,7 +333,6 @@ class CodeWhispererTelemetryService {
Copy file name to clipboardexpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/telemetry/CodeWhispererTelemetryServiceNew.kt
-2
Original file line number
Diff line number
Diff line change
@@ -299,7 +299,6 @@ class CodeWhispererTelemetryServiceNew {
299
299
"Number of security scan issues with fixes: $issuesWithFixes, \n"+
300
300
"Language: ${payloadContext.language}, \n"+
301
301
"Uncompressed source payload size in bytes: ${payloadContext.srcPayloadSize}, \n"+
302
-
"Uncompressed build payload size in bytes: ${payloadContext.buildPayloadSize}, \n"+
303
302
"Compressed source zip file size in bytes: ${payloadContext.srcZipFileSize}, \n"+
304
303
"Total project size in bytes: ${codeScanEvent.totalProjectSizeInBytes}, \n"+
305
304
"Total duration of the security scan job in milliseconds: ${codeScanEvent.duration}, \n"+
@@ -317,7 +316,6 @@ class CodeWhispererTelemetryServiceNew {
Copy file name to clipboardexpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/codetest/CodeTestSessionConfigTest.kt
-11
Original file line number
Diff line number
Diff line change
@@ -101,17 +101,6 @@ class CodeTestSessionConfigTest {
101
101
}
102
102
}
103
103
104
-
@Test
105
-
fun`test createPayload should throw CodeWhispererCodeScanException if project size is more than Payload Limit`() {
0 commit comments