Add complete system qualification evidence
This commit is contained in:
parent
775dd61963
commit
6952767503
1 changed files with 1256 additions and 84 deletions
|
|
@ -860,6 +860,27 @@ cleanup_lane_target_store() {
|
|||
fi
|
||||
kube --namespace "$FIXTURE_NAMESPACE" exec "deployment/$deployment" --container s3-readiness -- \
|
||||
aws --endpoint-url "$endpoint" s3 rm "s3://$bucket" --recursive >&2 || return
|
||||
if [[ "$provider" = versitygw ]]; then
|
||||
kube --namespace "$FIXTURE_NAMESPACE" exec "deployment/$deployment" --container s3-readiness -- \
|
||||
/bin/sh -ec '
|
||||
endpoint="$1"
|
||||
bucket="$2"
|
||||
while :; do
|
||||
set -- $(aws --endpoint-url "$endpoint" s3api list-object-versions \
|
||||
--bucket "$bucket" \
|
||||
--query "[length(not_null(Versions, \`[]\`)), length(not_null(DeleteMarkers, \`[]\`))]" \
|
||||
--output text)
|
||||
[ "$1" -eq 0 ] && [ "$2" -eq 0 ] && break
|
||||
objects="$(aws --endpoint-url "$endpoint" s3api list-object-versions \
|
||||
--bucket "$bucket" \
|
||||
--query "{Objects: [not_null(Versions, \`[]\`), not_null(DeleteMarkers, \`[]\`)][][].{Key:Key,VersionId:VersionId}, Quiet: \`true\`}" \
|
||||
--output json)"
|
||||
aws --endpoint-url "$endpoint" s3api delete-objects \
|
||||
--bucket "$bucket" \
|
||||
--delete "$objects" >/dev/null
|
||||
done
|
||||
' sh "$endpoint" "$bucket" >&2 || return
|
||||
fi
|
||||
kube --namespace "$FIXTURE_NAMESPACE" exec "deployment/$deployment" --container s3-readiness -- \
|
||||
aws --endpoint-url "$endpoint" s3api delete-bucket --bucket "$bucket" >&2 || return
|
||||
if kube --namespace "$FIXTURE_NAMESPACE" exec "deployment/$deployment" --container s3-readiness -- \
|
||||
|
|
@ -1108,6 +1129,9 @@ run_job_matrix() {
|
|||
local manifest
|
||||
select_fixture_families "${families[@]}" || return
|
||||
while IFS=$'\t' read -r lane coordination oidc target; do
|
||||
if [[ -n "${REMORA_FIXTURE_LANE:-}" ]] && [[ "$lane" != "$REMORA_FIXTURE_LANE" ]]; then
|
||||
continue
|
||||
fi
|
||||
job="$job_base-$lane"
|
||||
profile="$(write_lane_profile "$lane" "$coordination" "$oidc" "$target")" || return
|
||||
manifest="$RUNTIME/$job.yaml"
|
||||
|
|
@ -1163,7 +1187,8 @@ kube() {
|
|||
wait_for_job() {
|
||||
local namespace="$1"
|
||||
local job="$2"
|
||||
local deadline=$((SECONDS + 300))
|
||||
local timeout="${REMORA_JOB_TIMEOUT_SECONDS:-300}"
|
||||
local deadline=$((SECONDS + timeout))
|
||||
local complete
|
||||
local failed
|
||||
while ((SECONDS < deadline)); do
|
||||
|
|
@ -1180,7 +1205,7 @@ wait_for_job() {
|
|||
sleep 1
|
||||
done
|
||||
print_job_logs "$namespace" "$job" >&2 || true
|
||||
printf 'job/%s did not complete within 300 seconds\n' "$job" >&2
|
||||
printf 'job/%s did not complete within %s seconds\n' "$job" "$timeout" >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue