Skip to content

fix(mariadb): address deprecations - #556

Merged
sjinks merged 1 commit into
trunkfrom
fix-mariadb-deprecations
Jul 28, 2026
Merged

sjinks merged 1 commit into
trunkfrom
fix-mariadb-deprecations

Conversation

@sjinks

@sjinks sjinks commented Jul 27, 2026

Copy link
Copy Markdown
Member

This pull request updates the MariaDB devcontainer feature to use the correct MariaDB-specific binaries and commands, ensuring better compatibility and alignment with upstream MariaDB. It also improves the test script to use the proper MariaDB client tools and makes the startup check more robust.

MariaDB binary and command alignment:

  • Replaced all uses of mysql_install_db with mariadb-install-db in entrypoint and service scripts to use the MariaDB-specific initialization tool. [1] [2] [3]
  • Updated all invocations of the server binary from mysqld to mariadbd for consistency with MariaDB best practices. [1] [2] [3] [4]

Testing improvements:

  • Modified the test script (checks.sh) to use mariadb-admin instead of mysqladmin for health checks, and improved the wait loop to ensure MariaDB is online before proceeding. [1] [2]

Version update:

  • Bumped the feature version in devcontainer-feature.json from 1.4.0 to 1.4.1 to reflect these changes.

@sjinks sjinks self-assigned this Jul 27, 2026
Copilot AI review requested due to automatic review settings July 27, 2026 22:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the MariaDB devcontainer feature to align with MariaDB-specific tooling, replacing deprecated MySQL-named binaries/commands and adjusting the MariaDB test health check accordingly.

Changes:

  • Switch initialization from mysql_install_db to mariadb-install-db in MariaDB entrypoint/service templates.
  • Switch server execution from mysqld to mariadbd across templates.
  • Update the MariaDB test check to use mariadb-admin and bump the feature version to 1.4.1.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
features/test/mariadb/checks.sh Updates health check command and changes startup wait logic for MariaDB readiness.
features/src/mariadb/service-run.tpl Uses mariadb-install-db and runs mariadbd under runit.
features/src/mariadb/entrypoint.deb.tpl Uses mariadb-install-db and runs mariadbd for Debian-based images.
features/src/mariadb/entrypoint.alpine.tpl Uses mariadb-install-db and runs mariadbd for Alpine-based images.
features/src/mariadb/devcontainer-feature.json Bumps feature version to reflect the change set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread features/test/mariadb/checks.sh
@sjinks

sjinks commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

Again 😞

nodesource/distributions#1946 (comment)

@sjinks
sjinks merged commit f880bf0 into trunk Jul 28, 2026
189 of 195 checks passed
@sjinks
sjinks deleted the fix-mariadb-deprecations branch July 28, 2026 08:27
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