Skip to content

fix(ci): use master Docker image for v2.5 branch only#2395

Open
ruojieranyishen wants to merge 1 commit into
apache:masterfrom
ruojieranyishen:master
Open

fix(ci): use master Docker image for v2.5 branch only#2395
ruojieranyishen wants to merge 1 commit into
apache:masterfrom
ruojieranyishen:master

Conversation

@ruojieranyishen
Copy link
Copy Markdown
Collaborator

@ruojieranyishen ruojieranyishen commented Apr 8, 2026

Summary

Fix CI startup failures for v2.5 branch PRs that dont have prebuilt Docker images.

Problem

The workflow lint_and_test_cpp.yaml used ${{ github.base_ref }} to construct Docker image tags:

  • apache/pegasus:thirdparties-bin-test-ubuntu2204-v2.5 (doesnt exist!)

This caused startup_failure for PRs targeting v2.5 branch.

Solution

Use GitHub Actions conditional expressions to use master branch images only for v2.5 PRs:

Branch Image Used
v2.5 master (fallback)
master, ci-test, *dev their own branch images

Image tag format: ${{ github.base_ref == 'v2.5' && 'master' || github.base_ref }}

Changes

Job Image Tag
Tidy ubuntu2204-${{ github.base_ref == 'v2.5' && 'master' || github.base_ref }}
IWYU same
Build/Test Release test-ubuntu2204-${{ github.base_ref == 'v2.5' && 'master' || github.base_ref }}
ASAN test-asan-ubuntu2204-${{ github.base_ref == 'v2.5' && 'master' || github.base_ref }}
jemalloc test-jemallc-ubuntu2204-${{ github.base_ref == 'v2.5' && 'master' || github.base_ref }}
Rockylinux9 rockylinux9-${{ github.base_ref == 'v2.5' && 'master' || github.base_ref }}

Also restored clang-tidy to compare against origin/base_ref.

Testing

The change only affects CI configuration. No code changes to C++ source.

Related

This fix enables CI for cherry-pick PRs targeting v2.5 branch.

@github-actions github-actions Bot added the github label Apr 8, 2026
Docker images like `thirdparties-bin-test-ubuntu2204-v2.5` don't exist
for release branches, causing CI startup failures.

This change uses GitHub Actions conditional expressions to use master
branch images only for v2.5 PRs, while other branches use their own
branch-specific images.

Changes:
- Updated image tags with conditional: `${{ github.base_ref == 'v2.5' && 'master' || github.base_ref }}`
- Affected jobs: Tidy, IWYU, Build/Test Release, ASAN, jemalloc, Rockylinux9
- Restored clang-tidy to compare against origin/base_ref

Notes:
- master, ci-test, *dev branches continue using their own images
- Only v2.5 (and future release branches without images) use master fallback
@ruojieranyishen ruojieranyishen changed the title fix(ci): use master Docker images for all PRs to support release branches fix(ci): use master Docker image for v2.5 branch only Apr 8, 2026
@acelyc111 acelyc111 requested a review from Copilot May 26, 2026 15:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@acelyc111
Copy link
Copy Markdown
Member

@ruojieranyishen
Copy link
Copy Markdown
Collaborator Author

Thanks for pointing out the image exists. I further checked the CI status of PR #2394:

Both Cpp CI #4276 and Standardization Lint show Startup failure, not missing images.
The following v2.5 images are confirmed to exist on Docker Hub:

  • thirdparties-bin-test-ubuntu2204-v2.5
  • thirdparties-bin-ubuntu2204-v2.5
  • thirdparties-bin-test-jemallc-ubuntu2204-v2.5

So the issue might be related to workflow configuration or GitHub Actions permissions, not missing images.

@empiredan mentioned "need to add a v2.5 image" — it would be helpful to confirm which specific image is needed, or whether the Startup failure is caused by something else.

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.

3 participants