ote-migration-workflow
БесплатноБез исполняемых скриптовНе проверенAutomated workflow for migrating OpenShift component repositories to OTE framework
от openshift-eng★ 123 звезды на GitHubОб этом скилле
OTE Migration Workflow Skill
This skill provides step-by-step implementation guidance for the complete OTE migration workflow.
When to Use This Skill
Use this skill when executing the /ote-migration:migrate command to automate the migration of OpenShift component repositories to the openshift-tests-extension (OTE) framework.
Prerequisites
- Go toolchain (1.21+)
- Git installed and configured
- Access to openshift-tests-private repository:
- Option 1: Existing local clone (with optional update)
- Option 2: Git credentials to clone from
[email protected]:openshift/openshift-tests-private.git
- Target component repository:
- Option 1: Local path to existing repository
- Option 2: Git URL to clone repository
Overview
The migration is an 8-phase workflow that collects configuration, sets up repositories, creates structure, generates code, migrates tests, resolves dependencies, integrates with Docker, and provides documentation.
Workflow Summary:
ALL 8 PHASES ARE MANDATORY - EXECUTE EACH PHASE IN ORDER:
- User Input Collection (9 inputs - includes Dockerfile integration choice)
- Repository Setup (source and target)
- Structure Creation (directories and files)
- Code Generation (go.mod, main.go, Makefile, bindata.mk, fixtures.go)
- Test Migration (automated with rollback on failure)
- Dependency Resolution (go mod tidy + vendor + build verification)
- Dockerfile Integration (uses choice from Input 9)
- Final Summary and Next Steps
DO NOT skip Phase 7. After Phase 6 completes, proceed immediately to Phase 7.
Key Design Principles:
- No sig filtering: All tests included without filtering logic
- CMD at root (monorepo):
cmd/<extension-name>-tests-ext/main.go(not under test/) - Simple annotations: [OTP] at beginning of Describe, [Level0] at beginning of test name only
- Single go.mod (monorepo): All dependencies in root go.mod (no separate test module)
- Vendor at root (monorepo): Only
vendor/at repository root - No compress/copy targets: Removed from root Makefile
- 🚨 REQUIRED IMPORTS (DO NOT MODIFY): main.go MUST import both packages:
exutil "github.com/openshift/origin/test/extended/util"- provides the actual CLI type (exutil.CLI)compat_otp "github.com/openshift/origin/test/extended/util/compat_otp"- provides helper functions (NewCLI(),KubeConfigPath())- CRITICAL: Use
*exutil.CLIfor type declarations, NOT*compat_otp.CLI(which doesn't exist)
Migration Phases
Phase 1: User Input Collection (9 inputs)
Collect all necessary information from the user before starting the migration.
CRITICAL INSTRUCTIONS:
- Extension name (Input 4): AUTO-DETECT from target repository - do NOT ask user
- All other inputs: Ask user explicitly using AskUserQuestion tool or direct prompts
- WAIT for user response before proceeding to the next input or phase
- Switch to target repository happens after Input 3 (before auto-detecting extension name)
- Dockerfile integration (Input 10): Ask user choice - will be used in Phase 7
Variables collected (shown as <variable-name>) will be used throughout the migration.
Input 1: Directory Structure Strategy
Ask: "Which directory structure strategy do you want to use?"
Option 1: Monorepo strategy (integrate into existing repo)
- Integrates into existing repository structure
- Uses existing
cmd/andtest/directories - CMD location:
cmd/extension/main.go(at repository root, NOT under test/) - Single go.mod: All dependencies in root go.mod (no separate test module)
- Vendor location:
vendor/at root ONLY
Option 2: Single-module strategy (isolated directory)
- Creates isolated
tests-extension/directory - Self-contained with single
go.mod - CMD location:
tests-extension/cmd/main.go - Vendor location:
tests-extension/vendor/
User selects: 1 or 2
Store the selection in variable: <structure-strategy> (value: "monorepo" or "single-module")
Input 2: Working Directory (Workspace)
Ask: "What is the working directory path for migration workspace?
IMPORTANT: This is a temporary workspace for cloning repositories. Your target repository will be collected in the next step (Input 3), and that's where OTE files will be created."
Purpose:
- Temporary location for cloning repositories that don't exist locally
- Recommendation: Parent directory of your target repo or temporary directory
User provides the path:
- Can be absolute or relative
- Can be current directory (
.) - Will create if doesn't exist
Store in variable: <working-dir>
Input 3: Target Repository
Ask: "What is the path to your target repository, or provide a Git URL to clone?"
- Option 1: Local path - Use existing local repository (e.g.,
/home/user/repos/router) - Option 2: Git URL - Clone from remote repository (e.g.,
[email protected]:openshift/router.git)
Установить ote-migration-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ote-migration-workflow?
Automated workflow for migrating OpenShift component repositories to OTE framework
Как установить скилл ote-migration-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ote-migration-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic