Skip to content

fix(server): offload blocking git operations - #833

Open
GautamSharma99 wants to merge 1 commit into
repowise-dev:mainfrom
GautamSharma99:fix/async-git-server-jobs
Open

fix(server): offload blocking git operations#833
GautamSharma99 wants to merge 1 commit into
repowise-dev:mainfrom
GautamSharma99:fix/async-git-server-jobs

fix(server): offload blocking git operations

40b815e
Select commit
Loading
Failed to load commit list.
Repowise Bot / Repowise / code health succeeded Aug 19, 2026 in 0s

Health gate passed

Repository health 7.2 -> 7.2. No configured gate rule tripped.

Details

Symbols changed (blast radius)

  • tests/unit/server/test_job_executor.py::test_execute_job_offloads_state_stamping: added, 0 caller(s) outside this PR
  • tests/unit/server/test_job_executor.py::test_incremental_page_regen_offloads_change_detection: added, 0 caller(s) outside this PR
  • packages/server/src/repowise/server/job_executor.py::execute_job: body, 7 caller(s) outside this PR: packages/server/src/repowise/server/routers/repos.py::_launch_job_task, packages/server/src/repowise/server/routers/webhooks.py::_launch_webhook_job, tests/unit/server/test_generate.py::test_generate_job_fails_without_provider, tests/unit/server/test_generate.py::test_generate_job_runs_scoped_engine, tests/unit/server/test_generate.py::test_sync_regen_receives_vector_store_and_prior_pages, tests/unit/server/test_initial_index.py::test_execute_job_initial_index_writes_state_baseline, tests/unit/server/test_initial_index.py::test_execute_job_records_cancelled_status
  • packages/server/src/repowise/server/scheduler.py::setup_scheduler: body, 2 caller(s) outside this PR: packages/server/src/repowise/server/app.py::lifespan, tests/unit/server/test_scheduler.py::test_polling_fallback_launches_persisted_job
  • packages/server/src/repowise/server/job_executor.py::_incremental_page_regen: body, 0 caller(s) outside this PR

Review priority (recent bug-fix history)

  • packages/server/src/repowise/server/job_executor.py: fixed 6x in the last ~6 months
  • tests/unit/server/test_job_executor.py: fixed 4x in the last ~6 months
  • packages/server/src/repowise/server/scheduler.py: fixed once in the last ~6 months

Changed-file health

File Score Delta Change
tests/unit/server/test_job_executor.py 5.7 -> 5.8 +0.2 resolved duplicated assertion block

Touched hotspots (blast radius)

  • packages/server/src/repowise/server/job_executor.py: 20 commits/90d, 21 dependents, owner Raghav Chamadiya
  • tests/unit/server/test_job_executor.py: 8 commits/90d, 1 dependents, owner Raghav Chamadiya
  • packages/server/src/repowise/server/scheduler.py: 1 commits/90d, 2 dependents, owner Raghav Chamadiya

Hidden coupling (co-change partners not in this PR)

  • packages/server/src/repowise/server/job_executor.py co-changes with packages/cli/src/repowise/cli/commands/workspace_cmd.py (7x)
  • packages/server/src/repowise/server/job_executor.py co-changes with packages/server/src/repowise/server/routers/repos.py (6x)
  • packages/server/src/repowise/server/job_executor.py co-changes with packages/cli/src/repowise/cli/commands/upgrade_flow.py (6x)
  • packages/server/src/repowise/server/job_executor.py co-changes with packages/cli/src/repowise/cli/commands/init_cmd/workspace.py (5x)
  • packages/server/src/repowise/server/job_executor.py co-changes with packages/core/src/repowise/core/pipeline/orchestrator.py (5x)

Change risk

  • Raw change-risk score: 8.3/10 (banded moderate, riskier than 39% of this repo's commits)
  • Driven by: more lines added than baseline
  • Driven by: more scattered than baseline