ci: serialize make distcheck - #8983
Conversation
There was a problem hiding this comment.
Code Review
This pull request modifies Makefile.am to serialize install-sssdlibLTLIBRARIES after install-pkglibLTLIBRARIES and install-libLTLIBRARIES to prevent parallel installation race conditions during Libtool relinking. The reviewer suggests extending this serialization to other library groups (such as ldblib, py3exec, cifsplugin, and winbindplugin) that also link against these base libraries and are susceptible to the same race condition.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
16fae36 to
1a219cb
Compare
It's basically the same fix, this PR is just more complete. I also addressed gemini notes, let's see what CI will look like. |
|
Btw, for some (unknown to me) reason, branches other than 'master' fail |
acc32f8 to
38e9719
Compare
|
Well, fixing one problem revealed another one. The first version where only |
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
@pbrezina can you set the backport labels? This problem has been hitting heavily sssd-2-9 and I'd like to see it ported there |
The parallel distcheck is full of potentiall race conditions because there is no defined ordering on the libraries. There were attempts to fix this using CI, but fixed one problem just revealed another one and ultimately the fix was becomming more complex and magical but still incomplete. Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
38e9719 to
1c17ad9
Compare
I saw make distcheck fail recently with linker due to a race condition when libsss_util.so was not available for libsss_ldap.
I let AI handle it:
Libtool relinks shared libraries during install. With parallel make,
install-sssdlibLTLIBRARIES and install-pkglibLTLIBRARIES run
concurrently, causing provider plugin relinks to read half-written
base library .so files (e.g. libsss_ldap reads libsss_util.so
mid-relink). Serialize the install targets to prevent this.
Assisted-By: Claude Code (Opus 4.6)