Skip to content

fix: DCNumJobRunner.get_status counted plumbing progress twice - #58

Merged
paulmueller merged 2 commits into
DC-analysis:mainfrom
paulmueller-agent:fix-get-status-progress
Nov 5, 2026
Merged

paulmueller merged 2 commits into
DC-analysis:mainfrom
paulmueller-agent:fix-get-status-progress

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

Found while documenting the API (#52).

In get_status, the partial plumbing progress (_progress_bn) was added with if instead of elif, i.e. also after plumbing had completed and its full weight was already counted. During the "cleanup" step the reported progress was therefore about 130 % (with the default basin_strategy="drain"). The "done" state masked this because it sets the progress to 1.

Impact / PPID: only the progress reported to the user is affected; no PPID generation change needed.

History: present since plumbing progress was introduced in 58202bc ("enh: add plumbing pipeline progress monitoring"), first released in 0.20.0. It is not a regression of earlier behavior.

Test: test_get_status_progress_cleanup (fails without the fix: progress 1.298).

🤖 Generated with Claude Code

After the "plumbing" step, its full weight was added to the progress,
and its partial progress was added on top, so the reported progress
reached roughly 130% during the "cleanup" step. Only add the partial
progress while plumbing is not yet complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.61%. Comparing base (3524ff8) to head (d483499).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
- Coverage   87.64%   87.61%   -0.03%     
==========================================
  Files          63       63              
  Lines        4369     4369              
==========================================
- Hits         3829     3828       -1     
- Misses        540      541       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paulmueller
paulmueller merged commit 849de88 into DC-analysis:main Nov 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants