Skip to content

Commit 494fe02

Browse files
committed
[ci] Doc: workaround limitation of xrdcp
1 parent efa865a commit 494fe02

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/root-docs-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,22 @@ jobs:
190190
EOS_ENDPOINT: root://eosproject-r.cern.ch
191191
KRB5CCNAME: /tmp/krb5cc
192192
working-directory: ${{ env.DOC_LOCATION }}
193+
# Because of https://github.com/xrootd/xrootd/issues/2235 , the xrd client can copy
194+
# only at most 65536 in one go. For this reason, we copy files in batches, dividing
195+
# them by extension. Once that is fixed in XRootD, a single command can be used
196+
# instead.
193197
run: |
194198
echo ${RWEBEOS_KT} | base64 -d > ${KT_FILE_NAME}
195199
kinit -p ${{ secrets.KRB5USER }}@${{ secrets.KRB5REALM }} -kt ${KT_FILE_NAME}
196200
cd ${DOC_DIR}/html/
201+
xrdcp --parallel 64 -rf ./*.html ${EOS_ENDPOINT}/${EOS_BASE_PATH}/doc/${WEB_DIR_NAME}
202+
rm -rf *.html
203+
xrdcp --parallel 64 -rf ./*.svg ${EOS_ENDPOINT}/${EOS_BASE_PATH}/doc/${WEB_DIR_NAME}
204+
rm -rf *.svg
205+
xrdcp --parallel 64 -rf ./*.map ${EOS_ENDPOINT}/${EOS_BASE_PATH}/doc/${WEB_DIR_NAME}
206+
rm -rf *.map
207+
xrdcp --parallel 64 -rf ./*.md5 ${EOS_ENDPOINT}/${EOS_BASE_PATH}/doc/${WEB_DIR_NAME}
208+
rm -rf *.md5
197209
xrdcp --parallel 64 -rf ./ ${EOS_ENDPOINT}/${EOS_BASE_PATH}/doc/${WEB_DIR_NAME}
198210
cd ..
199211
rm -r html

0 commit comments

Comments
 (0)