fix(cli): warn once on invalid REPOWISE_FULL_RESCORE_INTERVAL_DAYS across workspace fan-out

Analysed against 9ad977cb2 files changedby sloemo01
Open PR on GitHub

Change-risk score

7.5out of 10Below typical
Repository health
2.6to2.9base against this head

This change sits in the bottom third of this repository's own risk distribution. It is riskier than 29% of this repository's own commits.

No changed file lost health in this diff. Nothing outside this PR depends on a contract it changed.

Files changed
2
in this diff
Contracts changed
0
removed or signature
Outside callers
0
not in this diff
Findings added
1
3 resolved

Blast radius on the repo map

Every file in the repository, grouped into its own directories and sized by lines. The ones this PR changes are lit, and everything that imports them is marked.

packagestestsapi-clientclicoreserveruivscodewebunitsrcsrc/repowis…src/repowise/coresrc/repowise/server__tests__srcsrccligenerationhealthingestionpersiste…servertest_pro…workspaceagent_targe…commandsanalysisgenerationingestionworkspacemcp_serverroutersc4graphcomponen…mcp
changed, health fellchanged, health rosechanged, health heldimports a changed fileuntouchedchanged by this PR

Drawing 3,304 of 3,711 files at a readable size, grouped by directory and sized by lines of code. 2 changed here reach 4 more by import. 407 are too small to see at this width, which is what the frame below is for.

Inside packages/cli/src/repowise/cli/commands/update_cmd

command.pydeterministic.pyincremental.pypersistence.pyreporting.pyslot_noti…workspace.py

9 files, 1 changed by this PR and 2 that import one. This PR changes 2 files in total, spread across more than one top-level directory. Click any directory above to frame it instead.

Changed

What this PR added, and what it took away

Introduced findings are the ones inside the lines this PR added, not the file's existing ones. The resolved column is the only place in the product that lists them.

Introduced (1)
  • mediumnested complexity
    packages/cli/src/repowise/cli/commands/update_cmd/persistence.py:1261

    _full_rescore_interval_days nests 4 levels deep

Resolved (3)
  • function hotspot
    packages/cli/src/repowise/cli/commands/update_cmd/persistence.py
  • dry violation
    packages/cli/src/repowise/cli/commands/update_cmd/persistence.py
  • error handling
    packages/cli/src/repowise/cli/commands/update_cmd/persistence.py

Who else knows this code

The primary author of each changed file by share of its recent commits, mined from git history. Advisory: it says who has context, not who must review.

  • packages/cli/src/repowise/cli/commands/update_cmd/persistence.pyRaghav Chamadiya 89% of 33 commits
  • tests/unit/cli/test_health_rescore_gate.pyRaghav Chamadiya 100% of 2 commits

Tests that cover this change

Test files that import a file this PR changes. Not a coverage measurement: it is the import graph, so it says which tests are worth running, not which lines they reach.

  • tests/integration/test_cli.py
  • tests/unit/cli/test_module_attribution_repair.py
  • tests/unit/cli/test_update_persist_reliability.py

1 changed file has no test importing it.

Get this on your own pull requests

This page came from an index of repowise-dev/repowise. No model calls, no configuration, and it refreshes on every push. Install the bot and every pull request gets one of these.