Skip to content

SourceHydrator: Auto Refreshes not Triggering Hydration with New Commit on drySource #26054

@dfarlow43

Description

@dfarlow43

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

With an argo application configured with sourceHydrator, new commits on the drySource are not trigger a refresh causing the hydration process not to trigger. A user would have to manually refresh the argocd App, then a hydration would start where a new commit on the hydrateTo branch would be seen.

To Reproduce

  • Set hydrator.enabled: 'true' in argocd-cmd-params-cm
  • Create an argocd Application point to a helm git repo with sourceHydrator set
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: test-app-01-prod
  namespace: argocd
  labels:
    app: test-app-01
spec:
  project: default
  sourceHydrator:
    drySource:
      repoURL: https://github.com/xxxxxx
      targetRevision: HEAD
      path: services/test-app-01
      helm:
        valueFiles:
          - values-prod.yaml
        releaseName: test-app-01
    syncSource:
      targetBranch: environments/prod
      path: rendered
    hydrateTo:
      targetBranch: environments/prod-next
  destination:
    name: dev-prod
    namespace: test-app-01
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
  • make a new commit in the drySource branch (main).
  • Wait 3 minutes, nothing happens
  • Manually refresh the app, a hydration occurs

Expected behavior

Since the timeout.reconciliation is not modified, I would expect for the application to get auto refreshed within 3 minutes, this would trigger a hydration on the app. This should cause the hydrateTo branch to get updated.

Screenshots

Version
3.3.0-rc3

❯ argocd version
argocd: v3.3.0-rc3+51b595b
  BuildDate: 2025-12-19T00:00:10Z
  GitCommit: 51b595b1ee6b3bfc04ca0a648f94a7d69579faee
  GitTreeState: clean
  GoVersion: go1.25.3
  Compiler: gc
  Platform: darwin/arm64
argocd-server: v3.3.0-rc3+51b595b
  BuildDate: 2025-12-19T00:00:10Z
  GitCommit: 51b595b1ee6b3bfc04ca0a648f94a7d69579faee
  GitTreeState: clean
  GoVersion: go1.25.3
  Compiler: gc
  Platform: darwin/arm64
  Kustomize Version: v5.6.0 2025-01-14T15:08:34Z
  Helm Version: v3.19.0+g3d8990f
  Kubectl Version: v0.34.0
  Jsonnet Version: v0.21.0

Logs

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent:hydratorIssue related to the Source Hydrator and commit servertriage/pendingThis issue needs further triage to be correctly classified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions