You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/migrate-tests.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,9 @@ Migrate MCO test files from `openshift-tests-private/test/extended/mco/` to `mac
8
8
Use the transformation rules in `.claude/skills/mco-migration-workflow.md` for all domain-specific mappings (imports, test names, qualifiers, paths).
9
9
10
10
**Workflow:**
11
-
1. Ask for source repo, destination repo, compat_otp path (optional), filename, and target suite (longduration or disruptive, default: longduration). Check memory (`migrate_tests_config.md`) for saved paths.
11
+
1. Ask for source repo, destination repo, compat_otp path (optional), and filename. Check memory (`migrate_tests_config.md`) for saved paths.
12
12
2. Analyze the source file — identify tests, helpers, templates, and compat_otp dependencies. Check what already exists in destination.
13
13
3. Migrate — apply all transformations, copy templates, migrate helpers. Don't simplify or refactor code. Preserve function order from source.
14
14
4. Build with `make machine-config-tests-ext` and verify migrated tests appear in listing. Fix build errors iteratively.
15
-
5. Save paths to memory for next run.
15
+
5.**Verify ordering** — compare the sequence of functions, test cases (g.It), and helpers in the destination file against the source file. Report any ordering mismatches and fix them.
- Ask the user which suite to use: `longduration` (default) or `disruptive`
54
-
- `[Serial][Disruptive]` is **always required** — in the new framework `[Disruptive]` no longer implies `[Serial]`
48
+
- Both `[Serial]` and `[Disruptive]` are **always applied by default** — do not ask which suite to use
49
+
- In the new framework `[Disruptive]` no longer implies `[Serial]`, so both must be present
55
50
56
51
## Test Name Transformation (g.It blocks)
57
52
@@ -113,8 +108,9 @@ make machine-config-tests-ext
113
108
114
109
## Workflow
115
110
116
-
1. **Collect inputs** — source repo path, destination repo path, compat_otp path (optional), filename to migrate, and target suite (`longduration`default, or `disruptive`). Check memory (`migrate_tests_config.md`) for saved paths.
111
+
1. **Collect inputs** — source repo path, destination repo path, compat_otp path (optional), and filename to migrate. Both `[Serial]` and `[Disruptive]` labels are always applied by default (do not ask). Check memory (`migrate_tests_config.md`) for saved paths.
117
112
2. **Analyze** — read source file, identify tests/helpers/templates/compat_otp deps, check what already exists in destination.
118
113
3. **Migrate** — apply all transformations above, copy templates, migrate helper functions and compat_otp utilities as needed.
119
-
4. **Verify** — build and confirm migrated tests appear in listing. Fix any build errors iteratively.
120
-
5. **Save paths** to memory for next run.
114
+
4. **Verify build** — build and confirm migrated tests appear in listing. Fix any build errors iteratively.
115
+
5. **Verify ordering** — compare the sequence of all functions (test case functions, helper functions, and `g.It` blocks) in the destination file against their order in the source file. List any mismatches and fix them before proceeding.
0 commit comments