Skip to content

unreliable test: Controller - Doc Generation should emit generation telemetry for initial README generation: #6506

@Hweinstock

Description

@Hweinstock

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions