Skip to content

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

Merged
merged 4 commits into from
Mar 30, 2021
Merged

Conversation

richkuz
Copy link
Contributor

@richkuz richkuz commented Feb 25, 2021

The version of Enterprise Search and Elasticsearch drifted since 7.8.0. Getting the test stack back up to the latest release.

@richkuz richkuz requested a review from JasonStoltz February 25, 2021 20:32
@richkuz
Copy link
Contributor Author

richkuz commented Mar 26, 2021

@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.
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@richkuz richkuz merged commit 7350dc9 into master Mar 30, 2021
@richkuz richkuz deleted the richkuz/update-ci-to-711 branch March 30, 2021 19:01
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

Successfully merging this pull request may close these issues.

2 participants