Skip to content

Fix MongoDB package for CI: address MongoDB 5.0 EOL#3288

Merged
teresaromero merged 5 commits intoelastic:mainfrom
teresaromero:fix-mongodb
Feb 18, 2026
Merged

Fix MongoDB package for CI: address MongoDB 5.0 EOL#3288
teresaromero merged 5 commits intoelastic:mainfrom
teresaromero:fix-mongodb

Conversation

@teresaromero
Copy link
Contributor

@teresaromero teresaromero commented Feb 18, 2026

  • Update Docker image and compose config for supported MongoDB version
  • Add deploy variants configuration
  • Update README documentation

https://www.mongodb.com/legal/support-policy/lifecycles

- Update Docker image and compose config for supported MongoDB version
- Add deploy variants configuration
- Update README documentation

Co-authored-by: Cursor <cursoragent@cursor.com>
@teresaromero teresaromero requested a review from a team February 18, 2026 08:50
Remove creator Dockerfile and adjust docker-compose to use shared config.

Co-authored-by: Cursor <cursoragent@cursor.com>
Enhance the MongoDB service in the docker-compose file by adding a healthcheck to ensure the database is running properly. This includes a command to check the server status and specifies the interval and retry settings for the healthcheck.
@elasticmachine
Copy link
Collaborator

⏳ Build in-progress, with failures

Failed CI Steps

History

Comment on lines +24 to +27
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.runCommand({serverStatus:1}).ok"]
interval: 1s
retries: 90
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this container keep using the healthcheck from the Dockerfile ? At least this is how it was set previously.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i was confused. you are right, this secondary service does not need the mongosh specific check. i remove it an leave it only on the main service

@mrodm
Copy link
Contributor

mrodm commented Feb 18, 2026

buildkite test this

Eliminate the healthcheck configuration from the MongoDB service in the docker-compose file, mongo-log on the dockerfile healthcheck
test: ["CMD", "mongosh", "--eval", "db.runCommand({serverStatus:1}).ok"]
interval: 1s
retries: 90
mongodb-log:
Copy link
Contributor

Choose a reason for hiding this comment

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

As this container/service is not used here in elastic-package, I think it could be removed.

This container is used in the integrations repository because it is required for the tests related to the log data stream:

https://github.com/elastic/integrations/blob/c71d104dcf32946cc65c872f54a69a7b118958b5/packages/mongodb/data_stream/log/_dev/test/system/test-log-config.yml#L1

But , here in the elastic-package there is just the status data stream.

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

LGTM!

Let's merge this change to fix the tests related to this package.
If the changes in the integrations repository for this package are different, we could update this test package in a follow-up to keep both in sync.

@teresaromero teresaromero enabled auto-merge (squash) February 18, 2026 11:20
@teresaromero teresaromero merged commit 0f67002 into elastic:main Feb 18, 2026
3 checks passed
teresaromero added a commit to teresaromero/elastic-package that referenced this pull request Feb 24, 2026
teresaromero added a commit that referenced this pull request Feb 24, 2026
* Revert "Fix MongoDB package for CI: address MongoDB 5.0 EOL (#3288)"

This reverts commit 0f67002.

* Refactor MongoDB Docker configurations to use a base image and improve health checks

- Consolidated MongoDB service definitions in docker-compose.yml by introducing a base configuration.
- Updated Dockerfile to utilize SERVICE_VERSION for better version management.
- Enhanced health check command to ensure MongoDB service availability.
- Removed the obsolete creator Dockerfile as its functionality is now integrated.
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.

3 participants