keymap-drawer: Glyph download timeouts
Have been experiencing regular timeouts / failures, seem related to the glyphs download step: https://github.com/minusfive/zmk-config/actions/runs/11321454822/job/31500930916
INFO: using config args: -c keymap-drawer/config.yaml
INFO: drawing for corneish_zen
INFO: got extra parse args:
INFO: got extra draw args:
Traceback (most recent call last):
File "/home/runner/.local/bin/keymap", line 8, in <module>
sys.exit(main())
File "/home/runner/.local/lib/python3.10/site-packages/keymap_drawer/__main__.py", line 212, in main
draw(args, config.draw_config)
File "/home/runner/.local/lib/python3.10/site-packages/keymap_drawer/__main__.py", line 43, in draw
drawer = KeymapDrawer(
File "/home/runner/.local/lib/python3.10/site-packages/keymap_drawer/draw/draw.py", line 25, in __init__
self.init_glyphs()
File "/home/runner/.local/lib/python3.10/site-packages/keymap_drawer/draw/glyph.py", line 58, in init_glyphs
self.name_to_svg |= self._fetch_glyphs(rest)
File "/home/runner/.local/lib/python3.10/site-packages/keymap_drawer/draw/glyph.py", line 88, in _fetch_glyphs
return dict(zip(names, p.map(fetch_fn, names, urls, timeout=FETCH_TIMEOUT)))
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 623, in result_iterator
yield _result_or_cancel(fs.pop(), end_time - time.monotonic())
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
return fut.result(timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 460, in result
raise TimeoutError()
concurrent.futures._base.TimeoutError
ERROR: parsing or drawing failed for corneish_zen!
Error: Process completed with exit code 1.
Started noticing a few days ago, where about 50% of jobs failed. Then it’s gradually gone up until the last bunch of runs which have consistently failed: https://github.com/minusfive/zmk-config/actions/runs/11321454822/usage
Update
Locally it works fine every time, it seems. So potentially a GH specific networking issue? Or perhaps the icon lib hosts are blocking GH requests?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (17 by maintainers)
Looks fixed when using the tool from commit 0943c950114d678f9c6bdad4d16480cae8f82939 (as after that the main branch contains a defect on parsing, see #130). Then looks like the retry had fixed it, so I would be using that version from now on.
@minusfive - Thanks for the hint, I will try that
@caksoylar - Sorry, I just realized that my workflow is running the released version and that one doesn’t include the fix when I have checked the history. I will try today the main branch on github.
You can add
fail_on_error: trueto the workflow job and it’ll bubble up any errors and fail the build.