Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu24.04 is released #1060

Merged
merged 11 commits into from
May 28, 2024
Merged

Ubuntu24.04 is released #1060

merged 11 commits into from
May 28, 2024

Conversation

shogo82148
Copy link
Owner

@shogo82148 shogo82148 commented May 27, 2024

https://github.blog/changelog/2024-05-14-github-hosted-runners-public-beta-of-ubuntu-24-04-is-now-available/

Summary by CodeRabbit

  • New Features

    • Added support for Ubuntu 24.04 in GitHub workflow configurations for MySQL and MariaDB.
    • Updated build scripts to support newer versions of GCC (12, 13, and 14).
  • Bug Fixes

    • Addressed compilation issues with MySQL and MariaDB using GCC 13 by applying necessary patches and downgrading specific compiler flags.
    • Fixed RocksDB compilation issues with GCC 13 by replacing problematic types.
  • Chores

    • Updated dependency installation commands in build scripts.

Copy link

coderabbitai bot commented May 27, 2024

Walkthrough

The recent updates primarily focus on enhancing compatibility and support for newer operating systems and compilers in the build and test workflows for MySQL and MariaDB. This includes adding Ubuntu 24.04 to the matrix configuration and addressing compilation issues with GCC 13. Additionally, specific patches have been applied to resolve build errors related to GCC 13 in both MySQL and MariaDB.

Changes

Files/Paths Change Summary
.github/workflows/build-mariadb.yml Added "ubuntu-24.04" to the list of operating systems for the Linux matrix configuration.
.github/workflows/build-mysql.yml Added support for Ubuntu 24.04 in the matrix configuration for MySQL versions.
.github/workflows/test.yml Added "ubuntu-24.04" to the matrix configuration under the jobs section.
.github/build-mysql-linux.sh Added a section to install dependencies using sudo apt-get install -y libtirpc-dev and libudev-dev.
.github/build-mariadb-linux.sh Updated to support newer versions of GCC, adding support for gcc-14, gcc-13, and gcc-12.
patches/mysql/8.1.0/fix-gcc13-error.patch Addressed a bug related to compiling MySQL with GCC 13 by downgrading a compiler flag in CMakeLists.txt.
patches/mysql/8.1.0/fix-broken-build-without-test.patch Addressed a bug in MySQL related to compiling with GCC 13 by downgrading a warning to prevent build errors.
patches/mariadb/10.2.44/rocksdb-does-not-compile-with-gcc13.patch Addressed compilation issues with GCC-13 in the RocksDB submodule by replacing problematic types.
patches/mariadb/10.3.39/rocksdb-does-not-compile-with-gcc13.patch Addressed compilation issues with GCC-13 in the RocksDB submodule by replacing problematic types.
patches/mariadb/10.7.8/rocksdb-does-not-compile-with-gcc13.patch Addressed compilation issues with GCC-13 in the RocksDB submodule by replacing problematic types.

In the garden of code, where changes bloom,
New Ubuntu and GCC dispel the gloom.
With patches and scripts, we pave the way,
For MySQL and MariaDB, come what may.
A rabbit's touch, light and deft,
Ensures no build is left bereft.


Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to full the review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@@ -34,6 +34,7 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-24.04
Copy link
Contributor

Choose a reason for hiding this comment

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

[actionlint] reported by reviewdog 🐶
label "ubuntu-24.04" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "macos-10.15", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between ffe7ce4 and c44a753.
Files selected for processing (3)
  • .github/workflows/build-mariadb.yml (1 hunks)
  • .github/workflows/build-mysql.yml (1 hunks)
  • .github/workflows/test.yml (1 hunks)
Files skipped from review due to trivial changes (3)
  • .github/workflows/build-mariadb.yml
  • .github/workflows/build-mysql.yml
  • .github/workflows/test.yml

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between c44a753 and 0e7d042.
Files selected for processing (1)
  • .github/build-mysql-linux.sh (1 hunks)
Files skipped from review due to trivial changes (1)
  • .github/build-mysql-linux.sh

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 0e7d042 and 822526c.
Files selected for processing (1)
  • .github/build-mysql-linux.sh (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/build-mysql-linux.sh

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 822526c and 2a945cf.
Files selected for processing (1)
  • patches/mysql/8.1.0/fix-gcc13-error.patch (1 hunks)
Additional comments not posted (2)
patches/mysql/8.1.0/fix-gcc13-error.patch (2)

7-7: Change in compiler flags to suppress warnings.

Ensure this change does not inadvertently hide other important warnings.


20-26: Conditional compilation option added for GCC versions greater than 13.

Verify that this condition correctly identifies GCC version 13 and above in all environments where this code will be compiled.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 2a945cf and f3e931f.
Files selected for processing (1)
  • patches/mysql/8.1.0/fix-broken-build-without-test.patch (1 hunks)
Additional comments not posted (1)
patches/mysql/8.1.0/fix-broken-build-without-test.patch (1)

22-29: The conditional inclusion of compiler options based on the presence of unit tests is a good practice to avoid unintended side effects during different build configurations.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between f3e931f and b12c225.
Files selected for processing (1)
  • .github/build-mysql-linux.sh (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/build-mysql-linux.sh

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between b12c225 and 7dcbb97.
Files selected for processing (5)
  • .github/build-mariadb-linux.sh (2 hunks)
  • .github/build-mysql-linux.sh (3 hunks)
  • patches/mariadb/10.2.44/rocksdb-does-not-compile-with-gcc13.patch (1 hunks)
  • patches/mariadb/10.3.39/rocksdb-does-not-compile-with-gcc13.patch (1 hunks)
  • patches/mariadb/10.7.8/rocksdb-does-not-compile-with-gcc13.patch (1 hunks)
Files skipped from review due to trivial changes (1)
  • patches/mariadb/10.2.44/rocksdb-does-not-compile-with-gcc13.patch
Files skipped from review as they are similar to previous changes (1)
  • .github/build-mysql-linux.sh
Additional comments not posted (1)
.github/build-mariadb-linux.sh (1)

28-37: Dynamic selection of compiler versions is a robust enhancement.

The script's logic to dynamically select the most recent available version of GCC and G++ ensures that the latest compiler features and optimizations are utilized. This is a significant improvement in ensuring the build environment is up-to-date.

Also applies to: 48-57

Comment on lines +19 to +22
+ADD_DEFINITIONS(-Duint64_t=u_int64_t)
+ADD_DEFINITIONS(-Duint32_t=u_int32_t)
+ADD_DEFINITIONS(-Duint16_t=u_int16_t)
+ADD_DEFINITIONS(-Duint8_t=u_int8_t)
Copy link

Choose a reason for hiding this comment

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

Consider using standard integer types for better portability.

While the current changes address the compilation issue, using standard integer types (<cstdint>) would enhance the portability and maintainability of the code. If possible, consider updating the submodule or applying a patch that includes the necessary headers.

Comment on lines +19 to +22
+ADD_DEFINITIONS(-Duint64_t=u_int64_t)
+ADD_DEFINITIONS(-Duint32_t=u_int32_t)
+ADD_DEFINITIONS(-Duint16_t=u_int16_t)
+ADD_DEFINITIONS(-Duint8_t=u_int8_t)
Copy link

Choose a reason for hiding this comment

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

Consider using standard integer types for better portability.

As with the previous patch, using standard integer types (<cstdint>) would enhance the portability and maintainability of the code. If possible, consider updating the submodule or applying a patch that includes the necessary headers.

.github/build-mariadb-linux.sh Show resolved Hide resolved
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 7dcbb97 and bb1e830.
Files selected for processing (1)
  • .github/build-mariadb-linux.sh (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/build-mariadb-linux.sh

@shogo82148 shogo82148 merged commit 6eb88e3 into main May 28, 2024
72 of 135 checks passed
@shogo82148 shogo82148 deleted the ubuntu24.04-is-released branch May 28, 2024 11:13
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between bb1e830 and dafbc1b.
Files selected for processing (1)
  • .github/build-mysql-linux.sh (3 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/build-mysql-linux.sh

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.

None yet

1 participant