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: Controller - Doc Generation should emit generation telemetry for initial README generation: #6506

Open
Hweinstock opened this issue Feb 5, 2025 · 0 comments
Labels
codewhisperer partner-team Triggers issue routing to owner team tests-ci-cd

Comments

@Hweinstock
Copy link
Contributor

Hweinstock commented Feb 5, 2025

Test Details

  • Name of test: Controller - Doc Generation
    should emit generation telemetry for initial README generation:
  • OS of failure: Windows
  • VSCode version of failure (minimum/insider/stable): insiders
  • Link to failing run: https://github.com/aws/aws-toolkit-vscode/actions/runs/13148927922/job/36693097862
  • Link to failing test:
    it('should emit generation telemetry for initial README generation', async () => {
    await performAction('generate', getSessionStub)
    const expectedEvent = createExpectedEvent({
    type: 'generation',
    ...EventMetrics.INITIAL_README,
    interactionType: 'GENERATE_README',
    conversationId: conversationID,
    })
    await assertTelemetry({
    spy: sendDocTelemetrySpy,
    expectedEvent,
    type: 'generation',
    })
    })

Log of Test Failure

1) Controller - Doc Generation
       should emit generation telemetry for initial README generation:
     AssertError: expected sendDocTelemetryEvent to be called with arguments 
      at Object.fail (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\node_modules\sinon\lib\sinon\assert.js:120:25)
      at failAssertion (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\node_modules\sinon\lib\sinon\assert.js:66:20)
      at Object.assert.<computed> [as calledWith] (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\node_modules\sinon\lib\sinon\assert.js:95:17)
      at assertTelemetry (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\packages\core\src\test\amazonqDoc\utils.ts:205:18)
      at async Context.<anonymous> (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\packages\core\src\test\amazonqDoc\controller.test.ts:175:9)

Additional Information

Appears to be introduced in #6427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codewhisperer partner-team Triggers issue routing to owner team tests-ci-cd
Projects
None yet
Development

No branches or pull requests

1 participant