Skip to content

other.test_gen_struct_info is flaky #25206

@juj

Description

@juj

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 <module>
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions