Skip to content

Bug: Argo CD status updates for unmanaged applications emit NoRows errors #7095

Open

Description

@YamonBot

Description

An Argo CD application outside Devtron's management can produce two error-level log entries for every status update. When neither a Devtron pipeline nor an installed chart matches the Argo CD application name, the installed-chart lookup returns pg.ErrNoRows. The read service and the status event handler both record that expected lookup miss as an error.

Reproduction steps

  1. Run Devtron with Argo CD application status events enabled.
  2. Create an Argo CD Application directly in Argo CD, with no corresponding pipeline or chart in Devtron.
  3. Trigger a sync or refresh that emits a status update and inspect the Devtron server log.

Actual behavior

The update is skipped and emits the errors error while fetching installed app by GitOps app name and no installed apps found.

Expected behavior

Skip the unmatched update without error-level logging. Keep error logging for lookup failures such as database connection errors and keep processing updates for managed applications.

Environment

Backend event handling in devtron-labs/devtron at cebc4158. The flow depends on receiving Argo CD status events. Browser interaction is unnecessary.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions