Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
f5851d75
Commit
f5851d75
authored
6 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
Fixing CI checks for retrieved files as the file info message broke the previous one.
parent
f04d6008
No related branches found
No related tags found
No related merge requests found
Pipeline
#32504
failed
2 years ago
Stage: build:srpm
Stage: build:rpm
Stage: sign
Stage: publish
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
continuousintegration/orchestration/tests/client_ar.sh
+11
-19
11 additions, 19 deletions
continuousintegration/orchestration/tests/client_ar.sh
with
11 additions
and
19 deletions
continuousintegration/orchestration/tests/client_ar.sh
+
11
−
19
View file @
f5851d75
...
...
@@ -152,39 +152,31 @@ echo "Trigerring EOS retrieve workflow as poweruser1:powerusers (12001:1200)"
# We need the -s as we are staging the files from tape (see xrootd prepare definition)
grep
tapeonly
$
${
STATUS_FILE
}
|
sed
-e
's/ .*$//'
|
KRB5CCNAME
=
/tmp/
${
EOSPOWER_USER
}
/krb5cc_0
XrdSecPROTOCOL
=
krb5 xargs
--max-procs
=
${
NB_PROCS
}
-iTEST_FILE_NAME
xrdfs
${
EOSINSTANCE
}
prepare
-s
${
EOS_DIR
}
/TEST_FILE_NAME
TO_BE_RETRIEVED
=
${
ARCHIVED
}
RETRIEVING
=
${
TO_BE_RETRIEVED
}
RETRIEVED
=
0
# Wait for the copy to appear on disk
echo
"
$(
date
+%s
)
: Waiting for files to be back on disk:"
SECONDS_PASSED
=
0
WAIT_FOR_RETRIEVED_FILE_TIMEOUT
=
$((
40
+
${
NB_FILES
}
/
5
))
while
test
0
!=
$
(
grep
-c
tapeonly
$
${
STATUS_FILE
}
)
;
do
echo
"Waiting for files to be retrieved from tape: Seconds passed =
${
SECONDS_PASSED
}
"
while
test
0
!=
$
{
RETRIEVING
}
;
do
echo
"
$(
date
+%s
)
:
Waiting for files to be retrieved from tape: Seconds passed =
${
SECONDS_PASSED
}
"
sleep
1
let
SECONDS_PASSED
=
SECONDS_PASSED+1
if
test
${
SECONDS_PASSED
}
==
${
WAIT_FOR_RETRIEVED_FILE_TIMEOUT
}
;
then
echo
"Timed out after
${
WAIT_FOR_RETRIEVED_FILE_TIMEOUT
}
seconds waiting for file to be retrieved tape"
echo
"
$(
date
+%s
)
:
Timed out after
${
WAIT_FOR_RETRIEVED_FILE_TIMEOUT
}
seconds waiting for file to be retrieved tape"
break
fi
echo
"
$(
grep
-c
retrieved
$
${
STATUS_FILE
}
)
/
${
TAPEONLY
}
retrieved"
RETRIEVED
=
0
RETRIEVED
=
$((
${
RETRIEVED
}
+
$(
eos root://
${
EOSINSTANCE
}
ls
-y
${
EOS_DIR
}
| egrep
'^d[1-9][0-9]*::t1'
|
wc
-l
)
))
# generating EOS batch script
grep
tapeonly
$
${
STATUS_FILE
}
|
sed
-e
's/ .*$//'
|
sed
-e
"s;^;file info
${
EOS_DIR
}
/;"
>
${
EOS_BATCHFILE
}
# Updating all files statuses
eos
--batch
root://
${
EOSINSTANCE
}
${
EOS_BATCHFILE
}
| egrep
'^ *File|nodrain.*online'
|
while
read
line
;
do
if
echo
$line
|
grep
-q
File
;
then
filename
=
$(
basename
$(
echo
$line
|
awk
'{print $2}'
|
sed
-e
"s/'//g"
))
elif
echo
$line
|
grep
-q
nodrain
;
then
# file is back on disk
sed
-i
${
STATUS_FILE
}
-e
"s/
${
filename
}
tapeonly/
${
filename
}
retrieved/"
fi
done
RETRIEVING
=
$((${
TO_BE_RETRIEVED
}
-
${
RETRIEVED
}))
echo
"
${
RETRIEVED
}
/
${
TO_BE_RETRIEVED
}
retrieved"
done
RETRIEVED
=
$(
grep
-c
retrieved
$
${
STATUS_FILE
}
)
echo
"###"
echo
"
${
RETRIEVED
}
/
${
TAPEONLY
}
retrieved files"
echo
"###"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment