Scale Woodpecker agent replicas to 2 and enable auto-cancel for superseded pipelines #404

Closed
opened 2026-06-04 05:17:35 +00:00 by ldraney · 0 comments
Owner

Type

Feature

Lineage

Cross-repo from ldraney/landscaping-assistant#62

Repo

ldraney/pal-e-platform (Terraform CI module)

User Story

As a developer I want CI pipelines to run without queuing behind stale builds so that prod deploys are not blocked by already-merged branch pipelines.

Context

Woodpecker agent is configured with replicaCount = 1. Every merge triggers 2-3 pipelines (branch push, PR event, main push) that all compete for a single agent. Two fixes needed: scale agent replicas to 2 and enable auto-cancel for superseded pipelines.

File Targets

  • terraform/modules/ci/main.tf — bump agent replicaCount from 1 to 2, add WOODPECKER_PIPELINE_CANCEL_PREVIOUS server env var
  • terraform/modules/ci/variables.tf — add variable for agent replica count

Acceptance Criteria

  • Agent replicaCount = 2
  • Auto-cancel enabled for superseded pipelines via WOODPECKER_PIPELINE_CANCEL_PREVIOUS
  • tofu plan output reviewed before apply

Test Expectations

  • tofu plan shows replicaCount change from 1 to 2
  • tofu plan shows new WOODPECKER_PIPELINE_CANCEL_PREVIOUS env var
  • Push twice to same branch — first pipeline cancels automatically (post-apply)

Constraints

  • Terraform change requires tofu plan / tofu apply (Lucas approval)
  • Platform-wide change: replica scaling and auto-cancel affect all repos sharing this Woodpecker instance
  • Cluster runs on a single k3s node

Checklist

  • Approach chosen
  • PR opened on pal-e-platform
  • Pipeline behavior verified
  • landscaping-assistant#62 — parent issue
### Type Feature ### Lineage Cross-repo from ldraney/landscaping-assistant#62 ### Repo `ldraney/pal-e-platform` (Terraform CI module) ### User Story As a developer I want CI pipelines to run without queuing behind stale builds so that prod deploys are not blocked by already-merged branch pipelines. ### Context Woodpecker agent is configured with `replicaCount = 1`. Every merge triggers 2-3 pipelines (branch push, PR event, main push) that all compete for a single agent. Two fixes needed: scale agent replicas to 2 and enable auto-cancel for superseded pipelines. ### File Targets - `terraform/modules/ci/main.tf` — bump agent replicaCount from 1 to 2, add WOODPECKER_PIPELINE_CANCEL_PREVIOUS server env var - `terraform/modules/ci/variables.tf` — add variable for agent replica count ### Acceptance Criteria - [ ] Agent replicaCount = 2 - [ ] Auto-cancel enabled for superseded pipelines via WOODPECKER_PIPELINE_CANCEL_PREVIOUS - [ ] `tofu plan` output reviewed before apply ### Test Expectations - [ ] `tofu plan` shows replicaCount change from 1 to 2 - [ ] `tofu plan` shows new WOODPECKER_PIPELINE_CANCEL_PREVIOUS env var - [ ] Push twice to same branch — first pipeline cancels automatically (post-apply) ### Constraints - Terraform change requires `tofu plan` / `tofu apply` (Lucas approval) - Platform-wide change: replica scaling and auto-cancel affect all repos sharing this Woodpecker instance - Cluster runs on a single k3s node ### Checklist - [ ] Approach chosen - [ ] PR opened on pal-e-platform - [ ] Pipeline behavior verified ### Related - landscaping-assistant#62 — parent issue
ldraney 2026-06-04 05:23:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/pal-e-platform#404
No description provided.