Repository navigation
Conversation
Two defects kept the workflow from getting past its build step on the
self-hosted runner.
1) The build container image silently lost the prebuilt Boost
The workflow let build-with-container.py build its own image
(-e build-container), which runs `podman build --pull` (pull policy
"always") against the floating docker.io/ubuntu:22.04 tag. Every refresh
of that tag rebuilds the image and re-runs install-deps.sh, which installs
the prebuilt ceph-libboost 1.82 packages into /opt/ceph via
shaman.ceph.com and swallows a failure ("ceph-libboost package
unavailable, you can build the submodule").
shaman's libboost index is gone (HTTP 504, empty search result), so the
image rebuilt on 2026-09-11 came out without /opt/ceph, cmake fell back to
-DBOOST_J and building Boost from source, and every later run reused that
degraded image from the podman cache. All four attempts of run 34588947862
died in the build step; the last run that passed it (2026-07-09) still had
the prebuilt Boost.
Build the image in the workflow instead:
* a jammy base pinned by digest (ubuntu:22.04 index of 2026-09-03) with
the ceph-libboost 1.82 packages installed straight from the chacra repo
that shaman used to resolve; install-deps.sh then sees
installed_ver=1.82, returns early and never contacts shaman
* Dockerfile.build on top of that base without --pull, tagged
ceph-build:cobaltcore
* a hard check that /opt/ceph/include/boost/config.hpp exists, so a
degraded image fails the job instead of changing the build silently
* configure, buildtests and ctest run with `--tag cobaltcore -I cache`, so
build-with-container.py uses that image and never pulls or rebuilds it
Nothing is pushed to any registry; both images stay in the runner's local
podman storage. The repository's build scripts are unchanged.
2) A leftover container blocked every following run
build-with-container.py runs every container as `podman run
--name=ceph_build` (hard-coded) and relies on --rm for cleanup. The build
step of run 34588947862 was killed before its container exited, so the
name stayed taken and every later run failed with
Error: creating container storage: the container name "ceph_build" is
already in use by 3b48b8bb7530...
Remove such a leftover in "Clean Workspace", where the workspace is reset
anyway, and log `podman inspect` first so the state of the killed
container (status, start/finish time, exit code, OOM flag) ends up in the
job log before it is deleted.
Verified locally from an empty podman store: the image step builds with no
shaman contact, configure produces -DWITH_SYSTEM_BOOST=ON
-DBOOST_ROOT=/opt/ceph and finds Boost 1.82 under /opt/ceph, a
Boost-dependent translation unit compiles with -isystem /opt/ceph/include,
and the cleanup block removes a stale ceph_build container.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
On-behalf-of: SAP <[email protected]>
Signed-off-by: Uwe Schwaeke <[email protected]>
uw-sc
force-pushed
the
fix/build-error
branch
from
September 18, 2026 08:55
f8468b2 to
09cfeac
Compare
Author
|
wrong way of fixing the pre existing build errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The unit test workflow has not completed its build step on
centos01since 2026-09-11. Two independentdefects are involved.
1. The build container image silently lost the prebuilt Boost
All four attempts of the run for
backport/570(run 34588947862, 2026-09-11 … 09-14) died in"Build container image and compile tests" with "The self-hosted runner lost communication with the
server" — no error, no finalized log.
build-with-container.py -e build-containerrunspodman build --pull(pull policy always) against thefloating
docker.io/ubuntu:22.04tag. Ubuntu refreshed that tag on 2026-09-03, so the next run(2026-09-11) rebuilt the image and re-ran
install-deps.sh.install-deps.shinstalls the prebuiltceph-libboost1.82 packages into/opt/cephviashaman.ceph.com. shaman's libboost index is gone (HTTP 504 / empty search result — also for upstreammain's build), and the script swallows the failure
(
|| ci_debug "ceph-libboost package unavailable, you can build the submodule")./opt/ceph; cmake falls back to-DBOOST_J=…and builds Boost from source,~2 000 ninja edges block behind a 120 MB download, and the podman cache reuses that degraded image for
every following run. The last run that passed this step (2026-07-09) still had the prebuilt Boost;
toolchain and dashboard build were otherwise identical.
Change:
ubuntu:22.04multi-arch index of 2026-09-03) with the 17ceph-libboost-*1.82-devpackages installed directly from the chacra repo that shaman used to hand out.install-deps.shthen seesinstalled_ver=1.82, returns early and never contacts shaman.Dockerfile.buildon top of it without--pull, taggedceph-build:cobaltcore.podman run … test -f /opt/ceph/include/boost/config.hpp— a degraded image now fails thejob instead of silently changing the build.
--tag cobaltcore -I cache, sobuild-with-container.pyusesthat image and never pulls or rebuilds it.
Nothing is pushed to any registry; both images stay in the runner's local podman storage. The repository's
build scripts are untouched (still identical to upstream/squid).
2. A leftover container blocked every following run
build-with-container.pyruns every container aspodman run --name=ceph_build(hard-coded, no option)and relies on
--rmfor cleanup. The build step of run 34588947862 was killed before its container exited,so the name stayed taken and every later run — including the first runs of this PR — failed with
Change: remove such a leftover in "Clean Workspace", where the workspace is reset anyway, and log
podman inspectfirst, so the state of the killed container (status, start/finish time, exit code, OOMflag) ends up in the job log before it is deleted. That output is also the first direct evidence about how
the 2026-09-14 job died.
Verification
Locally, from an empty podman store:
installed_ver=1.82×2, zero shaman /"package unavailable" lines, gate
BOOST_OK, 37 packages,BOOST_LIB_VERSION "1_82".-e configurewith-I cache:Container image ceph-build:cobaltcore present; cmake line-DWITH_SYSTEM_BOOST=ON -DBOOST_ROOT=/opt/ceph;Found Boost: /opt/ceph/lib/x86_64-linux-gnu/cmake/Boost-1.82.0/BoostConfig.cmake— identical to the last good runs.mon/MonMap.cc.o) compiles with-isystem /opt/ceph/include.ceph_buildcontainer.On the runner (runs 35317584220 / 35323621802, before the cleanup fix): the image step succeeded —
4 m 35 s cold, gate passed,
-I cacheresolvedceph-build:cobaltcore. Both runs then failed at theceph_buildname collision, which is what section 2 fixes.What to expect from the next run
::warning::removing leftover ceph_build containerplus thepodman inspectline on the first run after the fix.src/mon/MonClient.h:62and fails there(
-Wdefaulted-function-deleted; upstream fixb09d0aa64d6, handled separately). Reaching that point isthe success criterion for this PR.
podman rmi ceph-build:HEAD.ubuntu22.04on the runner frees the now-unused old image.Follow-ups (separate)
podman inspectline aboveplus the runner's
_diaglogs should settle it. A--memory/--memory-swapceiling andtimeout-minutesfor the build container are the next workflow-only hardening.squid-19.2.4-cobaltcore-storage(identical workflow) if wanted.🤖 Generated with Claude Code