Skip to content

Conversation

@clint-stripe
Copy link
Contributor

@clint-stripe clint-stripe commented Jul 24, 2025

Why are the changes needed?

The FlyteRemote class is documented as allowing gRPC options in the
https://github.com/flyteorg/flytekit/blob/v1.16.3/flytekit/remote/remote.py#L284-L285.
These are still passed through to client construction, though we stopped passing these to the underlying gRPC channel creation in #1458. (It's not clear to me if this was an oversight or intentional decision?)

This does mean that from v1.10.0 onward, there's no longer any way to provide additional options for the gRPC channel.
We have a custom proxy that requires additional gRPC options to be set at channel creation time (specifically, grpc.default_authority, though I can imagine others may be useful too). Unfortunately, it's not possible to configure this at any other point (e.g. with an interceptor).

What changes were proposed in this pull request?

This PR restores the previous (and still-documented) behavior.

How was this patch tested?

I added a unit test to ensure we're keeping the default options as well as adding any user-provided options.

I've also tested with this change internally and it works with pre-1.10.0 code that has the desired behavior.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Summary by Bito

This pull request restores the ability to pass additional gRPC options when creating the gRPC channel in the FlyteClient, addressing a regression from a previous update. It ensures compatibility with both default and user-provided options, and includes a unit test to verify the functionality.

@welcome
Copy link

welcome bot commented Jul 24, 2025

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

@clint-stripe
Copy link
Contributor Author

@pingsutw thanks for the quick review here!

Do we need to trigger a rebuild for the failing check? It looks like a spurious failure given the rest have succeeded (and this change should be pretty small in scope 🙂 )

@clint-stripe
Copy link
Contributor Author

Just wanted to bump this PR @pingsutw, thanks!

@davidmirror-ops davidmirror-ops merged commit f87103c into flyteorg:master Sep 5, 2025
114 of 115 checks passed
@welcome
Copy link

welcome bot commented Sep 5, 2025

Congrats on merging your first pull request! 🎉

Atharva1723 pushed a commit to Atharva1723/flytekit that referenced this pull request Oct 5, 2025
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.

4 participants