Skip to content

Add build-4.0.yml workflow for branch-4.0 prebuilt and docker image#394

Merged
morningman merged 7 commits into
apache:mainfrom
hello-stephen:main
May 29, 2026
Merged

Add build-4.0.yml workflow for branch-4.0 prebuilt and docker image#394
morningman merged 7 commits into
apache:mainfrom
hello-stephen:main

Conversation

@hello-stephen
Copy link
Copy Markdown
Contributor

Summary

  • Add build-4.0.yml to automate prebuilt thirdparty artifacts and Docker image for Apache Doris branch-4.0, following the same pattern as existing build-3.1.yml but with the update-docker job from build.yml (master)
  • Fix download failures for packages whose upstream mirrors are unavailable from GitHub Actions runners:
    • lzo-2.10.tar.gz: fossies.org returns 410 Gone for this file; switch to official oberhumer.com mirror
    • libuuid-1.0.3.tar.gz: nchc.dl.sourceforge.net (Taiwan mirror) is blocked from GitHub Actions; use the main SourceForge redirector instead
  • Change prerelease job runner from macos-14 to ubuntu-latest to avoid macOS runner network restrictions that cause silent empty-file downloads
  • Fix gh release upload --clobber race-condition that returns exit 1 ("release not found") when overwriting an existing asset, even though the upload succeeds; replace with explicit delete-then-upload
  • Sync build.yml (master workflow) improvements: add force_build input for workflow_dispatch, switch DORIS_TOOLCHAIN to clang

Key differences from build-3.1.yml

build-3.1.yml build-4.0.yml
Tracked branch branch-3.1 branch-4.0
Release tag automation-3.1 automation-4.0
update-docker job ✓ (same as master)
Docker image tags N/A build-env-ldb-toolchain-4.0-latest
ldb_toolchain v0.18 v0.25
llvm llvm@16 llvm@20
prerelease runner macos-14 ubuntu-latest

Test plan

  • Prerelease job: successfully creates automation-4.0 release, downloads sources, detects thirdparty changes
  • Build (Linux): thirdparty compiled and prebuilt artifact uploaded
  • Build (macOS-arm64): thirdparty compiled and prebuilt artifact uploaded
  • Update Docker Image: Dockerfile pulled from branch-4.0, all three patches applied successfully, Docker image built (push requires apache Docker Hub credentials)
  • Build (macOS-x86_64): validated in CI but macos-13 runner availability on GitHub is currently limited

🤖 Generated with Claude Code

hello-stephen and others added 7 commits April 22, 2026 14:19
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…Gone)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…locks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… on GH Actions)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@morningman morningman merged commit 326e4e6 into apache:main May 29, 2026
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.

2 participants