Consolidate git identity, git init, and rubocop AllCops literals in tests #1466
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#1466
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
Three literals repeat across os-sdlc tests.
"-c", "user.name=t", "-c", "user.email=t@t"(and two email variants) appears in 13 test files.git init -qappears in about 24 files under five spellings (run_git, git, system, Open3)."AllCops:\n NewCops: disable\n"and variants appear in 7 files (plugins/os-sdlc/tests/lint_test.rb:24,34;plugins/os-sdlc/tests/support/lint_lesson_scenario.rb:56;plugins/os-sdlc/tests/support/fast_gate_scenario.rb:21).DISABLED_BY_DEFAULTis identical inplugins/os-sdlc/tests/lint/autocorrection_rubocop_run_test.rb:7andplugins/os-sdlc/tests/gate/commands_sdlc_lint_base_commit_test.rb:7.GitRepoFixture already inits repos. It becomes GitRepoScenario in the rename ticket.
Approach
Route all git init and identity through GitRepoScenario: one
init(dir)that carries the identity flags.Add
RubocopConfigFixture(a value) withminimalanddisabled_by_default.Migrate the sites.
This ticket depends on the rename ticket (GitRepoScenario).
Required work:
user.email=t@tinplugins/os-sdlc/tests/*_test.rbmodule RubocopConfigFixtureinplugins/os-sdlc/tests/support/rubocop_config_fixture.rbAcceptance criteria
Owner sketch
Route: fast-batch.
Origin
VERDICT: CREATE
Parent: #1019
Work started on branch fast-batch-22.
Resolution
Done: GitRepoScenario.init(dir, initial_branch:) owns repo init and repo-local identity; RubocopConfigFixture.minimal and .disabled_by_default own the shared rubocop configs.
Evidence: fast-batch-22 merged to main
5f32ca8f; commitsa118a27a,fff0229b,c089f320. 28 init sites migrated (15 + 10 -b main + 3 eval), identity flags dropped; 6 rubocop literal sites migrated; variants used in one file stay (ruling C2). Suites green: os-sdlc 2904, eval 608. Memo finding-c-git-and-rubocop-literals.md.Follow-ups: none