Fix duplicate step_finished notification
[?]
Aug 12, 2019, 1:50 PM
MJL3PDXI4SC6SJSSETXPAX4CEPX7LQWNRPUDEV2O67UUIMDW25LACDependencies
- [2]
EPWEMRI2Allow determinism checking for entire jobsets - [3]
OPN3PED2Tweak - [4]
NTEDD7T4Provide a plugin hook for when build steps finish - [5]
OBOTGFG6Prevent orphaned build steps - [6]
TPNHTE5VRemove obsolete Builds columns and provide accurate "Running builds" - [7]
32KJOERMTurn hydra-notify into a daemon - [8]
MHVIT4JYSplit hydra-queue-runner.cc more - [9]
UNVMKJV5Unify build and step status codes - [10]
FITVNQ2SKeep track of the time we spend copying to/from build machines - [11]
BG6PEOB2Make the output size limit configurable - [12]
BRAESISHWarn if PostgreSQL appears stalled - [13]
LVQXQIYAKill active build steps when builds are cancelled - [14]
7LWB2J2ZPeriodically clear orphaned build steps - [15]
B7ENVLRShydra-queue-runner: Make build notification more reliable - [*]
IK2UBDAURevive jobset scheduling
Change contents
- edit in src/hydra-queue-runner/builder.cc at line 230[3.4778][17.0]
/* For standard failures, we don't care about the errormessage. */if (result.stepStatus != bsAborted)result.errorMsg = ""; - edit in src/hydra-queue-runner/builder.cc at line 248
/* Finish the step in the database. */if (stepNr) {pqxx::work txn(*conn);finishBuildStep(txn, result, buildId, stepNr, machine->sshName);txn.commit();} - edit in src/hydra-queue-runner/builder.cc at line 268[3.79]→[3.254:268](∅→∅),[3.79]→[3.5501:5536](∅→∅),[3.268]→[3.5501:5536](∅→∅),[3.5501]→[3.5501:5536](∅→∅),[3.5536]→[2.1044:1121](∅→∅),[3.79]→[3.5687:5713](∅→∅),[3.172]→[3.5687:5713](∅→∅),[2.1121]→[3.5687:5713](∅→∅),[3.5687]→[3.5687:5713](∅→∅),[3.5713]→[3.269:283](∅→∅)
{pqxx::work txn(*conn);finishBuildStep(txn, result, buildId, stepNr, machine->sshName);txn.commit();} - edit in src/hydra-queue-runner/builder.cc at line 321
finishBuildStep(txn, result, buildId, stepNr, machine->sshName); - edit in src/hydra-queue-runner/builder.cc at line 377
/* For standard failures, we don't care about the errormessage. */if (result.stepStatus != bsAborted)result.errorMsg = ""; - edit in src/hydra-queue-runner/builder.cc at line 423[3.12003]→[3.364:477](∅→∅),[3.477]→[2.1204:1289](∅→∅),[2.1289]→[3.478:496](∅→∅),[3.2505]→[3.478:496](∅→∅),[3.3519]→[3.478:496](∅→∅),[3.424]→[3.12211:12212](∅→∅),[3.496]→[3.12211:12212](∅→∅),[3.880]→[3.12211:12212](∅→∅),[3.3519]→[3.12211:12212](∅→∅),[3.12211]→[3.12211:12212](∅→∅)
if (result.stepStatus != bsCachedFailure && !stepFinished) {assert(stepNr);finishBuildStep(txn, result, buildId, stepNr, machine->sshName);}