Skip to content

Admin runtime tests#8667

Merged
k-anshul merged 2 commits intomainfrom
admin_runtime_tests
Feb 2, 2026
Merged

Admin runtime tests#8667
k-anshul merged 2 commits intomainfrom
admin_runtime_tests

Conversation

@k-anshul
Copy link
Member

@k-anshul k-anshul commented Jan 19, 2026

closes https://linear.app/rilldata/issue/PLAT-198/add-automated-tests-for-deploy-flows

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@k-anshul k-anshul self-assigned this Jan 19, 2026
@k-anshul k-anshul marked this pull request as draft January 19, 2026 09:56
Copy link
Contributor

@begelundmuller begelundmuller left a comment

Choose a reason for hiding this comment

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

This is nice!

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 automated integration tests for admin runtime deployment flows. The changes enable testing of deployment lifecycle operations including project deployment, environment variable updates, stopping, and restarting deployments.

Changes:

  • Enhanced test runtime to conditionally enable config reloader based on host access settings
  • Extended testadmin fixture to optionally include an embedded runtime server for integration testing
  • Exposed ReconcileDeploymentWorker constructor for direct invocation in tests
  • Added comprehensive integration test covering deployment lifecycle scenarios

Reviewed changes

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

File Description
runtime/testruntime/testruntime.go Enables config reloader when host access is disabled, ensuring proper configuration updates during tests
admin/testadmin/testadmin.go Adds optional runtime server support to test fixtures with dual-port allocation and proper server initialization
admin/jobs/river/reconcile_deployment.go Exports worker constructor for test usage to trigger deployment reconciliation directly
admin/deployments_test.go New comprehensive integration test validating deployment, environment updates, stop/restart flows

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

@k-anshul k-anshul force-pushed the admin_runtime_tests branch from d1a6031 to 84a80ce Compare February 2, 2026 05:38
@k-anshul k-anshul marked this pull request as ready for review February 2, 2026 05:38
@k-anshul k-anshul merged commit a8d315a into main Feb 2, 2026
11 checks passed
@k-anshul k-anshul deleted the admin_runtime_tests branch February 2, 2026 05:59
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.

3 participants