Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properly flush batch #5565

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

properly flush batch #5565

wants to merge 1 commit into from

Conversation

jessfraz
Copy link
Contributor

@jessfraz jessfraz commented Feb 28, 2025

we saw in kcl.py that programs were not finsihing executing when in kcl.py

i can test this in this PR #5553 but like waiting on an engine side thing so either you can wait to merge or whatever i did a temp fix in kcl.py in the interim

i cant test this w a snapshot since we will zoom to fit on it flushing the batch anyways

  • update kcl.py after this to remove hacks
  • cli doesnt need zoom_to_fit before export now

Signed-off-by: Jess Frazelle <[email protected]>
Copy link

qa-wolf bot commented Feb 28, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Feb 28, 2025 2:06am

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

Attention: Patch coverage is 25.00000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 86.38%. Comparing base (a0924bc) to head (a1f148a).

Files with missing lines Patch % Lines
src/wasm-lib/kcl/src/execution/mod.rs 25.00% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5565      +/-   ##
==========================================
- Coverage   86.43%   86.38%   -0.06%     
==========================================
  Files          97       97              
  Lines       37224    37244      +20     
==========================================
- Hits        32176    32174       -2     
- Misses       5048     5070      +22     
Flag Coverage Δ
wasm-lib 86.38% <25.00%> (-0.06%) ⬇️

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

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

// Flush the batch with all the end commands.
// If we don't do this then some programs might not fully finish executing.
self.engine
.flush_batch(true, SourceRange::default())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pretty sure this needs to be inside execute_and_build_graph() so that any commands are captured in the artifact graph.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh shit fair

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh hey thats. how i can test it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do tomorrow my brain is fried today

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