CRC wave 4: apply CopSource, Cops, ProjectConfig renames and moves #1268
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1268
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
Apply 4 ledger rows (rename and move) for CopSource, Cops, ProjectConfig. Each row's path, constant, and test path change as listed in Approach.
Reproduce
n/a: structure-only refactor, no behavior change.
Approach
plugins/os-sdlc/lib/os_sdlc/cop_source.rb->plugins/os-sdlc/lib/os_sdlc/cops/cop_source.rbOsSdlc::CopSource->RuboCop::Cop::Sdlc::Structural::CopSourceplugins/os-sdlc/tests/cop_source_test.rb->plugins/os-sdlc/tests/cops/cop_source_test.rbplugins/os-sdlc/lib/os_sdlc/effect_call.rb->plugins/os-sdlc/lib/os_sdlc/cops/effect_in_model/effect_call.rbOsSdlc::EffectCall->RuboCop::Cop::Sdlc::Structural::EffectInModel::EffectCallplugins/os-sdlc/lib/os_sdlc/project/config.rb->plugins/os-sdlc/lib/os_sdlc/project_config.rbOsSdlc::Project::Config->OsSdlc::ProjectConfigplugins/os-sdlc/tests/project/config_check_retired_commit_key_test.rb->plugins/os-sdlc/tests/project_config_check_retired_commit_key_test.rb,plugins/os-sdlc/tests/project/config_check_target_path_test.rb->plugins/os-sdlc/tests/project_config_check_target_path_test.rb,plugins/os-sdlc/tests/project/config_command_missing_message_test.rb->plugins/os-sdlc/tests/project_config_command_missing_message_test.rb,plugins/os-sdlc/tests/project/config_load_selected_test.rb->plugins/os-sdlc/tests/project_config_load_selected_test.rb,plugins/os-sdlc/tests/project/config_path_root_test.rb->plugins/os-sdlc/tests/project_config_path_root_test.rb,plugins/os-sdlc/tests/project/config_test.rb->plugins/os-sdlc/tests/project_config_test.rbplugins/os-sdlc/lib/os_sdlc/project/config/document.rb->plugins/os-sdlc/lib/os_sdlc/project_config/document.rbOsSdlc::Project::Config::Document->OsSdlc::ProjectConfig::DocumentBefore you finish, grep the repository for each old file path and each old constant, not only the constant. Config and docs keep old paths (for example .rubocop.yml, loader collapse lists).
Acceptance criteria
cd plugins/os-sdlc && ruby tests/all.rb0 failures.ruby -e 'require "./plugins/os-sdlc/lib/os_sdlc"; OsSdlc::Db.connect!(":memory:"); OsSdlc.loader.eager_load'silent.Owner sketch
Each constant matches its new path; callers follow the new name.
Non-goals
Origin
Commits
b994c21c,6fa56585,bcc1890c; rows applied 4/4; rows deviated 1 (ProjectConfig inward edges, A10); rows blocked 0Resolution
Done: CopSource moved to RuboCop::Cop::Sdlc::Structural::CopSource and EffectCall to ...EffectInModel::EffectCall. The Project::Config -> ProjectConfig move (
bcc1890c) was reverted by919748c9, because it added the cycle-edge pair Project<->ProjectConfig; both rows are keep.Evidence: Commits
b994c21c6fa56585919748c9, ledger3215a3f8f698cb3e; suite 2458 runs 0 failures after the revert; cycle-edges 2; crc-ledger-check and crc-placement exit 0; deviation in docs/crc/os-sdlc/deviations.md.Follow-ups: none filed; R107 needs a new placement ruling, recorded in docs/crc/os-sdlc/HANDOFF.md run 4 Review (Note for the next run)