Skip to content

Return more KCL outcome data when executing - #1348

Merged
adamchalmers merged 5 commits into
mainfrom
achalmers/augment-kcl-exec
Sep 23, 2026
Merged

adamchalmers merged 5 commits into
mainfrom
achalmers/augment-kcl-exec

Conversation

@adamchalmers

@adamchalmers adamchalmers commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator

Requires KittyCAD/modeling-app#13362, CI will not pass until that is released.

Part of engine execution effort: KittyCAD/modeling-app#12500

Do not merge until the engine PR is ready.

@adamchalmers adamchalmers changed the title WIP: Return CAD operations in from engine execution WIP: Return more KCL outcome data when executing Aug 27, 2026
Comment thread Cargo.toml Outdated
@adamchalmers
adamchalmers force-pushed the achalmers/augment-kcl-exec branch from e05cb6e to c081596 Compare August 27, 2026 23:57
adamchalmers added a commit to KittyCAD/modeling-app that referenced this pull request Aug 28, 2026
These will be used to pull CadOperation into the modeling-cmds API, so it can be returned during engine execution.

Part of #12500
Used in KittyCAD/modeling-api#1348
@adamchalmers
adamchalmers force-pushed the achalmers/augment-kcl-exec branch 2 times, most recently from ee9192e to 51c7d42 Compare August 28, 2026 02:36
@codecov

codecov Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@4b32543). Learn more about missing BASE report.

Files with missing lines Patch % Lines
modeling-cmds/src/exec_kcl.rs 0.00% 10 Missing ⚠️
modeling-cmds/src/length_unit.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1348   +/-   ##
=======================================
  Coverage        ?   34.65%           
=======================================
  Files           ?       32           
  Lines           ?     1717           
  Branches        ?        0           
=======================================
  Hits            ?      595           
  Misses          ?     1122           
  Partials        ?        0           
Flag Coverage Δ
unittests 34.65% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adamchalmers
adamchalmers force-pushed the achalmers/augment-kcl-exec branch from b9236fb to 387c76f Compare August 28, 2026 14:01
adamchalmers added a commit to KittyCAD/modeling-app that referenced this pull request Sep 4, 2026
Next step of #12500, moving more KCL types out of kcl-lib and "pushing them down" into kcl-api, so they can be brought into kcmc. Once this PR merges, I can update kcmc's "execute KCL project on engine" response types so they return the variables map too.

Sometimes it doesn't make sense to move the type entirely down into kcl-api, because the type is inherently structured for runtime execution, not for a simple interface definition, or de/serialization. In that case, I add a new `FooView` type instead of moving `Foo` down. Generally `FooView` can be made `From<&Foo>` and impls De/Serialize.

Alas, some of these types from kcl-lib use types from kcmc, so those kcmc types _also_ have to be pushed down into kcl-api. Including the Point2d and Point3d types. 

Those changes are integrated into kcmc in this PR: KittyCAD/modeling-api#1348
@adamchalmers
adamchalmers force-pushed the achalmers/augment-kcl-exec branch 3 times, most recently from defbbca to bca39fe Compare September 15, 2026 03:21
@adamchalmers adamchalmers changed the title WIP: Return more KCL outcome data when executing Return more KCL outcome data when executing Sep 15, 2026
@adamchalmers
adamchalmers force-pushed the achalmers/augment-kcl-exec branch 2 times, most recently from 2763649 to 203809f Compare September 15, 2026 21:38
/// Fatal KCL errors that prevented your geometry from being created.
pub error: Option<KclError>,
/// Nonfatal KCL errors that need to be fixed.
/// Operations that have been performed in execution order, grouped by

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that ideally pub artifact_graph: ArtifactGraph, would be included above here. We made that mistake in a prior change.

@adamchalmers
adamchalmers force-pushed the achalmers/augment-kcl-exec branch from 203809f to 1ef306b Compare September 22, 2026 21:58
@adamchalmers
adamchalmers force-pushed the achalmers/augment-kcl-exec branch from 1ef306b to 6576113 Compare September 23, 2026 02:46
@adamchalmers
adamchalmers merged commit c937a07 into main Sep 23, 2026
11 checks passed
@adamchalmers
adamchalmers deleted the achalmers/augment-kcl-exec branch September 23, 2026 04:15
adamchalmers added a commit that referenced this pull request Sep 23, 2026
# Added

- New fields to ExecKclProjectOk and ExecKclProjectErr (#1348)
- Conversion between Point<LengthUnit> and Point<Millimeter> moved to
traits (#1348)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants