Deterministic artifact graph - bring back the clockwork universe (#7483)

* Change to use deterministic artifact graph

* Update output to use the new order

* Fix to clear everything when scene is cleared

* Fix lots

* Update artifact graph output for the last time

* Delete unused sorting code

* Remove unneeded cfg

* Fix to preserve top-level artifacts when there's an error

* Update output after error fix

* Add better doc comments

* Remove duplicate global operations

* Update comments

* Update ignored tests that were flaky

* Update graph for new samples after rebase

* Fix test assertion message
This commit is contained in:
Jonathan Tran
2025-06-16 13:55:24 -04:00
committed by GitHub
parent d6278cf075
commit aae34cf1e5
197 changed files with 79222 additions and 69896 deletions

View File

@ -1,135 +1,135 @@
```mermaid
flowchart LR
subgraph path4 [Path]
4["Path<br>[88, 124, 0]"]
subgraph path2 [Path]
2["Path<br>[88, 124, 0]"]
%% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
8["Segment<br>[130, 151, 0]"]
3["Segment<br>[130, 151, 0]"]
%% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }]
9["Segment<br>[157, 238, 0]"]
4["Segment<br>[157, 238, 0]"]
%% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }]
10["Segment<br>[244, 265, 0]"]
5["Segment<br>[244, 265, 0]"]
%% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }]
end
subgraph path5 [Path]
5["Path<br>[320, 379, 0]"]
%% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
11["Segment<br>[320, 379, 0]"]
%% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
19[Solid2d]
end
subgraph path6 [Path]
6["Path<br>[403, 443, 0]"]
%% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }, CallKwArg { index: 0 }]
12["Segment<br>[403, 443, 0]"]
%% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }, CallKwArg { index: 0 }]
18[Solid2d]
end
subgraph path7 [Path]
7["Path<br>[579, 625, 0]"]
7["Path<br>[320, 379, 0]"]
%% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
8["Segment<br>[320, 379, 0]"]
%% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
9[Solid2d]
end
subgraph path10 [Path]
10["Path<br>[403, 443, 0]"]
%% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }, CallKwArg { index: 0 }]
11["Segment<br>[403, 443, 0]"]
%% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }, CallKwArg { index: 0 }]
12[Solid2d]
end
subgraph path20 [Path]
20["Path<br>[579, 625, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
13["Segment<br>[631, 653, 0]"]
21["Segment<br>[631, 653, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }]
14["Segment<br>[659, 681, 0]"]
22["Segment<br>[659, 681, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }]
15["Segment<br>[687, 708, 0]"]
23["Segment<br>[687, 708, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }]
16["Segment<br>[714, 735, 0]"]
24["Segment<br>[714, 735, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }]
17["Segment<br>[741, 748, 0]"]
25["Segment<br>[741, 748, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }]
20[Solid2d]
26[Solid2d]
end
1["Plane<br>[47, 64, 0]"]
%% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit]
2["Plane<br>[279, 296, 0]"]
6["Plane<br>[279, 296, 0]"]
%% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit]
3["Plane<br>[538, 555, 0]"]
%% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit]
21["Sweep Sweep<br>[464, 524, 0]"]
13["Sweep Sweep<br>[464, 524, 0]"]
%% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit]
22["Sweep Revolve<br>[773, 824, 0]"]
14[Wall]
%% face_code_ref=Missing NodePath
15["Cap Start"]
%% face_code_ref=Missing NodePath
16["Cap End"]
%% face_code_ref=Missing NodePath
17["SweepEdge Opposite"]
18["SweepEdge Adjacent"]
19["Plane<br>[538, 555, 0]"]
%% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit]
27["Sweep Revolve<br>[773, 824, 0]"]
%% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit]
23["CompositeSolid Subtract<br>[842, 897, 0]"]
%% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit]
24[Wall]
%% face_code_ref=Missing NodePath
25[Wall]
%% face_code_ref=Missing NodePath
26[Wall]
%% face_code_ref=Missing NodePath
27[Wall]
%% face_code_ref=Missing NodePath
28[Wall]
%% face_code_ref=Missing NodePath
29["Cap Start"]
29[Wall]
%% face_code_ref=Missing NodePath
30["Cap End"]
30[Wall]
%% face_code_ref=Missing NodePath
31[Wall]
%% face_code_ref=Missing NodePath
31["SweepEdge Opposite"]
32["SweepEdge Adjacent"]
33["SweepEdge Adjacent"]
34["SweepEdge Adjacent"]
35["SweepEdge Adjacent"]
36["SweepEdge Adjacent"]
1 --- 4
36["CompositeSolid Subtract<br>[842, 897, 0]"]
%% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit]
1 --- 2
2 --- 3
2 --- 4
2 --- 5
2 --- 6
3 --- 7
4 --- 8
4 --- 9
4 --- 10
5 --- 11
5 --- 19
5 ---- 21
5 --- 23
6 --- 12
6 --- 18
7 --- 13
7 --- 14
7 --- 15
7 --- 16
7 --- 17
7 --- 20
7 ---- 22
7 --- 23
11 --- 24
11 x--> 29
11 --- 31
11 --- 32
22 <--x 13
13 --- 25
13 --- 33
22 <--x 14
14 --- 28
14 --- 34
22 <--x 15
15 --- 26
15 --- 35
22 <--x 16
16 --- 27
16 --- 36
21 --- 24
21 --- 29
21 --- 30
21 --- 31
6 --- 7
6 --- 10
7 --- 8
7 --- 9
7 ---- 13
7 --- 36
8 --- 14
8 x--> 15
8 --- 17
8 --- 18
10 --- 11
10 --- 12
13 --- 14
13 --- 15
13 --- 16
13 --- 17
13 --- 18
14 --- 17
14 --- 18
17 <--x 16
19 --- 20
20 --- 21
20 --- 22
20 --- 23
20 --- 24
20 --- 25
20 --- 26
20 ---- 27
20 --- 36
27 <--x 21
21 --- 28
21 --- 32
22 --- 25
22 --- 26
22 --- 27
22 --- 28
27 <--x 22
22 --- 29
22 --- 33
22 --- 34
22 --- 35
22 --- 36
27 <--x 23
23 --- 30
23 --- 34
27 <--x 24
24 --- 31
24 --- 32
25 --- 33
36 <--x 25
34 <--x 26
26 --- 35
35 <--x 27
27 --- 36
33 <--x 28
28 --- 34
31 <--x 30
24 --- 35
27 --- 28
27 --- 29
27 --- 30
27 --- 31
27 --- 32
27 --- 33
27 --- 34
27 --- 35
28 --- 32
35 <--x 28
32 <--x 29
29 --- 33
33 <--x 30
30 --- 34
34 <--x 31
31 --- 35
```