Skip to content

Duplicate Pipeline Management Command #1711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 12, 2025

Conversation

stephherbers
Copy link
Contributor

Description

Resolves #1656

Tested locally with:

  • basic pipelines
  • complex pipelines (10+ nodes of all types)
  • archived experiments and pipelines (mix too)
  • versioned
  • copies and copies of versions

lmk of any other edge cases I'm missing and would like me to test

User Impact

None for functionality, but more pipelines will appear in their pipeline homepage. The naming convention will change it will be renames to "Copy for (experiment.name)"

Demo

sample output with 2 duplicate pipelines:
Found 2 shared pipelines to duplicate
Do you want to proceed? (y/N): y
Processing pipeline: broken pipe (ID: 9)
Shared by 2 experiments
Created pipeline copy 34 for experiment has duplicate pipline
Processing pipeline: Language Router (ID: 3)
Shared by 2 experiments
Created pipeline copy 35 for experiment alphabot
Successfully created 2 pipeline copies

Docs and Changelog

No

claude bot and others added 4 commits June 3, 2025 20:48
…riment relations

- Creates data migration to identify pipelines shared by multiple experiments
- Duplicates shared pipelines to ensure each experiment has its own pipeline copy
- Copies all associated Node objects with complete configurations
- Updates experiment references to use the new duplicated pipelines
- Uses atomic transactions for data integrity
- Includes safety measures to prevent accidental migration reversal

Resolves #1656

Co-authored-by: stephherbers <[email protected]>
@stephherbers stephherbers requested review from snopoke and SmittieC June 4, 2025 21:48
@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stephherbers stephherbers merged commit 263f34d into main Jun 12, 2025
9 checks passed
@stephherbers stephherbers deleted the claude/issue-1656-20250603_204517 branch June 12, 2025 14:06
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.

Migrate shared pipelines to one-to-one experiment relation
4 participants