Skip to content

deploy.yml: a mixed infra/k8s + image-input commit always produces one spurious red deploy #817

Not planned

Description

@athvin

deploy.yml has two triggers:

  • workflow_run on images completing — the normal path, gated on conclusion == 'success';
  • push on main filtered to infra/k8s/** — for platform-only changes, which images never builds for.

A commit touching both infra/k8s/** and image inputs (rust/, entities/, frontend/) fires the push path immediately, before images has built. It then finds no image tagged for the SHA and correctly refuses to roll the newest ECR digest:

the newest digest in ECR was built from e7ccbe1c…, and these paths changed between it and 70f31c54. Refusing to deploy rather than reporting success on a stale image.

The guard is right and should stay. The problem is that it leaves a failed deploy run on main that is pure noise, superseded minutes later by the workflow_run deploy once images succeeds. Observed on #645's merge 70f31c54: push-path deploy failed 21:37:06, workflow_run deploy succeeded 21:41:45, same SHA.

Two costs: it burns a /land-pr attribution pass every time, and it trains readers to ignore a red deploy on main.

Secondary: the resolver's own notice is false in this case — it prints "no image tagged …, which is expected: this commit touched only infra/k8s, so nothing was built" when the commit changed 40 files under rust/ and entities/.

What to do

Have the push path skip when the same SHA also changed image inputs — i.e. when images is going to run — and let workflow_run own it. The rust-detect.sh/detect-paths.sh helpers already classify these paths.

Refs #645.

Activity

  1. added
    ci-backlog
    on Nov 7, 2026
  2. added
    pruned
    on Nov 27, 2026
  3. athvin commented on Nov 27, 2026

    @athvin
    OwnerAuthor

    Closed in the second 2026-11-26 board prune. The board now targets only the API that customers use to build their own deduplication tooling. Everything else is bonus, and this card is one of those. It's labelled pruned and can be reopened later.

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

    ci-backlogpruned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions