azure-sdk-for-js icon indicating copy to clipboard operation
azure-sdk-for-js copied to clipboard

[test] template ci test is flaky

Open jeremymeng opened this issue 1 year ago • 0 comments

This seems to start happening after new code generation and migrating to vitest. The test timed out?

https://dev.azure.com/azure-sdk/public/_build/results?buildId=3725804&view=logs&j=4eb56288-3a5b-5a82-287d-3cfeb6b22c05&t=1692727b-c10f-5a7a-ed54-6d37c1b6119a&l=1922

[vitest] ❯ test/public/configurationClient.spec.ts (2 tests | 1 failed | 1 skipped) 10035ms [vitest] ❯ test/public/configurationClient.spec.ts > [AAD] ConfigurationClient functional tests > #getConfigurationSetting > predetermined setting has expected value [vitest] → Hook timed out in 10000ms. [vitest] If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". [vitest] → Bad state, recordingId is not defined when called stop. [vitest] [vitest] ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ [vitest] [vitest] FAIL test/public/configurationClient.spec.ts > [AAD] ConfigurationClient functional tests > #getConfigurationSetting > predetermined setting has expected value [vitest] Error: Hook timed out in 10000ms. [vitest] If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". [vitest] ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯ [vitest] [vitest] FAIL test/public/configurationClient.spec.ts > [AAD] ConfigurationClient functional tests > #getConfigurationSetting > predetermined setting has expected value [vitest] RecorderError: Bad state, recordingId is not defined when called stop. [vitest] ❯ Recorder.stop ../../test-utils/recorder/src/recorder.ts:415:13 [vitest] ❯ test/public/configurationClient.spec.ts:70:20 [vitest] 68| // After each test, we need to stop the recording. [vitest] 69| afterEach(async function () { [vitest] 70| await recorder.stop(); [vitest] | ^ [vitest] 71| }); [vitest] 72| [vitest] [vitest] ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ [vitest] Serialized Error: { statusCode: undefined } [vitest] ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯ [vitest] [vitest] Test Files 1 failed | 1 passed (2) [vitest] Tests 1 failed | 2 passed | 1 skipped (4) [vitest] Start at 18:59:34 [vitest] Duration 18.08s (transform 3.73s, setup 0ms, collect 7.76s, tests 10.04s, environment 1ms, prepare 1.92s)

jeremymeng avatar Apr 23 '24 19:04 jeremymeng