Repository navigation
fix(build): a plugin candy that fails to compile is a fatal error, not a warning - #414
Conversation
…t a warning The build-time plugin connect (hostBuildConnectPlugins) emitted a warning and continued when a plugin candy failed to compile, so the build died later on 'no provider registered' — an error naming the wrong cause. The actionable error (the plugin name + the go build error) was buried above it. Now the connect leg returns the error, so the build stops immediately with the actionable message. The plugin-side caller (candy/plugin-build resolve.go) propagates it in a companion change. Closes #326.
Review — BLOCKHead SHA: Change class: runtime/code change (Go, core build engine — Security screen: PASS — no scope mismatch, no secrets/exfiltration, no weakened guardrails, no supply-chain changes. The change is a focused error-handling fix matching its description. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…al error Adds TestHostBuildConnectPlugins_BrokenPluginIsFatal: a project with a plugin candy whose go module fails to compile, referenced by the work at hand. Asserts hostBuildConnectPlugins returns the fatal error naming the plugin and the go build failure — NOT the pre-fix warning-and-continue that died later on 'no provider registered'. Verified the test FAILS against the pre-fix warning behavior and PASSES with the fix. Closes the B12 finding on #326.
Review — PASSHead SHA: Security screen: PASS — no scope mismatch, no secrets/exfiltration, no weakened guardrails, no supply-chain changes. The change is a focused error-handling fix matching its description. Checklist: All applicable rules PASS or NA. The prior Placement is CORRECT: the fix lives in the core build-engine connect leg ( Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Change class: runtime/code change (Go, core build engine — Security screen: PASS — no scope mismatch (change matches description exactly), no secrets/exfiltration, no weakened guardrails, no supply-chain changes. Checklist: All applicable rules PASS or NA. The prior Placement is CORRECT: the fix lives in the core build-engine connect leg ( Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
A plugin candy that fails to COMPILE was reported as a
warning:and the build continued, then died later onno provider registered— an error naming the wrong cause. The actionable error (the plugin name + the go build error) was buried above it.hostBuildConnectPlugins(charly/host_build_buildengine.go) now returns the error instead of emitting a warning, so the build stops immediately with the actionable message. The plugin-side caller (candy/plugin-build/resolve.go, companion PR in opencharly/plugin-build) propagates it.Fixes #326.
How tested
Committed regression test (B12):
TestHostBuildConnectPlugins_BrokenPluginIsFatal(charly/host_build_buildengine_test.go) — a project with a plugin candy whose go module fails to compile (an unterminated function body — deterministic, no network), referenced by the work at hand. AssertshostBuildConnectPluginsreturns the fatal error naming the plugin and the go build failure.Verified the test FAILS against the pre-fix warning behavior (returns nil + prints the warning) and PASSES with the fix:
Live reproduction with a broken plugin candy:
Before (warning + continue): the build emits
warning: build-time plugin load: ...and proceeds to the build steps.After (fatal):
charly: error: command "build": buildengine-connect-plugins: build-time plugin load failed: plugin "broken-plugin" ...: go build ...: exit status 1— no build steps run.Full suite:
GOWORK=off go test .passes (ok, ~76s) with the box/fedora submodule present.gofmt -lclean.Rulebook compliance
Change classification
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)