Skip to content

perf: optimize base image builds - #1462

Merged
xuwei-fit2cloud merged 1 commit into
mainfrom
codex/optimize-base-image-builds
Nov 12, 2026
Merged

xuwei-fit2cloud merged 1 commit into
mainfrom
codex/optimize-base-image-builds

Conversation

@xuwei-fit2cloud

Copy link
Copy Markdown
Collaborator

Summary

  • Build both SQLBot base images on native AMD64 and ARM64 runners. For dual-architecture builds, publish each platform by digest and assemble the two multi-platform manifests after the build jobs succeed. Preserve direct single-platform publishing, the version tag, and the optional latest tag.
  • Skip Debian installer packages and test binaries when building the patched HarfBuzz and GDK Pixbuf runtime packages. Retain the HarfBuzz patch and the disabled TIFF loader.
  • Inherit the shared runtime-tools stage in the compiler base so both base images reuse the PostgreSQL, Python, Node, and uv layers.

Validation

  • Passed actionlint, shell syntax checks, and git diff --check.
  • Tested single-platform tags, dual-platform manifest assembly, the optional latest tag, and missing-digest handling in a temporary local registry.
  • Built and installed the three graphics runtime packages on AMD64 and ARM64. Verified HarfBuzz loading and PNG decoding with the TIFF loader disabled.
  • Rebuilt the AMD64 compiler base and the full application image before and after the inheritance change. With identical staged dependencies and the build cache disabled, the compiler-base build took 196.2 seconds before and 191.2 seconds after, excluding dependency downloads. The two base images' deduplicated compressed layers went from 658.90 MB to 577.35 MB. The application image was approximately 1,399.85 MB in both builds.
  • Verified the linked Bake target with a local build. Both application images had matching Python package inventories and SSR lockfiles, loaded the database drivers, and rendered a PNG with Canvas. The GitHub-hosted build-and-publish workflow still needs an end-to-end run.

@xuwei-fit2cloud
xuwei-fit2cloud merged commit ca069c5 into main Nov 12, 2026
3 checks passed
@xuwei-fit2cloud
xuwei-fit2cloud deleted the codex/optimize-base-image-builds branch November 12, 2026 08:21
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