Skip to content

V3.0.3 add centos10 and almalinux10 builds#5139

Merged
renecannao merged 18 commits intov3.0from
v3.0.3-add_centos10_builds
Oct 6, 2025
Merged

V3.0.3 add centos10 and almalinux10 builds#5139
renecannao merged 18 commits intov3.0from
v3.0.3-add_centos10_builds

Conversation

@mirostauder
Copy link
Contributor

@mirostauder mirostauder commented Oct 2, 2025

builds on top of PR #5138
adds centos10 builds
adds almalinux10 builds

@mirostauder mirostauder added this to the Release 3.0.3 milestone Oct 2, 2025
@mirostauder mirostauder self-assigned this Oct 2, 2025
@gemini-code-assist
Copy link

Summary of Changes

Hello @mirostauder, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly expands the project's build matrix by introducing support for CentOS 10, AlmaLinux 10, and Fedora 42. It also includes crucial dependency updates and build system modernizations, such as upgrading libconfig and switching its build to CMake, and applying a compatibility patch for the MariaDB client library to work with newer compilers. These changes ensure broader platform compatibility and maintainability.

Highlights

  • New OS Build Support: Added build configurations for CentOS 10, AlmaLinux 10, and Fedora 42 across both amd64 and arm64 architectures, including clang and debug variants.
  • Libconfig Dependency Update: Upgraded libconfig to version 1.8.1 and migrated its build process from 'configure' to 'CMake' for improved compatibility and build management.
  • MariaDB Client Compiler Fix: Introduced a patch to the MariaDB client library to address 'bool' keyword conflicts with newer C++ compilers, ensuring successful compilation.
  • PostgreSQL Dependency Update: Updated the PostgreSQL dependency reference from 'postgresql-16.3' to 'postgres-REL_16_10'.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds build support for CentOS 10, AlmaLinux 10, and Fedora 42. The changes include updating the main Makefile with new build targets, adding corresponding services to docker-compose.yml, and applying necessary patches and dependency updates to support newer compilers and libraries in these distributions.

The changes are logical and consistent with the goal of the pull request. I have one suggestion regarding the docker-compose.yml file to improve its maintainability by reducing code duplication.

Comment on lines +51 to +62
centos10_build:
extends:
service: _build
image: proxysql/packaging:build-centos10-v3.0.2
volumes:
- ./docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/:/root/rpmbuild/
- ./docker/images/proxysql/rhel-compliant/rpmmacros/.rpmmacros:/root/.rpmmacros
- ./docker/images/proxysql/rhel-compliant/entrypoint/:/opt/entrypoint/
- ./:/opt/proxysql/
environment:
- PKG_RELEASE=centos10
- PROXYSQL_BUILD_TYPE=clickhouse

Choose a reason for hiding this comment

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

medium

This file has a lot of duplication, especially in the volumes sections for RHEL-compliant builds (CentOS, Fedora, AlmaLinux). This makes the file unnecessarily long and harder to maintain.

You could significantly reduce this duplication by using YAML anchors. For example, you could define the common volumes once and then reuse them.

Here's an example of how you could refactor it:

x-rhel-volumes: &rhel-volumes
  - ./docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/:/root/rpmbuild/
  - ./docker/images/proxysql/rhel-compliant/rpmmacros/.rpmmacros:/root/.rpmmacros
  - ./docker/images/proxysql/rhel-compliant/entrypoint/:/opt/entrypoint/
  - ./:/opt/proxysql/

services:
  # ...
  centos10_build:
    extends:
      service: _build
    image: proxysql/packaging:build-centos10-v3.0.2
    volumes: *rhel-volumes
    environment:
      - PKG_RELEASE=centos10
      - PROXYSQL_BUILD_TYPE=clickhouse
  # ... and so on for other rhel-compliant builds

Applying this pattern would make the file much cleaner and easier to manage as you add more build targets.

@mirostauder mirostauder marked this pull request as draft October 2, 2025 10:37
@mirostauder mirostauder marked this pull request as ready for review October 2, 2025 21:07
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 2025

@renecannao renecannao merged commit 8bef74b into v3.0 Oct 6, 2025
149 of 155 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants