chore(#5694): remove deprecated customized/ scaffold - #5697
Conversation
|
🤖 Finished Review · ✅ Success · Started 9:00 PM UTC · Completed 9:11 PM UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Looks good to me Labels: PR removes deprecated scaffold code from the installer (internal/scaffold/) Previous runLooks good to me Previous run (2)Looks good to me |
|
/fs-fix In internal/scaffold/scaffold_test.go, remove the test case at line 962 in TestManagedHeader: {path: "customized/agents/.gitkeep", expect: ""},The embedded .gitkeep files are deleted in this PR, so this test case is stale. |
|
🤖 Finished Fix · ✅ Success · Started 10:52 AM UTC · Completed 10:58 AM UTC |
🔧 Fix agent — iteration 1 (human-triggered)Removed stale test case referencing deleted customized/agents/.gitkeep from TestManagedHeader. All tests pass. Fixed (1):
Tests: passedNext steps:
|
Remove the customized/agents/.gitkeep test case and its comment from TestManagedHeader. The embedded .gitkeep files under customized/ were deleted in this PR, making this test case reference a non-existent file. Addresses review feedback on #5697
|
🤖 Finished Review · ✅ Success · Started 10:59 AM UTC · Completed 11:08 AM UTC |
The customized/ directory overlay was deprecated by ADR 0064. This removes the scaffold code that generates customized/ subdirectories and .gitkeep placeholders during installation. Changes: - Delete embedded customized/ directory tree (10 .gitkeep files) - Remove CustomizedDirs() and PerRepoCustomizedDirs() from scaffold.go - Remove customizedDirsForPrefix() and .gitkeep generation loops from installfiles.go - Update layeredDirs comment to reference ADR 0064 - Update .pre-commit-tools.yaml to remove L1 override path docs referencing customized/scripts/ - Replace TestCustomizedDirsInstalled with TestNoCustomizedDirsInstalled that verifies no customized/ paths appear - Add TestNoCustomizedDirsInInstallFiles for both org and per-repo install paths - Remove customized/ assertions from e2e and layers tests Closes #5694 Signed-off-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
e37c64c to
76f1c21
Compare
|
🤖 Finished Review · ✅ Success · Started 11:42 AM UTC · Completed 11:54 AM UTC |
|
🤖 Finished Retro · ✅ Success · Started 7:44 PM UTC · Completed 8:04 PM UTC |
Remove the fullsend agent migrate-customizations command, which became dead code after the customized/ directory overlay mechanism was fully removed (PRs #5697 and #5836). With no overlay to migrate from, the command has nothing meaningful to do. - Delete internal/cli/migrate.go and internal/cli/migrate_test.go - Remove subcommand registration from internal/cli/agent.go - Update agent_test.go assertion and add negative assertion - Remove CLI reference documentation and migration guidance - Remove stale migrate.go references from docs - Annotate cross-references in ADRs to note the command's removal BREAKING CHANGE: The `fullsend agent migrate-customizations` CLI command has been removed. Users who have already migrated to config-driven agents are unaffected. Closes #5864 Signed-off-by: Claude <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
Retro: PR #5697 — Remove deprecated
|
Remove the fullsend agent migrate-customizations command, which became dead code after the customized/ directory overlay mechanism was fully removed (PRs #5697 and #5836). With no overlay to migrate from, the command has nothing meaningful to do. - Delete internal/cli/migrate.go and internal/cli/migrate_test.go - Remove subcommand registration from internal/cli/agent.go - Update agent_test.go assertion and add negative assertion - Remove CLI reference documentation and migration guidance - Remove stale migrate.go references from docs - Annotate cross-references in ADRs to note the command's removal BREAKING CHANGE: The `fullsend agent migrate-customizations` CLI command has been removed. Users who have already migrated to config-driven agents are unaffected. Closes #5864 Signed-off-by: Claude <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
Remove the fullsend agent migrate-customizations command, which became dead code after the customized/ directory overlay mechanism was fully removed (PRs #5697 and #5836). With no overlay to migrate from, the command has nothing meaningful to do. - Delete internal/cli/migrate.go and internal/cli/migrate_test.go - Remove subcommand registration from internal/cli/agent.go - Update agent_test.go assertion and add negative assertion - Remove CLI reference documentation and migration guidance - Remove stale migrate.go references from docs - Annotate cross-references in ADRs to note the command's removal BREAKING CHANGE: The `fullsend agent migrate-customizations` CLI command has been removed. Users who have already migrated to config-driven agents are unaffected. Closes #5864 Signed-off-by: Claude <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
Remove the fullsend agent migrate-customizations command, which became dead code after the customized/ directory overlay mechanism was fully removed (PRs #5697 and #5836). With no overlay to migrate from, the command has nothing meaningful to do. - Delete internal/cli/migrate.go and internal/cli/migrate_test.go - Remove subcommand registration from internal/cli/agent.go - Update agent_test.go assertion and add negative assertion - Remove CLI reference documentation and migration guidance - Remove stale migrate.go references from docs - Annotate cross-references in ADRs to note the command's removal BREAKING CHANGE: The `fullsend agent migrate-customizations` CLI command has been removed. Users who have already migrated to config-driven agents are unaffected. Closes #5864 Signed-off-by: Claude <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
Remove the fullsend agent migrate-customizations command, which became dead code after the customized/ directory overlay mechanism was fully removed (PRs #5697 and #5836). With no overlay to migrate from, the command has nothing meaningful to do. - Delete internal/cli/migrate.go and internal/cli/migrate_test.go - Remove subcommand registration from internal/cli/agent.go - Update agent_test.go assertion and add negative assertion - Remove CLI reference documentation and migration guidance - Remove stale migrate.go references from docs - Annotate cross-references in ADRs to note the command's removal BREAKING CHANGE: The `fullsend agent migrate-customizations` CLI command has been removed. Users who have already migrated to config-driven agents are unaffected. Closes #5864 Signed-off-by: Claude <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
Summary
Remove the deprecated
customized/directory scaffold code per ADR 0064. The installer was still generatingcustomized/subdirectories with.gitkeepplaceholders in new enrollments despite the overlay mechanism being deprecated a month ago. This corresponds to PR 3 in the deprecation plan.Related Issue
Closes #5694
Changes
customized/directory tree (10.gitkeepfiles underinternal/scaffold/fullsend-repo/customized/)CustomizedDirs(),PerRepoCustomizedDirs()fromscaffold.gocustomizedDirsForPrefix()and.gitkeepgeneration loops frominstallfiles.go(CollectInstallFilesandCollectPerRepoInstallFiles)layeredDirscomment to reference ADR 0064 instead of ADR 0035.pre-commit-tools.yamlto remove L1 override path docs referencingcustomized/scripts/TestCustomizedDirsInstalledwithTestNoCustomizedDirsInstalled(verifies no customized/ paths appear in scaffold walk)TestNoCustomizedDirsInInstallFilesfor both org and per-repo install pathsTesting
go test ./internal/scaffold/...passesgo vet ./internal/scaffold/... ./internal/layers/...passescustomized/paths appear in install outputChecklist
!for breaking changes)Closes #5694
Post-script verification
agent/5694-remove-customized-scaffold)038de3bab1f3b949daaa04441b3d7672be00c7c7..HEAD)