Skip to content

Conversation

@35C4n0r
Copy link
Collaborator

@35C4n0r 35C4n0r commented Dec 11, 2025

Description

setup now returns coderEnvVariables that can be used in execModuleScript.

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

…der_env

Signed-off-by: 35C4n0r <work.jaykumar@gmail.com>
@35C4n0r 35C4n0r self-assigned this Dec 11, 2025
@35C4n0r 35C4n0r marked this pull request as ready for review December 11, 2025 04:58
Signed-off-by: 35C4n0r <work.jaykumar@gmail.com>
@35C4n0r
Copy link
Collaborator Author

35C4n0r commented Dec 11, 2025

All tests pass
image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the test utilities for the agentapi module by adding support for extracting and using coder_env variables from Terraform state. The implementation introduces a new extractCoderEnvVars function and modifies the setup function to return these environment variables, allowing tests to optionally pass them to execModuleScript.

Key changes:

  • Adds extractCoderEnvVars function to extract environment variables from Terraform state's coder_env resources
  • Updates setup and setupContainer return types to include coderEnvVars
  • Refactors execModuleScript to use bash export statements instead of docker --env flags for passing environment variables

@DevelopmentCats
Copy link
Contributor

LGTM

@35C4n0r 35C4n0r merged commit 43d05a9 into main Dec 12, 2025
10 checks passed
@35C4n0r 35C4n0r deleted the feat-extract-coder-env-tests branch December 12, 2025 13:33
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