Skip to content

Conversation

@sbrugman
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings November 19, 2025 11:37
@sbrugman sbrugman added the fix Something isn't working label Nov 19, 2025
@sbrugman sbrugman enabled auto-merge (squash) November 19, 2025 11:38
Copilot finished reviewing on behalf of sbrugman November 19, 2025 11:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug where user-provided IO patches (via the io parameter) were being incorrectly overridden when save="none" was specified in the run() function.

Summary of changes:

  • Reversed the order of patch application in _runner.py to ensure user patches take precedence over save mode patches
  • Added comprehensive test cases to verify the fix works correctly across different save modes
  • Updated snapshots to reflect the corrected behavior

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/ordeq/src/ordeq/_runner.py Fixed patch ordering so user patches override save mode patches (line 266)
packages/ordeq/tests/resources/runner/graph.py Added test cases for different save modes including the critical save="none" with user patches scenario
packages/ordeq/tests/snapshots/runner/graph.snapshot.md Updated snapshot to reflect correct behavior where R5 is now populated when using user patches with save="none"
packages/ordeq/tests/snapshots/typing.snapshot.md Updated with additional type errors from the new test runs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants