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

Isolate plugins #117

Open
danielrbradley opened this issue Dec 9, 2024 · 0 comments
Open

Isolate plugins #117

danielrbradley opened this issue Dec 9, 2024 · 0 comments
Labels
kind/enhancement Improvements or new features

Comments

@danielrbradley
Copy link
Member

danielrbradley commented Dec 9, 2024

Disable plugin downloads by default and add option to install specific plugins.

Generally when running tests, you want to have a controlled environment. Therefore, plugins should not be auto-downloaded during the test but be specified ahead of time.

This could be done by using the PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION setting by default with options to not disable it, and to install specific plugin versions (or latest) during the test setup phase.

Additionally, we should consider using an isolated plugins directory for each test to ensure tests don't interfere with each other by downloading multiple versions then accidentally using the wrong version.

This was created off the back of mis-typing a provider's name when wanting to attach but the test continuing and downloading the latest published version instead: pulumi/pulumi-azure-native#3760

@danielrbradley danielrbradley added the kind/enhancement Improvements or new features label Dec 9, 2024
@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Dec 9, 2024
@danielrbradley danielrbradley removed the needs-triage Needs attention from the triage team label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants