hydra-eval-jobs: Don't go into an infinite recursion

[?]
Oct 4, 2012, 6:31 PM
FGUL3HAZDA6JGTAZNCJZIIKALZ4VMVTXYWFNSXWDYR5LXNGCO3RAC

Dependencies

  • [2] AEFNBIIW * Merge the GC branch.
  • [3] YGRLM2SK * Export all relevant info about the derivation.
  • [4] 4N5APGRG * Start of a helper tool to evaluate job expressions efficiently.
  • [5] KD5237CU * eval-jobs now efficiently evaluates all Hydra jobs from a
  • [6] 4LWGZL33
  • [7] 7YCFGMZB * Report evaluation errors per job, and don't bail out if a job fails
  • [8] 4XR2A7QD * Fix building hydra_eval_jobs against the sqlite branch.
  • [9] WMWBCZPR
  • [10] SM5M2J3A Pass inputs to release expressions using -I
  • [11] AEKIREIH * Updated hydra_eval_jobs for the new evaluator.

Change contents

  • replacement in src/c/hydra-eval-jobs.cc at line 19
    [3.494][3.494:541]()
    std::cout << "Syntax: eval-jobs <expr>\n";
    [3.494]
    [3.71]
    std::cout << "Syntax: hydra-eval-jobs <expr>\n";
  • edit in src/c/hydra-eval-jobs.cc at line 112
    [3.1576]
    [2.979]
    checkInterrupt();
  • replacement in src/c/hydra-eval-jobs.cc at line 170
    [3.1174][3.1774:1828](),[3.1828][2.981:1131]()
    foreach (Bindings::iterator, i, *v.attrs)
    findJobs(state, doc, argsUsed, argsLeft, *i->value,
    (attrPath.empty() ? "" : attrPath + ".") + (string) i->name);
    [3.1174]
    [3.1402]
    if (!state.isDerivation(v)) {
    foreach (Bindings::iterator, i, *v.attrs)
    findJobs(state, doc, argsUsed, argsLeft, *i->value,
    (attrPath.empty() ? "" : attrPath + ".") + (string) i->name);
    }
  • replacement in src/c/hydra-eval-jobs.cc at line 268
    [3.1023][3.1023:1055]()
    string programId = "eval-jobs";
    [3.1023]
    string programId = "hydra-eval-jobs";