Add a error type for "unsupported system type"

[?]
Jun 15, 2015, 1:07 PM
UQQ4IL55WHYMXNSPOXEFBTZAPMP7LQ726THOR7INRCJDSYVOP3ZAC

Dependencies

  • [2] U2X3Y53G make sure status images always display for a list of builds
  • [3] N5O7VEEO Immediately abort builds that require an unsupported system type
  • [4] N2ZF5JUL Use a different icon for aborted builds
  • [5] E5DMQRPO Remove unnecessary whitespace in the HTML output
  • [6] 62MQPRXC Pass null values to libpqxx properly
  • [7] ENXUSMSV Make concurrency more robust
  • [8] XBLTCIUZ Show build status 2 and 5 in the same way
  • [9] GS4SFHCP templates: Use uri_for to reference static paths.
  • [10] 6KIJX24R Get rid of unnecessary [%- and -%] tags
  • [11] KBZHIGLG Record the machine used for a build step
  • [12] 24BMQDZA Start of single-process hydra-queue-runner
  • [13] T6KISLR6 Fix indentation
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] JGLE5BRN Add separate build step status codes for cached failures and timeouts
  • [*] IK53RV4V
  • [*] N22GPKYT * Put info about logs / build products in the DB.
  • [*] PMNWRTGJ Add multiple output support
  • [*] BD3GRK4B * Get rid of "positive failures" and separate log phases.

Change contents

  • edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 36
    [4.5180]
    [4.5180]
    bsUnsupported = 9,
  • edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 44
    [4.5271]
    [4.5271]
    bssUnsupported = 9,
  • replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 348
    [4.618][4.618:659]()
    (machine, machine != "").exec();
    [4.618]
    [4.8996]
    (machine).exec();
  • replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 505
    [3.726][3.726:787]()
    if (!supported) { allSupported = false; break; }
    [3.726]
    [3.787]
    if (!supported) {
    allSupported = false;
    printMsg(lvlError, format("aborting unsupported build %1%") % build->id);
    pqxx::work txn(conn);
    time_t now = time(0);
    txn.parameterized
    ("update Builds set finished = 1, busy = 0, buildStatus = $2, startTime = $3, stopTime = $3 where id = $1")
    (build->id)
    ((int) bsUnsupported)
    (now).exec();
    createBuildStep(txn, now, build, r, "", bssUnsupported);
    txn.commit();
    break;
    }
  • replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 521
    [4.11403][3.798:1282](),[3.1282][4.11403:11435](),[4.11403][4.11403:11435]()
    if (!allSupported) {
    printMsg(lvlError, format("aborting unsupported build %1%") % build->id);
    pqxx::work txn(conn);
    txn.parameterized
    ("update Builds set finished = 1, busy = 0, buildStatus = $2, startTime = $3, stopTime = $3, errorMsg = $4 where id = $1")
    (build->id)
    ((int) bsAborted)
    (time(0))
    ("unsupported system type").exec();
    txn.commit();
    continue;
    }
    [4.11403]
    [4.11435]
    if (!allSupported) continue;
  • edit in src/root/build.tt at line 59
    [16.197]
    [4.20001]
    [% ELSIF step.status == 9 %]
    <span class="error">Unsupported system type</span>
  • replacement in src/root/common.tt at line 201
    [2.343][4.0:33](),[4.620][4.0:33](),[4.572][4.0:33]()
    [% ELSIF buildstatus == 3 %]
    [2.343]
    [2.344]
    [% ELSIF buildstatus == 3 || buildstatus == 9 %]
  • edit in src/root/common.tt at line 232
    [4.2353]
    [4.2353]
    [% ELSIF buildstatus == 9 %]
    <span class="error">Unsupported system type</span>
  • edit in src/sql/hydra.sql at line 183
    [19.19738]
    [20.4847]
    -- 9 = unsupported system type
  • edit in src/sql/hydra.sql at line 231
    [16.1051]
    [16.1051]
    -- 9 = unsupported system type