Skip to content

BUG-72: a request in flight when delivery.mode switches from apply to argocd stalls #291

Open

Description

@ephico2real2

Part of #286. From the review of PR #288 (reasoned from the code, not run).

jobs/apply.py:41 finishes without doing anything when the mode is not apply. A request already queued for apply when the cluster's delivery.mode changes to argocd then never moves on.

Fix to research: on a mode mismatch the job should hand the request to the path of the current mode (merge, which argocd mode reaches from pr_open), or refuse the mode change while requests are in flight. Record the choice.

How to prove it: a test that queues apply, switches the mode, runs the job, and asserts the request reaches synced (or that the switch is refused). It must fail on the current head.

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

    Backlogbugstatus:open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions