ErichDonGubler / moz-webgpu-cts

An extremely fast (but opinionated) tool for working with WPT metadata while developing an implementation of WebGPU in a web browser.
Apache License 2.0
0 stars 2 forks source link

`update-expected`: Tolerate empty `wptreport.json` files #113

Closed jimblandy closed 3 weeks ago

jimblandy commented 4 weeks ago

At the moment, after running treeherder-dl, I need to search for any empty JSON files and delete them, lest moz-webgpu-cts update-expected choke on them like this:

[2024-06-11T01:42:38Z ERROR moz_webgpu_cts]   × failed to read WPT execution report from /home/jimb/moz/webgpu-cts-results/dec7a0af4f0788ef99578906e117392660cd3b48/windows11-64-2009-qr/debug/W/webgpu-backlog20/1/public/test_info/wptreport.json
      ├─▶ failed to parse JSON
      ╰─▶ EOF while parsing a value at line 1 column 0

[2024-06-11T01:42:38Z ERROR moz_webgpu_cts]   × failed to read WPT execution report from /home/jimb/moz/webgpu-cts-results/dec7a0af4f0788ef99578906e117392660cd3b48/windows11-64-2009-qr/debug/W/webgpu-backlog9/0/public/test_info/wptreport.json
      ├─▶ failed to parse JSON
      ╰─▶ EOF while parsing a value at line 1 column 0