Remove dead bundle cache steps from CI pipeline #101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "remove-dead-cache-steps"
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?
Summary
restore-bundle-cacheandsave-bundle-cachesteps — they never workedhost_pathinbackend_options.kubernetes.volumesfailure: ignore, but both steps are dead code on every pipelineChanges
.woodpecker.yaml: Removerestore-bundle-cachestep (lines 15-40),save-bundle-cachestep (lines 87-117), and updatebundle-installtodepends_on: []Root Cause
PR #81 added hostPath-based caching. Woodpecker's Kubernetes backend has no codepath for hostPath — it only creates PVC volume sources (
pod.go). The config was silently ignored,/cachenever mounted, restore always got cache miss, save failed every run.If CI caching is needed later, use a PVC in the
woodpeckernamespace withlocal-pathstorage class.Test Plan
build-and-pushstill succeeds and pushes to HarborReview Checklist
Related Notes
ldraney/landscaping-assistant #96— CI pipeline falsely fails due to save-bundle-cache stepldraney/landscaping-assistant #97— bandaid fix (failure: ignore)landscaping-assistant— projectCloses #96
PR #101 Review
DOMAIN REVIEW
Tech stack: Woodpecker CI (YAML pipeline config), Kubernetes backend.
Pipeline DAG integrity: After removing both cache steps and updating
bundle-installtodepends_on: [], the step dependency graph is:bundle-install(depends_on: []) -- starts immediately after clonelint(depends_on: bundle-install) -- correcttest(depends_on: bundle-install) -- correctbuild-and-push(depends_on: lint, test) -- correct, push-to-main onlyThe DAG is clean and correct. No orphaned dependencies, no broken references.
Root cause analysis: The PR body correctly identifies that Woodpecker's k8s backend only supports PVC-based volume sources via
pod.go, nothost_path. Thebackend_options.kubernetes.volumeswithhost_pathwas silently ignored, meaning/cachewas never mounted,restore-bundle-cachealways hit cache miss (but passed), andsave-bundle-cachefailed every run. PR #97 bandaided withfailure: ignore, and this PR properly removes the dead code.Forward guidance: The PR body notes PVC with
local-pathstorage class as the correct approach if caching is needed later. This is accurate and sufficient.No security concerns: The removed steps contained no secrets. Existing
from_secretreferences for Harbor credentials inbuild-and-pushare untouched and correct.BLOCKERS
None. This is a pure deletion of dead code with a single dependency update. No new functionality introduced, so no test coverage requirement applies. No secrets, no user input handling, no auth changes.
NITS
The
save-bundle-cachestep hadfailure: ignore(from PR #97) -- good that this bandaid is being cleaned up rather than left in place permanently.Minor: the
bundle-installstep setsBUNDLE_DEPLOYMENT: ""andBUNDLE_WITHOUT: ""to override defaults. This is duplicated acrossbundle-install,lint, andteststeps. Not introduced by this PR, so out of scope, but worth noting for a future cleanup pass.SOP COMPLIANCE
remove-dead-cache-steps, expected96-remove-dead-cache-steps. Missing issue number prefix. Non-blocking for a CI config cleanup, but does not follow convention..woodpecker.yaml, and it is pure deletion plus a dependency update.PROCESS OBSERVATIONS
VERDICT: APPROVED
Clean removal of dead code. Pipeline DAG remains correct. No blockers. Branch naming convention not followed but non-blocking for this scope.