Skip to content

fix: prevent erroneous early returns in sim mode #789

Merged
gbin merged 1 commit into
masterfrom
matthew_a/fix/run_one_iteration_remove_early_return
Feb 6, 2026
Merged

fix: prevent erroneous early returns in sim mode #789
gbin merged 1 commit into
masterfrom
matthew_a/fix/run_one_iteration_remove_early_return

Conversation

@matthewashton-k

@matthewashton-k matthewashton-k commented Feb 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

I noticed that the process() functions for my tasks that were supposed to be executed by runtime were not being called, and I discovered an early return in the preprocess and post process sim logic that was exiting too early.

(I may add a test for this if you think its a good idea)

Changes

Simple replacement of an early return with an if statement wrapping around the logic.

Testing

  • just std-ci
  • just lint
  • cargo +stable nextest run --workspace --all-targets
  • Tested it out on my own project, made sure that tasks that were executed in sim and executed by runtime behaved as expected.

Checklist

  • I have updated docs or examples where needed
  • I have added or updated tests where needed
  • I have considered platform impact (Linux/macOS/Windows/embedded)
  • I have considered config/logging changes (if applicable)
  • This change is not a breaking change (or I documented it below)

Breaking changes (if any)

N/A

Additional context

@matthewashton-k matthewashton-k requested a review from gbin February 5, 2026 20:46
@gbin gbin added bug Something isn't working include in changelog labels Feb 5, 2026
@makeecat

makeecat commented Feb 6, 2026

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@gbin

gbin commented Feb 6, 2026

Copy link
Copy Markdown
Collaborator

Thanks this was broken in a very strange way.

@gbin gbin merged commit 142e92e into master Feb 6, 2026
24 of 25 checks passed
@gbin gbin deleted the matthew_a/fix/run_one_iteration_remove_early_return branch February 6, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working include in changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants