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,156 +1,156 @@
```mermaid
flowchart LR
subgraph path3 [Path]
3["Path<br>[355, 396, 0]"]
subgraph path2 [Path]
2["Path<br>[355, 396, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }]
5["Segment<br>[402, 433, 0]"]
3["Segment<br>[402, 433, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }]
6["Segment<br>[439, 534, 0]"]
4["Segment<br>[439, 534, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }]
7["Segment<br>[540, 562, 0]"]
5["Segment<br>[540, 562, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }]
6["Segment<br>[568, 586, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }]
7["Segment<br>[568, 586, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }]
8["Segment<br>[568, 586, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }]
9["Segment<br>[568, 586, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }]
10["Segment<br>[568, 586, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }]
11["Segment<br>[568, 586, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }]
12["Segment<br>[568, 586, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }]
13["Segment<br>[592, 599, 0]"]
11["Segment<br>[592, 599, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }]
15[Solid2d]
12[Solid2d]
end
subgraph path4 [Path]
4["Path<br>[756, 806, 0]"]
subgraph path31 [Path]
31["Path<br>[756, 806, 0]"]
%% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }]
14["Segment<br>[756, 806, 0]"]
32["Segment<br>[756, 806, 0]"]
%% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }]
16[Solid2d]
33[Solid2d]
end
1["Plane<br>[332, 349, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
2["StartSketchOnFace<br>[713, 750, 0]"]
%% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
17["Sweep Extrusion<br>[605, 647, 0]"]
13["Sweep Extrusion<br>[605, 647, 0]"]
%% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }]
18["Sweep Extrusion<br>[812, 839, 0]"]
%% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }]
19[Wall]
14[Wall]
%% face_code_ref=Missing NodePath
20[Wall]
15[Wall]
%% face_code_ref=Missing NodePath
21[Wall]
16[Wall]
%% face_code_ref=Missing NodePath
22[Wall]
17[Wall]
%% face_code_ref=Missing NodePath
23[Wall]
18[Wall]
%% face_code_ref=Missing NodePath
24[Wall]
19["Cap Start"]
%% face_code_ref=Missing NodePath
25["Cap Start"]
%% face_code_ref=Missing NodePath
26["Cap End"]
%% face_code_ref=Missing NodePath
27["Cap End"]
20["Cap End"]
%% face_code_ref=[ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
28["SweepEdge Opposite"]
21["SweepEdge Opposite"]
22["SweepEdge Adjacent"]
23["SweepEdge Opposite"]
24["SweepEdge Adjacent"]
25["SweepEdge Opposite"]
26["SweepEdge Adjacent"]
27["SweepEdge Opposite"]
28["SweepEdge Adjacent"]
29["SweepEdge Opposite"]
30["SweepEdge Opposite"]
31["SweepEdge Opposite"]
32["SweepEdge Opposite"]
33["SweepEdge Opposite"]
34["SweepEdge Adjacent"]
35["SweepEdge Adjacent"]
36["SweepEdge Adjacent"]
37["SweepEdge Adjacent"]
30["SweepEdge Adjacent"]
34["Sweep Extrusion<br>[812, 839, 0]"]
%% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }]
35[Wall]
%% face_code_ref=Missing NodePath
36["Cap End"]
%% face_code_ref=Missing NodePath
37["SweepEdge Opposite"]
38["SweepEdge Adjacent"]
39["SweepEdge Adjacent"]
1 --- 3
27 x--> 2
3 --- 5
3 --- 6
3 --- 7
3 --- 8
3 --- 9
3 --- 10
3 --- 11
3 --- 12
3 --- 13
3 --- 15
3 ---- 17
4 --- 14
4 --- 16
4 ---- 18
27 --- 4
8 --- 20
8 x--> 25
8 --- 31
8 --- 37
9 --- 21
9 x--> 25
9 --- 30
9 --- 36
39["StartSketchOnFace<br>[713, 750, 0]"]
%% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }]
1 --- 2
2 --- 3
2 --- 4
2 --- 5
2 --- 6
2 --- 7
2 --- 8
2 --- 9
2 --- 10
2 --- 11
2 --- 12
2 ---- 13
6 --- 18
6 x--> 19
6 --- 29
6 --- 30
7 --- 17
7 x--> 19
7 --- 27
7 --- 28
8 --- 16
8 x--> 19
8 --- 25
8 --- 26
9 --- 15
9 x--> 19
9 --- 23
9 --- 24
10 --- 14
10 x--> 19
10 --- 21
10 --- 22
10 x--> 25
10 --- 32
10 --- 38
11 --- 23
11 x--> 25
11 --- 33
11 --- 39
12 --- 24
12 x--> 25
12 --- 29
12 --- 35
14 --- 19
14 x--> 27
14 --- 28
14 --- 34
17 --- 20
17 --- 21
17 --- 22
17 --- 23
17 --- 24
17 --- 25
13 --- 14
13 --- 15
13 --- 16
13 --- 17
13 --- 18
13 --- 19
13 --- 20
13 --- 21
13 --- 22
13 --- 23
13 --- 24
13 --- 25
13 --- 26
13 --- 27
13 --- 28
13 --- 29
13 --- 30
14 --- 21
14 --- 22
24 <--x 14
15 --- 23
15 --- 24
26 <--x 15
16 --- 25
16 --- 26
28 <--x 16
17 --- 27
17 --- 29
17 --- 30
17 --- 31
17 --- 32
17 --- 33
17 --- 35
17 --- 36
17 --- 37
17 --- 38
17 --- 39
18 --- 19
18 --- 26
18 --- 28
18 --- 34
19 --- 28
19 --- 34
17 --- 28
30 <--x 17
22 <--x 18
18 --- 29
18 --- 30
21 <--x 20
23 <--x 20
25 <--x 20
27 <--x 20
29 <--x 20
20 --- 31
20 --- 37
38 <--x 20
21 --- 30
21 --- 36
37 <--x 21
22 --- 32
22 --- 38
39 <--x 22
23 --- 33
35 <--x 23
23 --- 39
24 --- 29
24 --- 35
36 <--x 24
28 <--x 26
29 <--x 27
30 <--x 27
31 <--x 27
32 <--x 27
33 <--x 27
32 <--x 20
20 <--x 39
31 --- 32
31 --- 33
31 ---- 34
32 --- 35
32 --- 37
32 --- 38
34 --- 35
34 --- 36
34 --- 37
34 --- 38
35 --- 37
35 --- 38
37 <--x 36
```