Status
FAILED
10 of 10 shard(s) failed: shard 0: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 1: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 2: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 3: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 4: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 5: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 6: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 7: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 8: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.; shard 9: ERROR: Shared workspace preparation failed. Elapsed: 677523ms. SSH channel running '# buildtest-shared-cache-preparation-child
setsid --wait bash -c ' set -e
child_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0'\''
preparation_root='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b'\''
pid_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.pid'\''
cancel_path='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/.buildtest-preparation.cancel'\''
child_pid="$BASHPID"
(
# Only the claim creates the generation root; a fenced child must not recreate it.
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ ! -d "$preparation_root" ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
exec 8>>"$preparation_root/control.lock"
flock 8
if [ -e "$preparation_root/canceled" ] || [ -e "$cancel_path" ]; then exit 143; fi
mkdir -p "$child_root"
echo "$child_pid" > "$pid_path"
)
(
: # An old owner may not recreate a removed root.
exec 9>>'\''/root/.buildtest-shared-cache-publication.lock'\''
if ! flock 9; then
echo '\''The remote root '\''\'\'''\''/root'\''\'\'''\'' is publishing or recovering a shared-cache generation.'\'' >&2
exit 75
fi
if [ ! -d '\''/root/.buildtest-shared-cache-owner/c2579ebb67294498a706c878b9ad595b'\'' ]; then
echo '\''Shared-cache preparation '\''\'\'''\''c2579ebb67294498a706c878b9ad595b'\''\'\'''\'' no longer owns remote root '\''\'\'''\''/root'\''\'\'''\''; recovery fenced this generation.'\'' >&2
exit 75
fi
if [ -e "$cancel_path" ] || [ -e "$preparation_root/canceled" ]; then exit 143; fi
mkdir -p "$child_root/home"
)
# The setup subshell releases the root lock before any runner or callback executes.
# Keep the session marker until coordinator cleanup. Foreground exit does not
# terminate the background runner or release its workspace ownership.
if [ -e "$cancel_path" ]; then exit 143; fi
# The runner arguments intentionally use paths rooted at [remoteRoot]. Keep the
# command'\''s established remote-root working directory here; changing into child_root
# would make a relative test root (used by the real SSH test seam) resolve again below
# that child and would point the runner at a second, nonexistent copy of its files.
cd '\''/root'\''
export HOME="$child_root/home"
export XDG_CACHE_HOME='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache'\''
export COURSIER_CACHE='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
export COURSIER_CACHE_DIR='\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.cache/coursier'\''
rm -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
: > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\''
(
trap '\'''\'' HUP
BTR_RUNNER_PID=$BASHPID
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\''
mv '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid.starting'\'' '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
printf '\''##BTR## {"event":"runner_process_started","runnerStreamId":"6a9c2dc4-82d9-434b-a2a3-1bcfa002688b","timestamp":%s,"processId":%s}\n'\'' "1792793019473" "$BTR_RUNNER_PID"
TOTAL_MEM_KB=$(grep MemTotal /proc/meminfo | awk '\''{print $2}'\'')
HEAP_MB=$((TOTAL_MEM_KB / 1024 / 2))
if [ "$HEAP_MB" -gt 1024 ]; then HEAP_MB=1024; fi
echo "System memory: $((TOTAL_MEM_KB / 1024))MB, JVM heap: ${HEAP_MB}MB"
if [ -f '\''/root/.buildtest-no-cache-preparation-override.jar'\'' ]; then
echo "Using kompile-cli override JAR: /root/.buildtest-no-cache-preparation-override.jar"
java \
-Xmx${HEAP_MB}m \
-ea \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-jar '\''/root/.buildtest-no-cache-preparation-override.jar'\'' \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
else
/root/tools/coursier launch \
-M buildtest.runner.MainKt \
buildtest.runner:buildtest-runner:0.0.124 \
--no-default \
-r https://kotlin.directory \
-r central \
--java-opt -Xmx${HEAP_MB}m \
--java-opt -ea \
--java-opt -XX:+HeapDumpOnOutOfMemoryError \
--java-opt -XX:HeapDumpPath=/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/heapdump-oom.hprof \
-- \
-w /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects \
--test '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/projects'\'' \
--log /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/test-results.xml \
--runner-stream-id '\''6a9c2dc4-82d9-434b-a2a3-1bcfa002688b'\'' \
--build '\''foundation.url.protocol.buildChurnOutputTestSupport'\'' --build '\''foundation.url.protocol.buildCompatibilityTestRuntimeJar'\'' --build '\''foundation.url.protocol.buildForwardedReplyStreamsBeyondReceiverHeapTestSupport'\'' --build '\''foundation.url.protocol.buildLegacyFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildMaven'\'' --build '\''foundation.url.protocol.buildNativeQueuedFramesSurviveConstrainedHeapTestSupport'\'' --build '\''foundation.url.protocol.buildPreFramingForwardingCompatibilityArchive'\'' --build '\''foundation.url.protocol.buildPriorReaderCompatibilityRuntimeDirectory'\'' --build '\''foundation.url.protocol.buildRelayClosingServiceRemovesWaitingMaterializationTestSupport'\'' --build '\''foundation.url.protocol.buildRelayCompletedMaterializationsPreserveProcessWideFifoTestSupport'\'' --build '\''foundation.url.protocol.buildRelayFailedTemporaryFileCloseRetainsPathAndStorageChargeTestSupport'\'' --build '\''foundation.url.protocol.buildRelayMaterializationBudgetNeverExceedsHalfOfSmallHeapTestSupport'\'' --build '\''foundation.url.protocol.buildRetiredOwnedStreamsDoNotAccumulateAcrossRetriesTestSupport'\'' --build '\''foundation.url.protocol.buildTcpBlockedSendersDoNotRetainFrameCopiesTestSupport'\'' --build '\''foundation.url.protocol.buildUncompressedTreeRequestedIdSetTestSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterclose.buildSupport'\'' --build '\''foundation.url.protocol.qr179.heldannouncementhistoryskipspublicationafterunregister.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationclockkeymethodsallowconcurrentreentry.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxminusoneunregisterstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationmaxtimestampcloseracedoesnotpublishlatecallbacks.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationownedtimestampceilingstillcleansup.buildSupport'\'' --build '\''foundation.url.protocol.qr179.serviceregistrationprovidertimestampceilingstillcleansup.buildSupport'\'' --build-only --cache '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/stage/.buildcache'\'' --test-parallelism 4 \
2>&1
fi
_KOMPILE_EC=$?
echo $_KOMPILE_EC > /root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code
) </dev/null >> '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' 2>&1 &
BTR_RUNNER_PID=$!
echo $BTR_RUNNER_PID > '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-runner.pid'\''
tail -n +1 -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/btr-events.spool'\'' --pid=$BTR_RUNNER_PID 2>/dev/null
wait "$BTR_RUNNER_PID"
_BTR_EC=1
if [ -f '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' ]; then
IFS= read -r _BTR_EC < '\''/root/.buildtest-shared-cache-preparation-c2579ebb67294498a706c878b9ad595b/child-0/kompile-exit-code'\'' || _BTR_EC=1
fi
exit ${_BTR_EC:-1}'' exceeded its unread output bound of 8388608 bytes: the consumer was 8388608 bytes behind; this channel's stream ended without closing its shared SSH session.
Build Rules
14 built , 1 failed , 7 pending , 22 totalTests
0 passed , 0 failed, 3271 total