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

fix: ensure Terraform is available for integration tests #390

Merged
merged 9 commits into from
Jan 28, 2025
Merged

Conversation

Parkreiner
Copy link
Contributor

@Parkreiner Parkreiner commented Jan 27, 2025

Closes #389

Changes made

  • Updated our test utilities to reference process.env explicitly, and pass it to our child processes
  • Made some minor changes to CI and other TypeScript code as minor touch-ups

Notes

  • This was an issue that actually started on Bun's side. They made a breaking change to their spawn function, while also (1) pushing it out in a patch release, and (2) making no mention of the changes in their changelog. I'm not sure if we want to tighten up our Bun versioning going forward, but we can always do that in a later PR

@Parkreiner Parkreiner self-assigned this Jan 27, 2025
@Parkreiner Parkreiner changed the title fix: fix: ensure Terraform is available for unit tests Jan 27, 2025
@Parkreiner Parkreiner changed the title fix: ensure Terraform is available for unit tests fix: ensure Terraform is available for integration tests Jan 27, 2025
@Parkreiner Parkreiner marked this pull request as ready for review January 27, 2025 20:40
Comment on lines +26 to +30
# We're using the latest version of Bun for now, but it might be worth
# reconsidering. They've pushed breaking changes in patch releases
# that have broken our CI.
# Our PR where issues started to pop up: https://github.com/coder/modules/pull/383
# The Bun PR that broke things: https://github.com/oven-sh/bun/pull/16067
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wanted to get this added to the file so that there's a paper trail in case Bun's changes suddenly cause CI to break again

Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

LGTM

@matifali
Copy link
Member

Merging to unblock a few community PRs.

@matifali matifali merged commit e64f1ed into main Jan 28, 2025
2 checks passed
@matifali matifali deleted the mes/tf-fix branch January 28, 2025 06:13
Copy link
Member

@phorcys420 phorcys420 left a comment

Choose a reason for hiding this comment

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

Post-merge 👍

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.

Automated tests fail with message Executable not found in $PATH: "terraform"
3 participants