fix(workspace): single-flight workspace updates

Analysed against f39532844 files changedby sloemo01
Open PR on GitHub

Change-risk score

9.3out of 10Elevated
Repository health
4.5to4.7base against this head

This change sits in the top third of this repository's own risk distribution, the band worth reviewing closely. It is riskier than 72% 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
4
in this diff
Contracts changed
0
removed or signature
Outside callers
0
not in this diff
Findings added
0
4 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,308 of 3,712 files at a readable size, grouped by directory and sized by lines of code. 4 changed here reach 7 more by import. 404 are too small to see at this width, which is what the frame below is for.

Inside packages/core/src/repowise/core

analysisgenerationingestionpersistencepipelineproviderssessionsupgradeworkspacedead_codehealthconcept_treecontextpage_generatordynamic_hin…external_sy…extractorsframework_edg…git_indexergraphlanguagesresolverscrudllmextractorsbiomarkerscomplexitydataflowperfrefactoringdialectskg_curation…se…co…sk…st…tr…ca…ch…fr…mo…se…incremental…per…effic…ar…bre…cod…co…contract…cr…di…re…re…updat…se…analy…cons…dy…evolu…extractor.pyrati…sema…te…vo…asse…fe…te…gr…orch…pert…va…cm…do…vi…py…fi…ind…_re…cp…jvm…jvm_…ts…gi…gra…pa…re…ant…bas…ge…oll…ope…CHANGE…key…ts…heal…

803 files, 2 changed by this PR and 0 that import one. This PR changes 4 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 (0)
  • Nothing added in the changed lines.
Resolved (4)
  • function hotspot
    packages/core/src/repowise/core/update_lock.py
  • function hotspot
    packages/core/src/repowise/core/workspace/update.py
  • io in loop
    packages/core/src/repowise/core/workspace/update.py
  • hot path sync io
    tests/unit/workspace/test_update.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.

  • tests/unit/cli/test_update_lock.pyRaghav Chamadiya 88% of 4 commits
  • packages/core/src/repowise/core/update_lock.pyRaghav Chamadiya 82% of 5 commits
  • packages/core/src/repowise/core/workspace/update.pyRaghav Chamadiya 94% of 26 commits
  • tests/unit/workspace/test_update.pyRaghav Chamadiya 86% 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/unit/cli/test_uninstall_cmd.py
  • tests/unit/cli/test_update_persist_reliability.py
  • tests/unit/cli/test_watch_cmd.py
  • tests/unit/cli/test_update_pending_cleanup.py
  • tests/unit/workspace/test_extraction_walk_budget.py
  • tests/unit/workspace/test_incremental_extraction.py

2 changed files have no test importing them.

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.