Skip to content

feat: WARN as a first-class step status #141

@coopernetes

Description

@coopernetes

Problem

StepStatus currently has PASS, FAIL, BLOCKED, and SKIPPED. There is no WARN value.

Checks that want to alert without blocking (e.g. identity verification in warn mode, large diff notification) currently record the step as PASS with a message — which misrepresents the outcome in the dashboard.

Proposed solution

Add WARN to StepStatus and thread it through the stack:

  • StepStatus.java — add WARN
  • DB — no migration needed (stored as VARCHAR, new value is additive)
  • API — already serialised as string, no change
  • UI — amber/yellow badge alongside existing green/red/grey ones in the validation steps list

Why 1.1.0

Touches the data model. Worth doing deliberately with a full pass of all validation checks that could reasonably emit WARN (identity verification, diff size, commit count) rather than adding it for a single use case.

Downstream dependency

Diff size policy check (see related issue) uses WARN for the warn tier.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions