{{ message }}
[FIX] Skip un-clonable connectors gracefully; cascade to dependent workflows - #22
Merged
Merged
Conversation
…rkflows OAuth-backed and redacted-metadata connectors can't be recreated via the Platform API (credentials can't be minted server-side). Previously they were skipped but their workflows/pipelines were still cloned connector-less, so every scheduled run failed. - connector: adopt a same-name target connector before recreating, so an operator who provisions one on the target (where OAuth completes) gets it adopted on re-run, wiring dependent endpoints. - connector: record genuinely-skipped connector ids + surface a report warning. - workflow: cascade-skip workflows whose endpoints use a skipped connector; pipeline / api_deployment / tool_instance cascade off the missing remap. - report: surface frictionless tool/workflow skips as warnings, not just logs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CsGrHbs5SWmQkKqiimg6CF
Contributor
- workflow: a workflow blocked by both a skipped tool and a skipped connector now surfaces both reasons instead of only the first (no extra re-run to learn the second blocker). - tests: assert the tool-skip cascade emits its report warning; cover the dual-skip (tool + connector) case. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CsGrHbs5SWmQkKqiimg6CF
Deepak-Kesavan
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
OAuth-backed connectors (e.g. Google Drive) and redacted-metadata connectors (auto-provisioned, e.g. Unstract Cloud Storage) cannot be cloned — the Platform API never exposes OAuth refresh tokens, and a valid token can only be minted by completing the OAuth flow as the target user (UI-only). The clone already skipped them, but still cloned their workflows and pipelines connector-less → every scheduled ETL/TASK run failed (the "failing every half hour" symptom).
Changes
connector.py): a same-name target connector is adopted before any recreate attempt. This is the recovery path — the operator provisions the connector on the target (where OAuth completes), re-runs, and the clone adopts it and wires dependent endpoints. (Backend match is exactconnector_name, org-scoped.)workflow.py): a workflow whose SOURCE/DEST endpoint references a skipped connector is skipped;pipeline/api_deployment/tool_instancecascade off the missing workflow remap (same mechanism as the frictionless-adapter cascade). No more guaranteed-failing pipelines.The
wf → connectorsmap is built from a single bulk endpoint listing, and only when connectors were actually skipped (zero cost otherwise).Tests
tests/clone/— 184 passed. New/strengthened: OAuth/redacted skip records id + warning; OAuth connector adopted when a same-name target exists; workflow cascade-skip on skipped endpoint connector. Live dry-run against a dev org: no regression (identical counts,Completed successfully).🤖 Generated with Claude Code