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

SC-4148 Reload atom every time the execution starts. #1607

Conversation

jluhrs
Copy link
Contributor

@jluhrs jluhrs commented Jan 28, 2025

No description provided.

Copy link
Contributor

@cquiroz cquiroz left a comment

Choose a reason for hiding this comment

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

Great idea to store isStarting no the internal state.
It isn't clear to me though where is the atom being reloaded?

switch(id)(SequenceState.Idle) *> send(breakpointReached(id))
} else
switch(id)(SequenceState.Running(false, false, false)) *> send(executing(id))
switch(id)(SequenceState.Running(false, false, false, false)) *> send(
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we do an atomReload when isStarting is true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. isStarting is used to disable the breakpoint check in atomReload.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 58.06452% with 13 lines in your changes missing coverage. Please review.

Project coverage is 34.87%. Comparing base (04dc1e8) to head (727aa72).
Report is 854 commits behind head on main.

Files with missing lines Patch % Lines
...d/src/main/scala/observe/model/SequenceState.scala 33.33% 6 Missing ⚠️
.../engine/src/main/scala/observe/engine/Engine.scala 72.72% 3 Missing ⚠️
...ngine/src/main/scala/observe/engine/Sequence.scala 50.00% 3 Missing ⚠️
...ed/src/main/scala/observe/model/SequenceView.scala 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1607      +/-   ##
==========================================
+ Coverage   30.21%   34.87%   +4.65%     
==========================================
  Files         222      220       -2     
  Lines       10356    10671     +315     
  Branches      202     1315    +1113     
==========================================
+ Hits         3129     3721     +592     
+ Misses       7227     6950     -277     

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

@jluhrs
Copy link
Contributor Author

jluhrs commented Jan 28, 2025

How it works: instead of scheduling the execution of the sequence, start schedules the call to atomReload, which in turn will schedule the execution of the sequence after the atom is reloaded.

@cquiroz
Copy link
Contributor

cquiroz commented Jan 28, 2025

I see, thanks for the clarificiation

Copy link
Contributor

@cquiroz cquiroz left a comment

Choose a reason for hiding this comment

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

LGTM

@jluhrs jluhrs merged commit 48dd074 into gemini-hlsw:main Jan 29, 2025
5 checks passed
@jluhrs jluhrs deleted the sc-4148-reload-step-after-continuing-from-a-breakpoint branch January 29, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants