feat(issues): migration of flat issue files to the state-folder layout (phase 1, part 2) #10
No reviewers
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
WulfScience-FOSS/wulf-dev!10
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/phase-1-issue-migration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part 2 of Phase 1: migration of flat issue files
Adds
scripts/issue-migrate.sh, the one-time migration of flatissues/NNNN.yamlfiles toissues/<state>/NNNN--<slug>.yamlrequired byADR-WULF-006 ("Migration"). A consuming repository runs it once, by the path
modules/wulf-dev/scripts/issue-migrate.sh. Part 1 (scripts and schema) ismerged; part 3 (
pr.shroadmap check) follows. Roadmap items P1-5 to P1-9 areticked in their own commit. The project works at effort level
tool.The script
opengoes toopen/,closedtodone/. The linesstatus:,closed:andcreated:are removed, and the rest of each file stays byte forbyte. The slug is derived from the title as in part 1, and
issues/.nextiswritten last.
git mv, sogit log --followfollows them;untracked files with
mv. The script never commits.root, a symlinked
issues, a mixed tree, and per file the YAML, status, idand title. A file whose removal of the three fields would change anything
else (a value on several lines, a quoted key, a column-0 continuation line)
is refused, with a message, before any change.
the first change stops at once, names the file and says the tree is partly
migrated; git restores it.
Shared code
scripts/lib.shgains the shared YAML loading, the message definitions, thecounter writing and the creation environment;
issue-new.sh,comment-new.shandissue-validate.shuse them. Their messages and exitstatuses are unchanged;
issue_slugnow turns a newline in a title into ahyphen.
lib.sh, and the effort level line.Design and tests
docs/design/issue-migration.md(DE-M1 to DE-M6, 142 lines).issue-migrate.bats),with the five real flat issue files as fixtures, and additions to the root,
symlink and configuration tests. Last run: 1,074 tests, 0 failed, 3 skipped
(the part 1 rollback-fails-as-well branches, verified by inspection).
Audit and review
validate, except one sample whose title and body contain a non-ASCII arrow,
which the validator reports as the ASCII rule requires
(
reports/audit-issue-migration.md).fields) and four Low, all resolved. Review 002: one Medium (a repeated key
hides a change from the removal check) deferred as issue 0064, and one Low
resolved. The records are in
docs/reviews/phase-1-issue-migration/review-001and
docs/reviews/phase-1-issue-migration/review-002.Not covered
sync-managed.shand the ci-actions issue sync; Linux; a run on a realconsuming repository.
🤖 Generated with Claude Code