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

chore(containers): improve wait strategy #41

Merged
1 commit merged into from
Feb 7, 2020
Merged

chore(containers): improve wait strategy #41

1 commit merged into from
Feb 7, 2020

Conversation

miguelpires
Copy link

@miguelpires miguelpires commented Feb 7, 2020

Description

Changes the wait strategy to wait for a 204 response from the /ready endpoint and for the command API to be ready to accept commands. This has the advantage of not being dependent on broker logs and expanding the supported zeebe versions from 0.20.1, 0.21.1 and 0.22.1 to all versions that support the /ready endpoint on the 9600 port. It's also possible to use zeebe-test-container with non semver version like SNAPSHOT.

Related issues

closes #37

Pull Request Checklist

  • All commit messages match our commit message guidelines
  • The submitting code follows our code style
  • If submitting code, please run mvn clean install -DskipTests locally before committing

@miguelpires miguelpires requested a review from npepinpe February 7, 2020 12:17
@miguelpires miguelpires self-assigned this Feb 7, 2020
@npepinpe npepinpe added the type/feature New user facing features label Feb 7, 2020
Copy link
Collaborator

@npepinpe npepinpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks a lot! 👍

@npepinpe npepinpe added type/maintenance Project maintenance, refactor, non-user facing enhancements and removed type/feature New user facing features labels Feb 7, 2020
@miguelpires
Copy link
Author

bors r+

ghost pushed a commit that referenced this pull request Feb 7, 2020
41: chore(containers): improve wait strategy r=MiguelPires a=MiguelPires

## Description

Changes the wait strategy to wait for a 204 response from the `/ready` endpoint and for the command API to be ready to accept commands. This has the advantage of not being dependent on broker logs and expanding the supported zeebe versions from 0.20.1, 0.21.1 and 0.22.1 to all versions that support the `/ready` endpoint on the 9600 port. It's also possible to use zeebe-test-container with non semver version like SNAPSHOT.

## Related issues


closes #37 

## Pull Request Checklist

- [x] All commit messages match our [commit message guidelines](https://github.com/zeebe-io/zeebe/blob/develop/CONTRIBUTING.md#commit-message-guidelines)
- [x] The submitting code follows our [code style](https://github.com/zeebe-io/zeebe/wiki/Code-Style)
- [x] If submitting code, please run `mvn clean install -DskipTests` locally before committing


Co-authored-by: Miguel Pires <miguel.pires@camunda.com>
@ghost
Copy link

ghost commented Feb 7, 2020

Build succeeded

@ghost ghost merged commit 6747e1c into master Feb 7, 2020
@ghost ghost deleted the 37-wait-strategy branch February 7, 2020 13:31
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/maintenance Project maintenance, refactor, non-user facing enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve wait strategy
2 participants