test: combine #2855 cortex review bot with #2948 snowpark deploy --prune fixe#3106
test: combine #2855 cortex review bot with #2948 snowpark deploy --prune fixe#3106sfc-gh-kolszewski wants to merge 7 commits into
Conversation
Adds a GitHub Actions workflow and orchestration script that uses the Cortex Code CLI as an autonomous agent to perform E2E verification of CLI behavioral changes on pull requests. The agent gets a dedicated Snowflake playground database and verifies happy paths, edge cases, breaking changes, and side effects. The workflow is opt-in per PR: it only runs when the "enable-ai-e2e-review" label is present. Adding the label triggers a run; pushes, reopens, and ready-for-review re-run only while the label remains.
Gate the cortex-review job on the PR author's association so only org owners/members and repo collaborators can trigger the autonomous E2E review for now, in addition to the existing same-repo and opt-in label checks.
author_association only vouches for the PR author. A triage-access contributor can apply the enable-ai-e2e-review label to a trusted member's PR and trigger the privileged, secret-bearing review job. Add an authorize gate job that checks the triggering actor's repo permission via the collaborator-permission API (the label applier on labeled events). Triage reports as read, so requiring write/admin excludes it. The review job needs: this gate, so it never starts for an unauthorized trigger; set -e makes any API error fail closed.
`snow snowpark deploy --prune` now also drops procedures and functions that exist in the target schemas but are no longer declared in `snowflake.yml`. Previously `--prune` only cleared stage contents, so removed entities lingered in Snowflake until dropped manually. Only schemas that contain at least one declared entity of the same type are scanned, and builtin functions are skipped. Signature-based matching is used so overloads are preserved correctly. Closes #2218
…e notes The `--prune` help text changed but the help-message snapshot was not regenerated, failing test_help_messages[snowpark.deploy]. The rebase also re-introduced two release-note entries that already live under v3.17.0, and left the prune entry under a released version; move it to Unreleased.
Cortex AI E2E Review
SummaryPR #3106 extends the E2E Test Results
*Note: Exit code 1 in all deploy cases is from a pre-existing Breaking ChangesBehavioral change to The This is a behavioral extension of an existing flag, but:
Risk assessment: Users who currently use Side-Effect Verification
All DROP operations used Potential Risks
VerdictPASS — The new |
Pre-review checklist
RELEASE-NOTES.md(see when and how).Changes description
...