Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/scripts/pull-request-dashboard/test_rollout.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,14 @@ def test_webhook_deployment_automates_queue_rollout(self) -> None:
canary_default = body.index("queue_mode=canary")
stable_guard = body.index("stable_queue_ready=true")
all_selection = body.index("queue_mode=all")
environment_remove = body.index("env:unset PR_DASHBOARD_QUEUE_MODE")
environment_write = body.index(
'env:set PR_DASHBOARD_QUEUE_MODE "$queue_mode"'
)
self.assertLess(canary_default, stable_guard)
self.assertLess(stable_guard, all_selection)
self.assertLess(all_selection, environment_write)
self.assertLess(all_selection, environment_remove)
self.assertLess(environment_remove, environment_write)


if __name__ == "__main__":
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pull-request-dashboard-deploy-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ jobs:
--site "$NETLIFY_SITE_ID" \
--auth "$NETLIFY_AUTH_TOKEN" \
--force || true
npx --yes netlify-cli@26.0.2 env:unset PR_DASHBOARD_QUEUE_MODE \
--site "$NETLIFY_SITE_ID" \
--auth "$NETLIFY_AUTH_TOKEN" \
--force || true
npx --yes netlify-cli@26.0.2 env:set OTELBOT_SHARED_WORKFLOWS_CLIENT_ID "$OTELBOT_SHARED_WORKFLOWS_CLIENT_ID" \
--context production \
--scope functions \
Expand Down