Skip to content

feat: add workflow to refresh test deployments#1022

Draft
friedrichwilken wants to merge 3 commits intokyma-project:mainfrom
friedrichwilken:add_refresh_workflow_for_test_deployments
Draft

feat: add workflow to refresh test deployments#1022
friedrichwilken wants to merge 3 commits intokyma-project:mainfrom
friedrichwilken:add_refresh_workflow_for_test_deployments

Conversation

@friedrichwilken
Copy link
Contributor

@friedrichwilken friedrichwilken commented Feb 19, 2026

Add Automated Test Deployment Refresh Workflow

New Features

✨ Introduced an automated GitHub Actions workflow to refresh test deployments nightly, ensuring test environments remain clean and consistent for evaluation tests.

Changes

  • .github/workflows/refresh-test-deployments.yaml: Created a comprehensive workflow that:
    • Runs automatically every night at 2 AM UTC via cron schedule
    • Supports manual triggering via workflow_dispatch
    • Connects to Gardener cluster using kubeconfig credentials
    • Systematically undeploys all existing test scenarios
    • Force deletes any remaining test namespaces with proper cleanup handling
    • Deploys fresh test scenarios including pods, deployments, functions, subscriptions, and services
    • Verifies deployment of 15 expected test namespaces (test-pod-1 through test-deployment-16)
    • Provides detailed status reporting with pod counts, namespace lists, and resource summaries
    • Includes comprehensive logging with collapsible GitHub Actions groups
    • Generates workflow summary with deployment statistics and pod status
    • Implements error handling and timeout protection (30-minute workflow timeout)

The workflow ensures test environments are refreshed daily, removing stale resources and deploying clean test cases for consistent evaluation results.

  • 🔄 Regenerate and Update Summary

📬 Subscribe to the Hyperspace PR Bot DL to get the latest announcements and pilot features!

PR Bot Information

Version: 1.17.61 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback

  • Event Trigger: issue_comment.edited
  • Correlation ID: f72fb700-0de4-11f1-89b1-28524e907c78

@github-actions
Copy link

Note(s) for PR Auther:

  • The integration test will be skipped for the PR. You can trigger it manually after adding the label: run-integration-test.
  • The evaluation test will be skipped for the PR. You can trigger it manually after adding the label: evaluation requested.
  • If any changes are made to the evaluation tests data, make sure that the integration tests are working as expected.
  • If any changes are made to how to run the unit tests, make sure to update the steps for unit-tests in the create-release.yml workflow as well.

Note(s) for PR Reviewer(s):

  • Make sure that the integration and evaluation tests are working as expected.

Copy link
Contributor

@hyperspace-insights hyperspace-insights bot left a comment

Choose a reason for hiding this comment

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

The workflow has been reviewed and I've identified several issues affecting correctness. The main concerns are around shell path expansion issues with tilde (~) in environment variable contexts, which will cause kubectl configuration failures, and some redundant error handling logic.

PR Bot Information

Version: 1.17.61 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback

  • Correlation ID: 402ab000-0de4-11f1-8ccc-6c9a41134174
  • Event Trigger: pull_request.opened
  • LLM: anthropic--claude-4.5-sonnet

@friedrichwilken friedrichwilken changed the title add workflow to refresh test deployments feat: add workflow to refresh test deployments Feb 19, 2026
@hyperspace-insights
Copy link
Contributor

Summary

The following content is AI-generated and provides a summary of the pull request:


Add Workflow to Refresh Test Deployments

✨ New Features

Introduced an automated GitHub Actions workflow to refresh test deployments on a nightly schedule, ensuring test environments remain clean and up-to-date.

Changes

  • .github/workflows/refresh-test-deployments.yaml: Created a comprehensive workflow that:
    • Runs nightly at 2 AM UTC via cron schedule and supports manual triggering
    • Connects to the Gardener cluster using kubeconfig credentials
    • Removes all existing test namespaces (matching patterns: test-pod, test-deployment, test-function, test-subscription, test-service)
    • Deploys fresh instances of all 15 test scenarios
    • Implements force deletion with finalizer handling for stubborn namespaces
    • Waits for pods to reach their intended error states (60 seconds)
    • Provides detailed deployment verification and status reporting
    • Generates a summary with pod counts and namespace status
    • Includes timeout protection (30 minutes) and failure notifications
    • Validates all expected test namespaces are successfully deployed

The workflow ensures test environments are consistently refreshed, preventing stale state issues and maintaining reliable test conditions for evaluation tests.


  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.17.61 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback


💌 Have ideas or want to contribute? Create an issue and share your thoughts with us!
📑 Check out the documentation for more information.
📬 Subscribe to the Hyperspace PR Bot DL to get the latest announcements and pilot features!

Made with ❤️ by Hyperspace.

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.

1 participant

Comments