emscripten-core / emscripten-core/emscripten

other.test_gen_struct_info is flaky

Open
#25,206 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Occassionally fails with

```
gen_struct_info: Calling generated program... /tmp/tmp6t3jvaci.js
code.c: no_exit=1 assertions=1 flush=0 keepalive=0 filesystem=0
Traceback (most recent call last):
File "/home/clb/buildbot/h12dsi-linux-mint22/emscripten_linux_x64/build/emscripten/main/tools/gen_struct_info.py", line 411, in
sys.exit(main(sys.argv[1:]))
~~~~^^^^^^^^^^^^^^
File "/home/clb/buildbot/h12dsi-linux-mint22/emscripten_linux_x64/build/emscripten/main/tools/gen_struct_info.py", line 394, in main
info_fragment = inspect_code(header_files, use_cflags)
File "/home/clb/buildbot/h12dsi-linux-mint22/emscripten_linux_x64/build/emscripten/main/tools/gen_struct_info.py", line 290, in inspect_code
info = inspect_headers(headers, cflags)
File "/home/clb/buildbot/h12dsi-linux-mint22/emscripten_linux_x64/build/emscripten/main/tools/gen_struct_info.py", line 273, in inspect_headers
return json.loads(info)
~~~~~~~~~~^^^^^^
File "/home/clb/.pyenv/versions/3.13.3/lib/python3.13/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/home/clb/.pyenv/versions/3.13.3/lib/python3.13/json/decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/home/clb/.pyenv/versions/3.13.3/lib/python3.13/json/decoder.py", line 361, in raw_decode
obj, end = self.scan_once(s, idx)
~~~~~~~~~~~~~~^^^^^^^^
json.decoder.JSONDecodeError: Illegal trailing comma before end of object: line 692 column 13 (char 10583)
None
None
[8%] test_gen_struct_info (test_other.other.test_gen_struct_info) ... FAIL
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.