Skip to content

Test improvements#182

Merged
alex-hunt-materialize merged 5 commits intomainfrom
test_improvements
Apr 8, 2026
Merged

Test improvements#182
alex-hunt-materialize merged 5 commits intomainfrom
test_improvements

Conversation

@alex-hunt-materialize
Copy link
Copy Markdown
Contributor

@alex-hunt-materialize alex-hunt-materialize commented Apr 7, 2026

  • Fix the test run directory to be relative to the current worktree.
  • Upload terraform.tfvars.json to remote state.
  • Clean up remote state on successful destroy.
  • Use hcl-edit to more safely parse/modify tf files.

It is easier to review each commit individually.

@alex-hunt-materialize alex-hunt-materialize marked this pull request as ready for review April 7, 2026 17:19
Copy link
Copy Markdown
Collaborator

@jubrad jubrad left a comment

Choose a reason for hiding this comment

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

Looks good, one question on shelling out for s3 commands

Comment on lines +303 to +312
println!("Deleting remote state from {prefix}");
let mut cmd = Command::new("aws");
cmd.args([
"s3",
"rm",
&prefix,
"--recursive",
"--region",
&backend.region,
]);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why not use an aws sdk for this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because claude wrote it and I didn't think of it. I'll follow up with another PR to change that.

@alex-hunt-materialize alex-hunt-materialize added this pull request to the merge queue Apr 8, 2026
Merged via the queue into main with commit 1312378 Apr 8, 2026
6 checks passed
@alex-hunt-materialize alex-hunt-materialize deleted the test_improvements branch April 8, 2026 11:41
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