Skip to content

chore: switch from MariaDB to MySQL - #25

Draft
swetha1654 wants to merge 13 commits into
mainfrom
switch-mariadb-to-mysql
Draft

chore: switch from MariaDB to MySQL#25
swetha1654 wants to merge 13 commits into
mainfrom
switch-mariadb-to-mysql

Conversation

@swetha1654

Copy link
Copy Markdown
Collaborator

Summary

Switch the HRMS charm from the vibe-coded mariadb-k8s charm to the production-ready mysql-k8s charm, using the canonical/frappe fork (branch version-16-mysql) that adds MySQL support to Frappe.

Changes

  • rockcraft.yaml: Point frappe at canonical/frappe fork (version-16-mysql branch), replace mariadb dev/runtime packages with mysql equivalents
  • src/workload.py: Use --db-type mysql for bench new-site
  • charmcraft.yaml: Update description (interface was already mysql_client)
  • tests: Replace mariadb-k8s references with mysql-k8s
  • terraform: Update module to deploy mysql-k8s (channel 8.0/stable)
  • docs/README: Update all MariaDB references to MySQL

Notes

Update the charm and rock to use mysql-k8s instead of mariadb-k8s.
The canonical/frappe fork (branch version-16-mysql) adds MySQL support
to Frappe, allowing us to use the production-ready mysql-k8s charm.

Changes:
- rockcraft.yaml: Use canonical/frappe fork with mysql support,
  replace mariadb dev/runtime packages with mysql equivalents
- src/workload.py: Use --db-type mysql for bench new-site
- tests: Replace mariadb-k8s references with mysql-k8s
- terraform: Update module to deploy mysql-k8s
- docs/README: Update all MariaDB references to MySQL

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@swetha1654
swetha1654 requested a review from a team as a code owner August 18, 2026 09:28
Temporarily point to feat/version-16-mysql-support-ISD-6236 branch
on canonical/frappe until the changes are merged into version-16-mysql.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
swetha1654 and others added 5 commits August 18, 2026 15:28
mysql-k8s uses ubuntu@22.04 base and revision 423 on 8.0/stable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The previous sed accidentally changed redis channel to 8.0/stable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
libmysqlclient21 is not available in the Ubuntu 26.04 archive used by
rockcraft. The mariadb client libraries (libmariadb3, libmariadb-dev)
are wire-compatible with MySQL servers and work correctly for the
mysqlclient Python package. The key MySQL support comes from the
canonical/frappe fork at the application level.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@swetha1654 swetha1654 closed this Aug 19, 2026
@swetha1654 swetha1654 reopened this Aug 19, 2026
@swetha1654 swetha1654 closed this Aug 19, 2026
@swetha1654 swetha1654 reopened this Aug 19, 2026
swetha1654 and others added 6 commits August 19, 2026 11:08
When bench new-site --no-setup-db creates site_config.json but the
database tables don't exist yet, bench list-apps fails with a
'doesn't exist' error in stdout. Handle this gracefully by returning
an empty dict, allowing setup_hrms to proceed with site creation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@swetha1654
swetha1654 marked this pull request as draft August 20, 2026 09:23
@swetha1654

Copy link
Copy Markdown
Collaborator Author

This PR will not be merged as we decided to stop working on HRMS charm altogether until we find a better opensource alternative to Frappe HR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant