Closed jskNorthgate closed 3 years ago
Actually, there is a penalty, if we ever want to use the BatchBuild.Result to drive retries.
Fix strategy: somehow, log all the volumes which are in a build, pass them in as a set or tuple to updateBuildStatus
. It would be a moderate string, only 300 -600 characters
make-drs-batch.sh
calls PythonupdateBuildStatus
after building a batch. There are cases where the batch fails, but the build directory is intact, so the phraseif [ ! -f ${targetProjectsRoot}/${batchName}/batch.xml ] ; then ... updateBuildStatus ${DbConnectionString} "${targetProjectsRoot}/${batchName}" "FAIL" 2>&1 | tee -a ${logPath} else
works, because"${targetProjectsRoot}/${batchName}"
exists, and has subdirectories which are volume names, whichupdateBuildStatus
uses to update each Volume record in the database. There are cases where the batch fails and there is no directory.