Skip to content

Conversation

@stevencl840
Copy link
Contributor

@stevencl840 stevencl840 commented Nov 3, 2025

Context 🌆

Ephemeral environments are temporary environments that developers can use to test changes. They are expected to come and go with the same cadence as a PR, created when the PR is opened and torn down when it is merged.

Users would like to be able to manually deploy their release to their ephemeral environment rather than having it deployed automatically when the release is created.

Details 🔍

This PR adds the ability to deprovision an ephemeral environment to the Go API client. I have added a test to demonstrate it working, and have updated the create ephemeral environment test to use deprovisioning to clean up after itself.

[sc-124429]

@stevencl840 stevencl840 requested review from a team and Copilot November 3, 2025 02:45
@stevencl840 stevencl840 changed the title Add Ephemeral Environment Deprovisionng feat: Add Ephemeral Environment Deprovisioning Nov 3, 2025
@stevencl840 stevencl840 marked this pull request as ready for review November 3, 2025 02:47
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 adds support for deprovisioning ephemeral environments in the Go SDK. The implementation introduces a new Deprovision function that triggers runbook runs to clean up ephemeral environments, along with comprehensive test coverage.

  • Adds a new Deprovision API method to the ephemeral environments service
  • Introduces data structures for deprovisioning commands, responses, and runbook runs
  • Adds comprehensive end-to-end tests including deferred cleanup in existing tests

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
pkg/environments/v2/route.go Adds the API route template for deprovisioning ephemeral environments
pkg/environments/v2/ephemeralenvironments/ephemeral_environment_service.go Implements the Deprovision function and related data structures for deprovisioning ephemeral environments
test/e2e/ephemeral_environment_service_test.go Adds deferred cleanup using DeprovisionEphemeralEnvironment and new test case for the deprovision functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stevencl840 stevencl840 force-pushed the sjc/add-ee-deprovisioning branch from 8208e80 to 9e58c8d Compare November 3, 2025 06:03
@stevencl840 stevencl840 merged commit 37fd102 into main Nov 3, 2025
6 checks passed
@stevencl840 stevencl840 deleted the sjc/add-ee-deprovisioning branch November 3, 2025 06:22
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