Skip to content

Commit 51459bb

Browse files
jessfrazjtrangithub-actions[bot]
authored
turn on insta snapshot for step file output (#5732)
* turn on insta snapshot for step file output Signed-off-by: Jess Frazelle <[email protected]> * use a macro for the kcl-samples Signed-off-by: Jess Frazelle <[email protected]> * Update rust/kcl-directory-test-macro/src/lib.rs Co-authored-by: Jonathan Tran <[email protected]> * updates Signed-off-by: Jess Frazelle <[email protected]> * control the order Signed-off-by: Jess Frazelle <[email protected]> * engine Signed-off-by: Jess Frazelle <[email protected]> * updates Signed-off-by: Jess Frazelle <[email protected]> * updates Signed-off-by: Jess Frazelle <[email protected]> * update steps Signed-off-by: Jess Frazelle <[email protected]> * updates Signed-off-by: Jess Frazelle <[email protected]> * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) --------- Signed-off-by: Jess Frazelle <[email protected]> Co-authored-by: Jonathan Tran <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e00dae1 commit 51459bb

File tree

129 files changed

+200984
-4701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+200984
-4701
lines changed
31.1 KB
Loading

public/kcl-samples/step/french-press.step

Lines changed: 378 additions & 378 deletions
Large diffs are not rendered by default.

public/kcl-samples/step/gear.step

Lines changed: 3781 additions & 3781 deletions
Large diffs are not rendered by default.

public/kcl-samples/step/pipe-flange-assembly.step

Lines changed: 170 additions & 170 deletions
Large diffs are not rendered by default.

public/kcl-samples/step/walkie-talkie.step

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,21 +2571,21 @@ DATA;
25712571
#2555 = VERTEX_POINT('NONE', #2554);
25722572
#2556 = CARTESIAN_POINT('NONE', (-0.007619999999999999, -0.04635499999999999, 0.0254));
25732573
#2557 = VERTEX_POINT('NONE', #2556);
2574-
#2558 = CARTESIAN_POINT('NONE', (0.0020980400000000007, -0.04167632, 0.0238125));
2574+
#2558 = CARTESIAN_POINT('NONE', (0.0020980400000000002, -0.04167632, 0.0238125));
25752575
#2559 = VERTEX_POINT('NONE', #2558);
2576-
#2560 = CARTESIAN_POINT('NONE', (0.0012729244244215347, -0.0425658054737599, 0.0238125));
2576+
#2560 = CARTESIAN_POINT('NONE', (0.0012729244244215345, -0.0425658054737599, 0.0238125));
25772577
#2561 = VERTEX_POINT('NONE', #2560);
2578-
#2562 = CARTESIAN_POINT('NONE', (0.0012729244244215347, -0.0425658054737599, 0.0254));
2578+
#2562 = CARTESIAN_POINT('NONE', (0.0012729244244215345, -0.0425658054737599, 0.0254));
25792579
#2563 = VERTEX_POINT('NONE', #2562);
2580-
#2564 = CARTESIAN_POINT('NONE', (0.0020980400000000007, -0.04167632, 0.0254));
2580+
#2564 = CARTESIAN_POINT('NONE', (0.0020980400000000002, -0.04167632, 0.0254));
25812581
#2565 = VERTEX_POINT('NONE', #2564);
2582-
#2566 = CARTESIAN_POINT('NONE', (-0.000680486600928543, -0.0446716083246068, 0.0238125));
2582+
#2566 = CARTESIAN_POINT('NONE', (-0.0006804866009285434, -0.0446716083246068, 0.0238125));
25832583
#2567 = VERTEX_POINT('NONE', #2566);
2584-
#2568 = CARTESIAN_POINT('NONE', (-0.000680486600928543, -0.0446716083246068, 0.0254));
2584+
#2568 = CARTESIAN_POINT('NONE', (-0.0006804866009285434, -0.0446716083246068, 0.0254));
25852585
#2569 = VERTEX_POINT('NONE', #2568);
2586-
#2570 = CARTESIAN_POINT('NONE', (-0.0015096417774425877, -0.045565448541457644, 0.0238125));
2586+
#2570 = CARTESIAN_POINT('NONE', (-0.0015096417774425879, -0.045565448541457644, 0.0238125));
25872587
#2571 = VERTEX_POINT('NONE', #2570);
2588-
#2572 = CARTESIAN_POINT('NONE', (-0.0015096417774425877, -0.045565448541457644, 0.0254));
2588+
#2572 = CARTESIAN_POINT('NONE', (-0.0015096417774425879, -0.045565448541457644, 0.0254));
25892589
#2573 = VERTEX_POINT('NONE', #2572);
25902590
#2574 = CARTESIAN_POINT('NONE', (-0.0010921999999999998, -0.04595367999999999, 0.0238125));
25912591
#2575 = VERTEX_POINT('NONE', #2574);
@@ -10417,58 +10417,58 @@ DATA;
1041710417
#10401 = VECTOR('NONE', #10400, 1);
1041810418
#10402 = CARTESIAN_POINT('NONE', (-0.007619999999999999, -0.04635499999999999, 0.0254));
1041910419
#10403 = LINE('NONE', #10402, #10401);
10420-
#10404 = DIRECTION('NONE', (-0.6800813455659819, -0.7331366608028572, 0));
10420+
#10404 = DIRECTION('NONE', (-0.6800813455659818, -0.7331366608028573, 0));
1042110421
#10405 = VECTOR('NONE', #10404, 1);
10422-
#10406 = CARTESIAN_POINT('NONE', (0.0020980400000000007, -0.04167632, 0.0238125));
10422+
#10406 = CARTESIAN_POINT('NONE', (0.0020980400000000002, -0.04167632, 0.0238125));
1042310423
#10407 = LINE('NONE', #10406, #10405);
1042410424
#10408 = DIRECTION('NONE', (0, 0, 1));
1042510425
#10409 = VECTOR('NONE', #10408, 1);
10426-
#10410 = CARTESIAN_POINT('NONE', (0.0012729244244215347, -0.0425658054737599, 0.0238125));
10426+
#10410 = CARTESIAN_POINT('NONE', (0.0012729244244215345, -0.0425658054737599, 0.0238125));
1042710427
#10411 = LINE('NONE', #10410, #10409);
10428-
#10412 = DIRECTION('NONE', (-0.6800813455659819, -0.7331366608028572, 0));
10428+
#10412 = DIRECTION('NONE', (-0.6800813455659818, -0.7331366608028573, 0));
1042910429
#10413 = VECTOR('NONE', #10412, 1);
10430-
#10414 = CARTESIAN_POINT('NONE', (0.0020980400000000007, -0.04167632, 0.0254));
10430+
#10414 = CARTESIAN_POINT('NONE', (0.0020980400000000002, -0.04167632, 0.0254));
1043110431
#10415 = LINE('NONE', #10414, #10413);
1043210432
#10416 = DIRECTION('NONE', (0, 0, 1));
1043310433
#10417 = VECTOR('NONE', #10416, 1);
10434-
#10418 = CARTESIAN_POINT('NONE', (0.0020980400000000007, -0.04167632, 0.0238125));
10434+
#10418 = CARTESIAN_POINT('NONE', (0.0020980400000000002, -0.04167632, 0.0238125));
1043510435
#10419 = LINE('NONE', #10418, #10417);
10436-
#10420 = DIRECTION('NONE', (0.5276972660417221, 0.8494325137479093, -0));
10437-
#10421 = DIRECTION('NONE', (0.0000000000000025022368681948575, -0.0000000000000015544772927388748, 1));
10438-
#10422 = CARTESIAN_POINT('NONE', (0.0005008822163118532, -0.04380855921867364, 0.0238125));
10436+
#10420 = DIRECTION('NONE', (0.5276972660417225, 0.8494325137479091, -0));
10437+
#10421 = DIRECTION('NONE', (0.0000000000000025022368681948567, -0.000000000000001554477292738876, 1));
10438+
#10422 = CARTESIAN_POINT('NONE', (0.0005008822163118523, -0.04380855921867364, 0.0238125));
1043910439
#10423 = AXIS2_PLACEMENT_3D('NONE', #10422, #10421, #10420);
10440-
#10424 = CIRCLE('NONE', #10423, 0.0014630400000000007);
10440+
#10424 = CIRCLE('NONE', #10423, 0.001463040000000001);
1044110441
#10425 = DIRECTION('NONE', (0, 0, 1));
1044210442
#10426 = VECTOR('NONE', #10425, 1);
10443-
#10427 = CARTESIAN_POINT('NONE', (-0.000680486600928543, -0.0446716083246068, 0.0238125));
10443+
#10427 = CARTESIAN_POINT('NONE', (-0.0006804866009285434, -0.0446716083246068, 0.0238125));
1044410444
#10428 = LINE('NONE', #10427, #10426);
10445-
#10429 = DIRECTION('NONE', (0.5276972660417224, 0.8494325137479088, -0));
10446-
#10430 = DIRECTION('NONE', (-0.0000000000000025022368681948563, 0.0000000000000015544772927388758, 0.9999999999999998));
10445+
#10429 = DIRECTION('NONE', (0.5276972660417225, 0.8494325137479091, -0));
10446+
#10430 = DIRECTION('NONE', (-0.0000000000000025022368681948567, 0.000000000000001554477292738876, 1));
1044710447
#10431 = CARTESIAN_POINT('NONE', (0.0005008822163118523, -0.04380855921867364, 0.0254));
1044810448
#10432 = AXIS2_PLACEMENT_3D('NONE', #10431, #10430, #10429);
10449-
#10433 = CIRCLE('NONE', #10432, 0.0014630400000000014);
10449+
#10433 = CIRCLE('NONE', #10432, 0.001463040000000001);
1045010450
#10434 = DIRECTION('NONE', (-0.6800813455659821, -0.733136660802857, 0));
1045110451
#10435 = VECTOR('NONE', #10434, 1);
10452-
#10436 = CARTESIAN_POINT('NONE', (-0.0006804866009285428, -0.0446716083246068, 0.0238125));
10452+
#10436 = CARTESIAN_POINT('NONE', (-0.000680486600928543, -0.0446716083246068, 0.0238125));
1045310453
#10437 = LINE('NONE', #10436, #10435);
1045410454
#10438 = DIRECTION('NONE', (0, 0, 1));
1045510455
#10439 = VECTOR('NONE', #10438, 1);
10456-
#10440 = CARTESIAN_POINT('NONE', (-0.0015096417774425877, -0.045565448541457644, 0.0238125));
10456+
#10440 = CARTESIAN_POINT('NONE', (-0.0015096417774425879, -0.045565448541457644, 0.0238125));
1045710457
#10441 = LINE('NONE', #10440, #10439);
1045810458
#10442 = DIRECTION('NONE', (-0.6800813455659821, -0.733136660802857, 0));
1045910459
#10443 = VECTOR('NONE', #10442, 1);
10460-
#10444 = CARTESIAN_POINT('NONE', (-0.0006804866009285428, -0.0446716083246068, 0.0254));
10460+
#10444 = CARTESIAN_POINT('NONE', (-0.000680486600928543, -0.0446716083246068, 0.0254));
1046110461
#10445 = LINE('NONE', #10444, #10443);
10462-
#10446 = DIRECTION('NONE', (-0.7529894373157879, -0.6580326035166137, -0));
10462+
#10446 = DIRECTION('NONE', (-0.7529894373157879, -0.6580326035166139, -0));
1046310463
#10447 = DIRECTION('NONE', (0, 0, -1));
10464-
#10448 = CARTESIAN_POINT('NONE', (0.0004985810518786172, -0.04381047558787883, 0.0238125));
10464+
#10448 = CARTESIAN_POINT('NONE', (0.0004985810518786167, -0.04381047558787883, 0.0238125));
1046510465
#10449 = AXIS2_PLACEMENT_3D('NONE', #10448, #10447, #10446);
10466-
#10450 = CIRCLE('NONE', #10449, 0.002666999999999998);
10467-
#10451 = DIRECTION('NONE', (-0.7529894373157879, -0.6580326035166137, -0));
10466+
#10450 = CIRCLE('NONE', #10449, 0.0026669999999999975);
10467+
#10451 = DIRECTION('NONE', (-0.7529894373157879, -0.6580326035166139, -0));
1046810468
#10452 = DIRECTION('NONE', (0, 0, -1));
10469-
#10453 = CARTESIAN_POINT('NONE', (0.0004985810518786172, -0.04381047558787883, 0.0254));
10469+
#10453 = CARTESIAN_POINT('NONE', (0.0004985810518786167, -0.04381047558787883, 0.0254));
1047010470
#10454 = AXIS2_PLACEMENT_3D('NONE', #10453, #10452, #10451);
10471-
#10455 = CIRCLE('NONE', #10454, 0.002666999999999998);
10471+
#10455 = CIRCLE('NONE', #10454, 0.0026669999999999975);
1047210472
#10456 = DIRECTION('NONE', (0.6800813455659818, 0.7331366608028573, 0));
1047310473
#10457 = VECTOR('NONE', #10456, 1);
1047410474
#10458 = CARTESIAN_POINT('NONE', (-0.0010921999999999998, -0.04595367999999999, 0.0238125));
@@ -15570,24 +15570,24 @@ DATA;
1557015570
#15554 = DIRECTION('NONE', (1, 0, -0));
1557115571
#15555 = AXIS2_PLACEMENT_3D('NONE', #15553, #15554, $);
1557215572
#15556 = PLANE('NONE', #15555);
15573-
#15557 = CARTESIAN_POINT('NONE', (0.0016854822122107677, -0.04212106273687995, 0.024606250000000003));
15574-
#15558 = DIRECTION('NONE', (-0.7331366608028557, 0.6800813455659834, -0));
15573+
#15557 = CARTESIAN_POINT('NONE', (0.001685482212210767, -0.04212106273687995, 0.024606250000000003));
15574+
#15558 = DIRECTION('NONE', (-0.7331366608028554, 0.6800813455659833, -0));
1557515575
#15559 = AXIS2_PLACEMENT_3D('NONE', #15557, #15558, $);
1557615576
#15560 = PLANE('NONE', #15559);
1557715577
#15561 = CARTESIAN_POINT('NONE', (0.0005008822163118532, -0.04380855921867364, 0.02460625));
1557815578
#15562 = DIRECTION('NONE', (0, 0, 1));
15579-
#15563 = DIRECTION('NONE', (0.5276972660417221, 0.8494325137479093, -0));
15579+
#15563 = DIRECTION('NONE', (0.527697266041722, 0.8494325137479093, -0));
1558015580
#15564 = AXIS2_PLACEMENT_3D('NONE', #15561, #15562, #15563);
1558115581
#15565 = CYLINDRICAL_SURFACE('NONE', #15564, 0.0014630400000000007);
15582-
#15566 = CARTESIAN_POINT('NONE', (-0.0010950641891855266, -0.045118528433032185, 0.02460625));
15582+
#15566 = CARTESIAN_POINT('NONE', (-0.0010950641891855268, -0.045118528433032185, 0.02460625));
1558315583
#15567 = DIRECTION('NONE', (-0.733136660802859, 0.6800813455659798, -0));
1558415584
#15568 = AXIS2_PLACEMENT_3D('NONE', #15566, #15567, $);
1558515585
#15569 = PLANE('NONE', #15568);
15586-
#15570 = CARTESIAN_POINT('NONE', (0.0004985810518786172, -0.04381047558787883, 0.02460625));
15586+
#15570 = CARTESIAN_POINT('NONE', (0.0004985810518786167, -0.04381047558787883, 0.02460625));
1558715587
#15571 = DIRECTION('NONE', (0, 0, -1));
15588-
#15572 = DIRECTION('NONE', (-0.7529894373157879, -0.6580326035166137, -0));
15588+
#15572 = DIRECTION('NONE', (-0.7529894373157879, -0.6580326035166139, -0));
1558915589
#15573 = AXIS2_PLACEMENT_3D('NONE', #15570, #15571, #15572);
15590-
#15574 = CYLINDRICAL_SURFACE('NONE', #15573, 0.002666999999999998);
15590+
#15574 = CYLINDRICAL_SURFACE('NONE', #15573, 0.0026669999999999975);
1559115591
#15575 = CARTESIAN_POINT('NONE', (-0.0006796422122107669, -0.045508937263120046, 0.024606250000000003));
1559215592
#15576 = DIRECTION('NONE', (0.7331366608028589, -0.68008134556598, 0));
1559315593
#15577 = AXIS2_PLACEMENT_3D('NONE', #15575, #15576, $);

rust/.config/nextest.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# If a test uses the engine, we want to limit the number that can run in parallel.
33
# This way we don't start and stop too many engine instances, putting pressure on our cloud.
44
uses-engine = { max-threads = 4 }
5+
# If a test must run after the engine tests, we want to make sure the engine tests are done first.
6+
after-engine = { depends-on = ["uses-engine"], max-threads = 12 }
57

68
[profile.default]
79
slow-timeout = { period = "30s", terminate-after = 1 }
@@ -24,3 +26,27 @@ threads-required = 2
2426
[[profile.default.overrides]]
2527
filter = "test(parser::parser_impl::snapshot_tests)"
2628
slow-timeout = { period = "1s", terminate-after = 5 }
29+
30+
# Create the filters for things that need to run after the engine tests.
31+
# Like generating the docs or the kcl-samples manifest, etc.
32+
33+
[[profile.default.overrides]]
34+
# If a test starts with test_after_engine_, then it needs to be run after the engine tests.
35+
filter = "test(test_after_engine_)"
36+
test-group = "after-engine"
37+
38+
[[profile.ci.overrides]]
39+
# If a test starts with test_after_engine_, then it needs to be run after the engine tests.
40+
filter = "test(test_after_engine_)"
41+
test-group = "after-engine"
42+
43+
[[profile.default.overrides]]
44+
# Generate the docs tests after the engine tests.
45+
filter = "test(docs::gen_std_tests)"
46+
test-group = "after-engine"
47+
48+
[[profile.ci.overrides]]
49+
# Generate the docs tests after the engine tests.
50+
filter = "test(docs::gen_std_tests)"
51+
test-group = "after-engine"
52+

rust/Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resolver = "2"
33
members = [
44
"kcl-bumper",
55
"kcl-derive-docs",
6+
"kcl-directory-test-macro",
67
"kcl-language-server",
78
"kcl-language-server-release",
89
"kcl-lib",

rust/justfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ run-sim-test test_name:
3434
# Run all the tests for the first time, in the right order.
3535
{{cita}} -p kcl-lib -- simulation_tests::{{test_name}}::parse
3636
{{cita}} -p kcl-lib -- simulation_tests::{{test_name}}::unparse
37-
TWENTY_TWENTY=overwrite {{cita}} -p kcl-lib -- tests::{{test_name}}::kcl_test_execute
37+
{{cita}} -p kcl-lib -- tests::{{test_name}}::kcl_test_execute
38+
{{cita}} -p kcl-lib -- simulation_tests::{{test_name}}::test_after_engine
3839

3940
overwrite-sim-test test_name:
4041
EXPECTORATE=overwrite {{cita}} -p kcl-lib --no-quiet -- simulation_tests::{{test_name}}::parse
4142
EXPECTORATE=overwrite {{cita}} -p kcl-lib --no-quiet -- simulation_tests::{{test_name}}::unparse
42-
TWENTY_TWENTY=overwrite {{cita}} -p kcl-lib --no-quiet -- tests::{{test_name}}::kcl_test_execute
43+
EXPECTORATE=overwrite TWENTY_TWENTY=overwrite {{cita}} -p kcl-lib --no-quiet -- tests::{{test_name}}::kcl_test_execute
44+
EXPECTORATE=overwrite {{cita}} -p kcl-lib --no-quiet -- simulation_tests::{{test_name}}::test_after_engine
4345

4446
test:
4547
export RUST_BRACKTRACE="full" && cargo nextest run --workspace --no-fail-fast

rust/kcl-derive-docs/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.1.47"
55
edition = "2021"
66
license = "MIT"
77
repository = "https://github.com/KittyCAD/modeling-app"
8-
rust-version = "1.73"
98
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
109

1110
[lib]

0 commit comments

Comments
 (0)