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

Repeat steps until condition is met #169

Closed
mishushakov opened this issue Nov 2, 2022 · 6 comments
Closed

Repeat steps until condition is met #169

mishushakov opened this issue Nov 2, 2022 · 6 comments

Comments

@mishushakov
Copy link
Member

No description provided.

@mishushakov mishushakov transferred this issue from stepci/runner Oct 30, 2023
@BapAtRb
Copy link

BapAtRb commented Feb 14, 2024

Hey @mishushakov 😊
Is there a chance this feature is somewhere on the landscape? That would greatly help in some tests of mine, but unfortunately I cannot contribute myself as I am far from being programmer 😬
Thanks a lot!

@mishushakov
Copy link
Member Author

@BapAtRb
Copy link

BapAtRb commented Feb 14, 2024

That's right, I have tried the retries config, where my checks have condition on element in response body. I am not sure if the retry should ignore that check and focus only on status code but in my case no retry is attempted and failure thrown right away once condition is not met. I will appreciate any further advice here 🙏

Hopefully snippet will be any of help:

- name: <redacted>
  retries:
    count: 5
    interval: 3s
  http:
    url: ${{ env.host }}/<redacted>
    method: GET
    auth:
      $ref: "#/components/credentials/bearerToken"
    check:
      status: 200
      jsonpath:
        $.data.status:
          - ne: processing

Thanks in advance!

@mishushakov
Copy link
Member Author

The version supporting retries is yet not available on NPM. I'll let you know here when it happens

@BapAtRb
Copy link

BapAtRb commented Feb 14, 2024

Thank you a lot! Step CI seems to be a tool that perfectly matches all my requirements in terms of testing, hence I am truly looking forward to that release! 😊

P.S. Would it be possible for you to unveil the mystery of approximate time for when the release is planned? It will let me to plan other activities around it 😉

@mishushakov
Copy link
Member Author

Published (v2.8.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants