diff --git a/README.md b/README.md index 42d232b8..865ffeca 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@

- Release 1.10.2 + Release 1.11.0 Python 3.12-3.14 Documentation Changelog diff --git a/docs/changelog/RELEASE_NOTES_1.11.0.md b/docs/changelog/RELEASE_NOTES_1.11.0.md new file mode 100644 index 00000000..a7fc2193 --- /dev/null +++ b/docs/changelog/RELEASE_NOTES_1.11.0.md @@ -0,0 +1,15 @@ +# envctl 1.11.0 + +## What's Changed +* Preserve GitHub auth during import fetch by @kfiramar in https://github.com/OrgPele/envctl/pull/331 +* Repair missing frontend dependencies before preview startup by @kfiramar in https://github.com/OrgPele/envctl/pull/332 +* Add repository-owned dynamic preview sidecars by @kfiramar in https://github.com/OrgPele/envctl/pull/338 +* Consolidate PR preview controller ownership by @kfiramar in https://github.com/OrgPele/envctl/pull/336 +* Remove obsolete state and harden action/workflow execution by @kfiramar in https://github.com/OrgPele/envctl/pull/337 +* Deeply harden runtime state and lifecycle ownership by @kfiramar in https://github.com/OrgPele/envctl/pull/341 +* Add Docker-backed application runtime by @kfiramar in https://github.com/OrgPele/envctl/pull/335 +* Consolidate and harden all open envctl changes by @kfiramar in https://github.com/OrgPele/envctl/pull/342 +* Promote consolidated envctl hardening to main by @kfiramar in https://github.com/OrgPele/envctl/pull/343 + + +**Full Changelog**: https://github.com/OrgPele/envctl/compare/1.10.2...1.11.0 diff --git a/pyproject.toml b/pyproject.toml index c7de3a82..e7cedfd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "envctl" -version = "1.10.2" +version = "1.11.0" description = "CLI for bringing up full local environments across a main repository and many worktrees." readme = {file = "README.md", content-type = "text/markdown"} requires-python = ">=3.12,<3.15" diff --git a/python/envctl_engine/pr_preview_controller.py b/python/envctl_engine/pr_preview_controller.py index 3cee6985..3ee8574f 100644 --- a/python/envctl_engine/pr_preview_controller.py +++ b/python/envctl_engine/pr_preview_controller.py @@ -96,6 +96,9 @@ "ENVCTL_BACKEND_ENV__", "ENVCTL_FRONTEND_ENV__", ) +PR_PREVIEW_SERVICE_ENV_OVERLAY_PATTERN = re.compile( + r"^ENVCTL_[A-Z][A-Z0-9_]*_ENV__[A-Z_][A-Z0-9_]*$" +) FAILED_START_STATUSES = frozenset({"public_route_unhealthy", "start_failed"}) PUBLIC_ROUTE_HEALTH_DEADLINE_SECONDS = 30.0 PUBLIC_ROUTE_HEALTH_INTERVAL_SECONDS = 2.0 @@ -847,7 +850,11 @@ def pr_preview_start_env_overrides() -> dict[str, str]: return { key: value for key, value in os.environ.items() - if key.startswith(PR_PREVIEW_START_ENV_PREFIXES) and str(value).strip() + if ( + key.startswith(PR_PREVIEW_START_ENV_PREFIXES) + or PR_PREVIEW_SERVICE_ENV_OVERLAY_PATTERN.fullmatch(key) + ) + and str(value).strip() } diff --git a/tests/python/runtime/test_pr_preview_controller.py b/tests/python/runtime/test_pr_preview_controller.py index e617a665..a9a6fdbf 100644 --- a/tests/python/runtime/test_pr_preview_controller.py +++ b/tests/python/runtime/test_pr_preview_controller.py @@ -679,6 +679,14 @@ def test_labeled_event_imports_branch_with_isolated_deps_and_saves_state( "ENVCTL_FRONTEND_ENV__VITE_PADDLE_CLIENT_TOKEN", "test-client-token", ) + monkeypatch.setenv( + "ENVCTL_VOICE_RUNTIME_ENV__DEEPGRAM_API_KEY", + "deepgram-preview-key", + ) + monkeypatch.setenv( + "ENVCTL_VOICE_RUNTIME_ENV__CARTESIA_API_KEY", + "cartesia-preview-key", + ) exit_code = instance.run_pull_request_event( pr_payload( @@ -743,6 +751,8 @@ def test_labeled_event_imports_branch_with_isolated_deps_and_saves_state( assert start_call["env"]["ENVCTL_SOURCE_PADDLE_GROWTH_MONTHLY_PRICE_ID"] == "pri_growth_monthly" assert start_call["env"]["ENVCTL_BACKEND_ENV__PADDLE_BILLING_ENABLED"] == "true" assert start_call["env"]["ENVCTL_FRONTEND_ENV__VITE_PADDLE_CLIENT_TOKEN"] == "test-client-token" + assert start_call["env"]["ENVCTL_VOICE_RUNTIME_ENV__DEEPGRAM_API_KEY"] == "deepgram-preview-key" + assert start_call["env"]["ENVCTL_VOICE_RUNTIME_ENV__CARTESIA_API_KEY"] == "cartesia-preview-key" assert start_call["env"]["ENVCTL_BACKEND_ENV__FRONTEND_BASE_URL"] == "https://pele-monorepo-pr-789.srv.example.test" assert ( start_call["env"]["ENVCTL_BACKEND_ENV__BACKEND_PUBLIC_URL"]