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

Disable provider building in tests #717

Closed

Conversation

VenelinMartinov
Copy link
Contributor

This PR is meant to disable the new behaviour that will be added in pulumi/pulumi-aws#2953 for CI.

pulumi/pulumi-aws#2953 will add provider building as a prerequisite of running tests, which is great for local development but is not what we want for CI, since it has a separate job for building the provider.

We set the env var DISABLE_PROVIDER_BUILD to disable the builds in CI.

@t0yv0
Copy link
Member

t0yv0 commented Nov 13, 2023

Would it be possible to consider not add any new complexity here but simply adjust the Go logic as appropriate? You could detect that the provider binary is in PATH by os.LookExec or you could detect that the code is in CI context by examining environment variables.

Copy link
Member

@t0yv0 t0yv0 left a comment

Choose a reason for hiding this comment

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

--^

@VenelinMartinov VenelinMartinov deleted the vvm/disable_provider_building_in_tests branch November 21, 2023 18:39
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.

2 participants