Skip to content

Conversation

@pawbana
Copy link
Contributor

@pawbana pawbana commented Nov 13, 2025

Adds mocked terraform installation files and uses them in provisioner/terraform.TestInstall
Fixes: coder/internal#72

@pawbana pawbana force-pushed the pb/terraform-install-test-flake branch from 3d73d8a to 4617874 Compare November 13, 2025 08:59
@pawbana pawbana requested a review from hugodutka November 13, 2025 09:21
Copy link
Contributor

@hugodutka hugodutka left a comment

Choose a reason for hiding this comment

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

I like the idea to mock the terraform server. When you're refactoring code, please avoid process exec for moving, zipping, and making files executable. We run these tests on multiple OSes, and stuff will be less prone to break if you stick to the go stdlib.

@pawbana pawbana requested a review from hugodutka November 13, 2025 15:31
Copy link
Contributor

@hugodutka hugodutka left a comment

Choose a reason for hiding this comment

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

looking good

@pawbana pawbana merged commit edf056b into main Nov 13, 2025
25 checks passed
@pawbana pawbana deleted the pb/terraform-install-test-flake branch November 13, 2025 19:14
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test flake: TestInstall reaches out over the internet

3 participants