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

unreliable test: zipUtil-generateZip-Should generate zip for file scan and return expected metadata #6203

Open
Hweinstock opened this issue Dec 10, 2024 · 0 comments

Comments

@Hweinstock
Copy link
Contributor

Test Details

  • Name of test: Should generate zip for file scan and return expected metadata
  • OS of failure: macOS
  • VSCode version of failure (minimum/insider/stable): minimum
  • Link to failing run: https://github.com/aws/aws-toolkit-vscode/actions/runs/12260528617/job/34205370240
  • Link to failing test:
    it('Should generate zip for file scan and return expected metadata', async function () {
    const zipMetadata = await zipUtil.generateZip(vscode.Uri.file(appCodePath), CodeAnalysisScope.FILE_AUTO)
    assert.strictEqual(zipMetadata.lines, 49)
    assert.ok(zipMetadata.rootDir.includes(codeScanTruncDirPrefix))
    assert.ok(zipMetadata.srcPayloadSizeInBytes > 0)
    assert.strictEqual(zipMetadata.scannedFiles.size, 1)
    assert.strictEqual(zipMetadata.buildPayloadSizeInBytes, 0)
    assert.ok(zipMetadata.zipFileSizeInBytes > 0)
    assert.ok(zipMetadata.zipFilePath.includes(codeScanTruncDirPrefix))
    })

Log of Test Failure

zipUtil
       generateZip
         Should generate zip for file scan and return expected metadata:
     Error: Payload size limit reached [FileSizeExceeded]
  
      at ZipUtil.zipFile (/Users/runner/work/aws-toolkit-vscode/aws-toolkit-vscode/packages/core/src/codewhisperer/util/zipUtil.ts:137:19)
      at async ZipUtil.generateZip (/Users/runner/work/aws-toolkit-vscode/aws-toolkit-vscode/packages/core/src/codewhisperer/util/zipUtil.ts:544:31)
      at async Context.<anonymous> (test/unit/codewhisperer/util/zipUtil.test.ts:45:33)

Additional Information

Potentially related to #6160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants