Skip to content

Commit 39a1174

Browse files
committed
ci: Ignore dot subprocess error in CI
1 parent 5c154b3 commit 39a1174

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: git fetch --depth=1 --tags
3131

3232
- name: Set up Graphviz
33-
uses: ts-graphviz/setup-graphviz@v1
33+
uses: ts-graphviz/setup-graphviz@v2
3434

3535
- name: Set up Python
3636
uses: actions/setup-python@v5

scripts/gen_structure_docs.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
def _render_call_graph(module: Path) -> None:
2222
buffer = StringIO()
2323
code2flow(str(module), buffer)
24-
svg = subprocess.check_output(["dot", "-Tsvg"], input=buffer.getvalue(), text=True) # noqa: S603, S607
24+
try:
25+
svg = subprocess.check_output(["dot", "-Tsvg"], input=buffer.getvalue(), text=True) # noqa: S603, S607
26+
except subprocess.CalledProcessError:
27+
# The subprocess dies with SIGSEGV in GHA...
28+
return
2529
if 'class="node"' not in svg:
2630
print("")
2731
else:

0 commit comments

Comments
 (0)