Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement default provider SDK support for Python and NodeJS #16219

Draft
wants to merge 4 commits into
base: tg/default-providers-take-2
Choose a base branch
from

Conversation

tgummerer
Copy link
Collaborator

@tgummerer tgummerer commented May 17, 2024

Implement SDK support for default providers in Python and NodeJS (this is for the callback based version of default providers). Based on top of #16204 to hopefully make it easier to review the individual parts.

This also includes conformance tests, which I didn't include in the original PR since we don't have conformance testing for Go yet.

Fixes #16167
Fixes #16166

@pulumi-bot
Copy link
Contributor

pulumi-bot commented May 17, 2024

Changelog

[uncommitted] (2024-05-20)

Features

  • [sdk/{nodejs,python}] Allow default providers to be set programmatically
    #16219

@tgummerer tgummerer force-pushed the tg/default-providers-take-2-python-nodejs branch from 61f5d76 to 70cf8ea Compare May 17, 2024 11:18
@tgummerer tgummerer force-pushed the tg/default-providers-take-2 branch 3 times, most recently from 34a2eb6 to 253f359 Compare May 17, 2024 14:25
@tgummerer tgummerer force-pushed the tg/default-providers-take-2-python-nodejs branch 2 times, most recently from 54b1e34 to a67ac5c Compare May 17, 2024 15:45
…ne and Go

This PR takes an alternative approach for implementing programmatic
default providers, that was suggested in the internal design doc.

Instead of making the default provider global, we create an API with a
callback that creates a new subcontext.  In that subcontext and only
in that subcontext is the provider set as the default provider.  We
achieve this by setting up a new monitor with a different port, so the
engine can distinguish between the contexts.
@tgummerer tgummerer force-pushed the tg/default-providers-take-2 branch from 253f359 to c9e47e4 Compare May 17, 2024 16:20
@tgummerer tgummerer force-pushed the tg/default-providers-take-2-python-nodejs branch from a67ac5c to 7253e3e Compare May 20, 2024 08:16
@tgummerer tgummerer force-pushed the tg/default-providers-take-2 branch 4 times, most recently from 5b7821c to f20b7ac Compare May 24, 2024 09:20
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.

None yet

2 participants