Skip to content

fix(docker): base plugin images on their exact build release - #246

Merged
askdba merged 2 commits into
mainfrom
fix/pin-plugin-images
Oct 31, 2026
Merged

askdba merged 2 commits into
mainfrom
fix/pin-plugin-images

Conversation

@askdba

@askdba askdba commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Companion to #245, which does the same for the component images.

Why

A plugin or component library works only on the exact MySQL release it was built against. In #244's dry run, a component built for 8.4.8 crashed 8.4.11.

The plugin images were built for mysql-8.0.45 / mysql-8.4.8 / mysql-9.7.0 but based on the floating mysql:8.0 / mysql:8.4 / mysql:9.7. Those tags now point to 8.0.46 / 8.4.13 / 9.7.4, so every published plugin image currently pairs the plugin with a newer server than it was built for.

What

  • docker-publish.yml, plugin job (build-and-publish):
    • Builds for 8.0.46, 8.4.13 and 9.7.4 and bases each image on mysql:<that release>.
    • Also tags each image with its release (mysql8.0.46, mysql8.4.13, mysql9.7.4). mysql8.0 / mysql8.4 / mysql9.7 / latest move to these releases.
    • Now also runs on a dry_run dispatch: it builds, smoke-tests and runs the README examples without pushing. Before, the job could only be tested by releasing.
  • Dockerfile.oraclelinux8 / Dockerfile.oraclelinux9: MYSQL_VERSION is required (no default).
  • scripts/build-docker-local.sh: builds 8.0, 8.4 or 9.7 on the same releases and rejects other versions. It used to map 9.0 to 9.0.0, and silently built 8.4.8 for anything else.
  • benchmark-issue79.yml: bases its image on 8.4.8, the release it clones.
  • docs/DOCKER_IMAGES.md, CHANGELOG.

Verification

A dry_run dispatch on this branch builds all three plugin images (amd64 and arm64), smoke-tests their contents and runs the README examples, without pushing. The run is linked below.

Note: this PR and #245 both add a paragraph at the same place in docs/DOCKER_IMAGES.md and an entry to CHANGELOG's Fixed section. Whichever merges second gets rebased.

🤖 Generated with Claude Code

The plugin images were built for 8.0.45 / 8.4.8 / 9.7.0 but based on the
floating mysql:8.0 / 8.4 / 9.7 (now 8.0.46 / 8.4.13 / 9.7.4); a library built
for one MySQL release can crash another (an 8.4.8 component crashed 8.4.11 in
#244's dry run).

- docker-publish.yml (plugin job): build for 8.0.46, 8.4.13, 9.7.4, base each
  image on mysql:<that release>, also tag it with the release; run on a dry_run
  dispatch too, building and testing without pushing.
- Dockerfile.oraclelinux8/9: MYSQL_VERSION is required (no default).
- build-docker-local.sh: same releases; reject versions other than 8.0/8.4/9.7.
- benchmark-issue79.yml: base the image on 8.4.8, the release it builds.
- docs/DOCKER_IMAGES.md, CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 78199742-8707-41b3-8d4c-341496c354ea
Commits

Reviewing files that changed from the base of the PR and between bf00303 and 5a2f6e9.

Files selected for processing: 7
  • .github/workflows/benchmark-issue79.yml
  • .github/workflows/docker-publish.yml
  • CHANGELOG.md
  • Dockerfile.oraclelinux8
  • Dockerfile.oraclelinux9
  • docs/DOCKER_IMAGES.md
  • scripts/build-docker-local.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T15:00:38.138592Z ea04398 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea04398c41

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

case "$MYSQL_VERSION" in
8.0) MYSQL_TAG="mysql-8.0.46" ;;
8.4) MYSQL_TAG="mysql-8.4.13" ;;
9.7) MYSQL_TAG="mysql-9.7.4" ;;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use a supported compiler for the local 9.7 target

When a non-Apple user runs scripts/build-docker-local.sh 9.7 with the defaults, this selects MySQL 9.7.4 but the script configures GCC 10 below; MySQL 9.7 requires GCC 11 or later, so CMake rejects the build. The publish workflow already selects compiler 11 for this release. Please select a supported compiler for this local target too (MySQL 9.7 release notes).

Useful? React with 👍 / 👎.

@askdba

askdba commented Oct 31, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

…-images

Keep both the plugin and the component pinning notes in docs/DOCKER_IMAGES.md
and CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@askdba
askdba merged commit 9606a07 into main Oct 31, 2026
21 checks passed
@askdba
askdba deleted the fix/pin-plugin-images branch October 31, 2026 17:58
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