Skip to content

fix: address hidden steep issues#415

Open
chris-olszewski wants to merge 3 commits intomainfrom
olszewski/fix_hidden_steep_issues
Open

fix: address hidden steep issues#415
chris-olszewski wants to merge 3 commits intomainfrom
olszewski/fix_hidden_steep_issues

Conversation

@chris-olszewski
Copy link
Copy Markdown
Member

@chris-olszewski chris-olszewski commented Apr 10, 2026

What was changed

Fix a few existing type check errors that were hidden from the protobuf hole.

Anything that wasn't just filling in RBS mistakes will have an additional comment.

Why?

I encountered these when enabling parts of the codebase to get checked with Steep in #414

I split these out to a new PR as these changes get lost in that PR with 40k lines of generated RBS files.

Checklist

  1. Closes N/A

  2. How was this tested:
    Steep now passes, for behavior changes I added regression tests.

  3. Any docs updates needed?
    N/A

@chris-olszewski chris-olszewski force-pushed the olszewski/fix_hidden_steep_issues branch from 640cdb4 to db522b8 Compare April 10, 2026 18:41
@chris-olszewski chris-olszewski force-pushed the olszewski/fix_hidden_steep_issues branch from db522b8 to c8237bb Compare April 10, 2026 20:14
@chris-olszewski chris-olszewski force-pushed the olszewski/fix_hidden_steep_issues branch from c8237bb to 156ec3f Compare April 10, 2026 20:19
class Worker
class PollerBehavior
def _to_bridge_options: -> untyped
end
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not super easy to tell from the diff, but we want these to be nested e.g. Worker::PollerBehavior::SimpleMaximum, which they are in the Ruby file, but not in RBS

check 'lib'
ignore 'lib/temporalio/api', 'lib/temporalio/internal/bridge/api'
library 'uri', 'objspace'
library 'uri', 'objspace', 'etc'
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Required for Etc.nprocessors usage in thread_pool.rb

connection:,
namespace:,
data_converter: DataConverter.default,
data_converter: Converters::DataConverter.default,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was flat out broken, but most calls go through Client.connect instead of this directly

@@ -158,15 +158,15 @@ def start_update_with_start_workflow(input)
# @!visibility private
def signal_with_start_workflow(input)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There were 2 bugs in this implementation:

  • It used input.workflow which doesn't exist
  • It passed input into _with_started_pan for header forwarding which would also cause a crash since headers don't exist on the input type.

@chris-olszewski chris-olszewski marked this pull request as ready for review April 10, 2026 20:31
@chris-olszewski chris-olszewski requested a review from a team as a code owner April 10, 2026 20:31
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.

1 participant