plugin status reports a live daemon build as "interrupted mid-build — run plugin retry" #346
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index#346
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?
Field report from zammad-dev (A1X code-index-dev, 2026-10-08), on 0.34.1.
What happened. The daemon (pid 855440) was building generation 5 after the upgrade. At that moment
project_overviewshowedpending_state "building"with 6,518 of 10,208 files done. Yetcode-index plugin statusprinted:activation owed: generation 5 was interrupted mid-build — code-index plugin retryThat advice is wrong for a build that is still running. The reporter correctly did not run
retry, because the daemon was the activation owner. A less careful user would have started a second activation against a live one.Expected. When a live process holds the activation (the daemon is alive and owns the build), status should say so, e.g.
building generation 5 (owner: daemon pid …, 6,518/10,208 files), and offer no retry advice. The "interrupted" wording, with itsretryhint, belongs only to a build whose owner is gone.Outcome, for the record. v0.34.1 fixed #334 in the field. Activation, build and resolve took about 4 minutes, with no hang and no crash. Generation 5 is active and generation 4 superseded, with "owed: nothing" and
refs_resolved82,738.Related: #334, #341.
Released in v0.35.0 (https://git.h-dv.de/h-dv/code-index/releases/tag/v0.35.0), via PR #351.
plugin statusnow probes for the activation's owner and reports one of three states: