Skip to content

generate: the required-input check skips external-block deploys and the standalone rollback workflow #710

Backlog

Description

@reka18

What happens

generate-workflow checks that every input a deploy callback requires has a source (validateRequiredInputs). Two lanes aren't covered, so a callee that requires an input they can't supply passes generation and then fails when GitHub dispatches the call:

  • External-block deploys. For external-block callees, the check refuses only image_tag / image_digest. External deploy jobs pass no operator inputs, so a callee that requires one (for example cluster) generates a call that is missing it.
  • The standalone rollback workflow (cascade-rollback.yaml) has no required-input check at all. Promote refuses a callee that requires image_tag when it emits rollback jobs. For the same manifest, the standalone rollback generates the call without it.

Expected

Every lane that calls a deploy callback goes through the same required-input check, and generation fails, naming the job and the input, when no source exists. This matches what promote already does for image_tag (#705).

Found in the review of #706. Relates to: #706, #664

Activity

  1. reka18 commented on Dec 4, 2026

    @reka18
    ContributorAuthor

    One more gap of the same kind, found while fixing #711's promote-retries e2e scenario.

    When the manifest wires an input (for example message) to a local deploy workflow that doesn't declare it, the declared-inputs gate drops the input from the with: block silently. Nothing is printed at generate time. The generate-time warnings added in #711 cover only the dry_run opt-in and the rollback sha.

    Concretely: declaredCallbackInputs (internal/generate/hotfix.go) returns the callee's declared set, and writePerEnvWithInputs (internal/generate/promote.go) and the other deploy lanes skip any manifest input outside that set. A typo in the callee's input name, or a callee that hasn't been updated yet, therefore loses the value with no signal.

    Expected: a generate-time warning naming the deploy, the callee and each dropped input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions