Skip to content

fix(rds): unblock fakecloud-mysql/mariadb image builds#811

Merged
vieiralucas merged 1 commit intomainfrom
worktree-rds-mysql-mariadb-fixups
Apr 28, 2026
Merged

fix(rds): unblock fakecloud-mysql/mariadb image builds#811
vieiralucas merged 1 commit intomainfrom
worktree-rds-mysql-mariadb-fixups

Conversation

@vieiralucas
Copy link
Copy Markdown
Member

@vieiralucas vieiralucas commented Apr 28, 2026

Summary

PR #810 left the new MySQL/MariaDB image-build matrix red. Fix three issues caught on the first post-merge run:

  • fakecloud_udf.c used bare bool without <stdbool.h>. Add the include.
  • mysql:8.0 base is Oracle Linux 8 with microdnf (not apt). Switch the package install to a real if/elif shell branch and opt into ol8_codeready_builder for libcurl-devel.
  • Drop mysql 5.7 from the matrix (community support ended Oct 2023; image base no longer ships our build deps). Runtime now resolves any 5.7* engine version to 8.0.

Test plan

  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo fmt --all -- --check
  • docker-rds-images.yml PR run all green

Summary by cubic

Unblocks MySQL/MariaDB image builds. Fixes UDF headers, makes the MySQL Dockerfile OS-aware, and removes unsupported MySQL 5.7 (runtime now resolves 5.7.* to 8.0).

  • Bug Fixes
    • Add <stdbool.h> to MySQL and MariaDB UDF sources.
    • Update MySQL Dockerfile to branch on microdnf vs apt-get, enable ol8_codeready_builder, and install pkgconf-pkg-config/pkg-config.
    • Drop MySQL 5.7 from CI matrix and map any 5.7.* engine request to 8.0 at runtime.

Written for commit 9842d2b. Summary will update on new commits. Review in cubic

PR #810 broke `docker-rds-images.yml` for the new mysql/mariadb
matrix entries. Three issues, all caught on the first matrix run
after merge:

- `fakecloud_udf.c` used bare `bool` without including `<stdbool.h>`.
  The mariadb (Debian) base image's gcc is strict about that. Add
  the include.
- `mysql:8.0`'s base image is Oracle Linux 8 with `microdnf`. The
  previous `microdnf install ... || apt-get install ...` short-form
  failed because microdnf returned 127 (package not found in the
  default minimal repo set), and apt-get isn't installed on OL8.
  Switch to a real `if/elif` shell branch; for microdnf, opt into
  the `ol8_codeready_builder` repo which carries libcurl-devel.
- mysql 5.7's image base no longer ships either microdnf or apt
  (and 5.7 community support ended October 2023). Drop it from the
  matrix and from the runtime engine-version map; any caller asking
  for `5.7*` now gets 8.0.
@vieiralucas vieiralucas merged commit 517a989 into main Apr 28, 2026
28 of 33 checks passed
@vieiralucas vieiralucas deleted the worktree-rds-mysql-mariadb-fixups branch April 28, 2026 02:00
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/fakecloud-rds/src/runtime.rs 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

1 participant