Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline analysis doesnt wait for all metrics to run #1360

Closed
harikrongali opened this issue Jul 19, 2021 · 1 comment · Fixed by #1407
Closed

inline analysis doesnt wait for all metrics to run #1360

harikrongali opened this issue Jul 19, 2021 · 1 comment · Fixed by #1407
Labels
bug Something isn't working

Comments

@harikrongali
Copy link
Contributor

Summary

Analysis run doesnt run metric that isnt started but other metrics completed by that time.
following example provides the scenario where one of the metric completed the analysis and posts successful but the other metric isn't started as it has delay. Analysis run completes without running delayed metric.

kind: AnalysisTemplate
metadata:
  name: success-rate-sample
spec:
  args:
  - name: namespace
  - name: stable-hash
  - name: canary-hash
  - name: app
  - name: env
  - name: prometheus-port
  - name: success-rate-min-percentage
  - name: initial-delay
    value: "5m"
  - name: analysis-interval
    value: "300s"
  - name: analysis-runs
    value: "36"
  - name: failure-limit
    value: "4"
  - name: inconclusive-limit
    value: "4"
  - name: secret-url
    valueFrom:
      secretKeyRef:
        name: example-secret
        key: secretUrl  
  metrics:
    - name: webmetric
      successCondition: result == 'It worked!'
      initialDelay: 60s
      count: 3
      interval: 5s
      failureLimit: 1
      provider:
        web:
          # placeholders are resolved when an AnalysisRun is created
          url: "{{args.secret-url}}"
          jsonPath: "{$.message}"
    - name: webmetric2
      successCondition: result == 'It worked!'
      count: 3
      interval: 5s
      failureLimit: 1
      provider:
        web:
          # placeholders are resolved when an AnalysisRun is created
          url: "{{args.secret-url}}"
          jsonPath: "{$.message}"

Diagnostics

What version of Argo Rollouts are you running?
1.0.2

# Paste the logs from the rollout controller

# Logs for the entire controller:
kubectl logs -n argo-rollouts deployment/argo-rollouts

# Logs for a specific rollout:
kubectl logs -n argo-rollouts deployment/argo-rollouts | grep rollout=<ROLLOUTNAME>

Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.

@harikrongali harikrongali added the bug Something isn't working label Jul 19, 2021
@harikrongali harikrongali changed the title analysis doesnt wait for all metrics to run inline analysis doesnt wait for all metrics to run Jul 20, 2021
@harikrongali
Copy link
Contributor Author

working on the ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant