Skip to content

Revert pumpevent fix attempt#577

Merged
ps2 merged 3 commits into
devfrom
ps2/revert-pumpevent-fix-attempt
Oct 31, 2025
Merged

Revert pumpevent fix attempt#577
ps2 merged 3 commits into
devfrom
ps2/revert-pumpevent-fix-attempt

Conversation

@ps2

@ps2 ps2 commented Oct 31, 2025

Copy link
Copy Markdown
Collaborator

Modifying the events pumpmanagers report was hack to try to deal with invalid events. Fixing the pumpmanagers is a better solution. The pumpmanagers that were reporting the invalid events are removed from the main code now.

Adding a fatalError if invalid pump events are submitted, so pumpmanager developers will discover issues like this faster.

@ps2 ps2 requested review from itsmojo and marionbarker October 31, 2025 15:42
@marionbarker

Copy link
Copy Markdown
Contributor

Test

Test Steps Definition

The most reliable test for this issue is:

  1. Pair a new DASH pod
  2. Attempt to add a carb entry
    • If that fails, the error is present
    • If that succeeds, the error is not present

Configuration

Begin with release/3.8.2, commit c885710, "update LoopKit: restore commit 2a1dfc2e;"

  • Perform Test Steps - no error

Test 1

Modify LoopKit to ps2/revert-pumpevent-fix-attempt branch, commit 3a677573,

  • Perform Test Steps - no error

Test 2

Step back 1 commit in LoopKit (to 6921a00e) - which provides a fatal error if a pump manager has a particular bug in it.

  • Perform Test Steps - crash happens and is revealed to be triggered from OmniBLE as part of the Insert Cannula steps
  • Do a quit/restart (rebuild the app) and can now insert the cannula
  • Carbs can be saved without the error

Future steps

Once pump managers do not trigger this error, then the fatal error, if it happens, can be added back to assist in identifying this issue for any future new pump managers.

@marionbarker marionbarker left a comment

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.

Approved from code review and test.
LGTM

@ps2 ps2 merged commit 7237c73 into dev Oct 31, 2025
2 checks passed
Jon-b-m added a commit to Artificial-Pancreas/iAPS that referenced this pull request Nov 14, 2025
@ps2 ps2 deleted the ps2/revert-pumpevent-fix-attempt branch June 4, 2026 12:02
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