deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

@std/webgpu/texture_with_data.ts has flaky test

Open timreichen opened this issue 10 months ago • 3 comments

https://github.com/denoland/std/actions/runs/13420418226/job/37491446085?pr=6408

 ERRORS 

createTextureWithData() => ./webgpu/texture_with_data_test.ts:7:6
error: TypeError: Failed to execute 'call' on 'GPUDevice': 'format' of 'GPUTextureDescriptor' (Argument 0) can not be converted to a enum
  const texture = device.createTexture(descriptor);
                         ^
    at createTextureWithData (file:///D:/a/std/std/webgpu/texture_with_data.ts:130:26)
    at fn (file:///D:/a/std/std/webgpu/texture_with_data_test.ts:16:5)

 FAILURES 

createTextureWithData() => ./webgpu/texture_with_data_test.ts:7:6

FAILED | 4142 passed (2719 steps) | 1 failed | 25 ignored (2m17s)

error: Test failed
Error: Process completed with exit code 1.

timreichen avatar Feb 19 '25 21:02 timreichen

tried locally, however cannot reproduce. also, this being a flake makes no sense...

crowlKats avatar Feb 19 '25 22:02 crowlKats

tried locally, however cannot reproduce. also, this being a flake makes no sense...

No idea why this happens, but I've seen this error multiple times on different @std PRs. Maybe it is a bug in deno's GPUDevice or GPUTextureDescriptor implementation?

timreichen avatar Feb 19 '25 23:02 timreichen

The error message seems created in this line? https://github.com/denoland/deno_core/blob/7cbc5ae35c279972d46e5552b7a5978860df611e/core/webidl.rs#L96

Is it possible that CI machine's state affects this?

kt3k avatar Feb 21 '25 05:02 kt3k