-
Notifications
You must be signed in to change notification settings - Fork 21
Update CI to test latest version of stack #48
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
Conversation
@JasonStoltz Could I get a review, please? 🙏 |
@@ -0,0 +1,53 @@ | |||
# A docker-compose to make it easier to run PHP integration tests locally with different PHP versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I was wrestling with inconsistent CI build failures, I ended up creating a docker-compose to make it easier to test ideas locally. Thought it might help others in the future.
name: appsearch | ||
environment: | ||
elasticsearch.host: http://elasticsearch:9200 | ||
elasticsearch.password: password | ||
ENT_SEARCH_DEFAULT_PASSWORD: password | ||
secret_management.encryption_keys: "[changeme]" | ||
allow_es_settings_modification: true | ||
elasticsearch.startup_retry.interval: 15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This retry interval is a temporary workaround for a known race condition in Enterprise Search startup when waiting for the ES license server to be available. Without it, App Search can sporadically fail to start.
@@ -26,14 +26,16 @@ executors: | |||
xpack.license.self_generated.type: trial | |||
xpack.security.authc.api_key.enabled: true | |||
ELASTIC_PASSWORD: password | |||
- image: docker.elastic.co/enterprise-search/enterprise-search:7.8.0 | |||
ES_JAVA_OPTS: -Xms512m -Xmx512m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This helps prevent the ES container from grinding to a halt during integration tests.
The version of Enterprise Search and Elasticsearch drifted since 7.8.0. Getting the test stack back up to the latest release.