Hydra: Add support for maxSilent meta attribute (also already added timeout, but not implemented the actual timeout for the build yet)

[?]
May 26, 2010, 8:03 AM
ZTQEU5QSAJYC66QQABJLVR7EEZWEIW6UMQMSIEP2KRZH5PGEB53QC

Dependencies

  • [2] 2IEFMER5 * Add --fallback to prevent problems with obsolete substitutes.
  • [3] RFE6T5LG * Store jobset evaluations in the database explicitly. This includes
  • [4] A63IHCMX * Register GC roots properly.
  • [5] SJLEZFC4 check getHydraPath in stead of Envvar HYDRA_DBI directly
  • [6] 7YBYT2LQ
  • [7] L2E6EVE2 * Merged the Build and Job tables.
  • [8] CLJQCY2X * Store info about all the build actions and allow them to be
  • [*] 4N5APGRG * Start of a helper tool to evaluate job expressions efficiently.
  • [*] HVXL2XUZ
  • [*] 5MNUNZWR * Store meta.maintainers.
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate
  • [*] 3XTHEUMP * Implemented the clone feature.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] JM3DPYOM generated schema with new dbix class schema loader, grrrrrr
  • [*] AHTEIK7G * Added a maintainers field to the Builds table.
  • [*] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [*] N22GPKYT * Put info about logs / build products in the DB.
  • [*] S6OISBQ3 * Mark the "current" builds in a jobset, i.e. those corresponding to

Change contents

  • edit in src/c/hydra_eval_jobs.cc at line 129
    [11.1131]
    [11.1131]
  • edit in src/c/hydra_eval_jobs.cc at line 132
    [11.1269]
    [12.0]
    int timeout = queryMetaFieldInt(meta, "timeout", 36000);
    xmlAttrs["timeout"] = int2String(timeout);
  • edit in src/c/hydra_eval_jobs.cc at line 136
    [12.1]
    [12.1]
    int maxsilent = queryMetaFieldInt(meta, "maxSilent", 3600);
    xmlAttrs["maxSilent"] = int2String(maxsilent);
  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 544
    [14.5581]
    [14.5581]
    , maxsilent => $buildInfo->{maxSilent}
    , timeout => $buildInfo->{timeout}
  • edit in src/lib/Hydra/Schema/Builds.pm at line 128
    [16.8491]
    [16.8491]
    is_nullable: 1
    size: undef
    =head2 maxsilent
    data_type: integer
    default_value: 3600
    is_nullable: 1
    size: undef
    =head2 timeout
    data_type: integer
    default_value: 36000
  • edit in src/lib/Hydra/Schema/Builds.pm at line 275
    [17.8758]
    [17.8758]
    is_nullable => 1,
    size => undef,
    },
    "maxsilent",
    {
    data_type => "integer",
    default_value => 3600,
    is_nullable => 1,
    size => undef,
    },
    "timeout",
    {
    data_type => "integer",
    default_value => 36000,
  • replacement in src/lib/Hydra/Schema/Builds.pm at line 466
    [3.1182][3.1182:1324]()
    # Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-03-05 13:07:46
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sE2/zTcfETC8Eahh6NQDZA
    [3.1182]
    [3.1324]
    # Created by DBIx::Class::Schema::Loader v0.05000 @ 2010-05-26 09:25:50
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OApfteImw84nYhUvSUB4FA
  • edit in src/root/build.tt at line 276
    [18.9366]
    [18.9366]
    </tr>
    <tr>
    <th>Max silent / timeout:</th>
    <td>[% build.maxsilent %]s / [% build.timeout %]s</td>
  • replacement in src/script/hydra_build.pl at line 212
    [4.3230][4.7367:7437]()
    my $drvPath = $build->drvpath;
    my $outPath = $build->outpath;
    [4.3230]
    [4.3296]
    my $drvPath = $build->drvpath;
    my $outPath = $build->outpath;
    my $maxsilent = $build->maxsilent;
    my $timeout = $build->timeout;
  • replacement in src/script/hydra_build.pl at line 239
    [2.52][2.52:116]()
    "--max-silent-time 3600 --keep-going --fallback " .
    [2.52]
    [2.116]
    "--max-silent-time $maxsilent --keep-going --fallback " .
  • edit in src/sql/hydra.sql at line 146
    [17.18121]
    [20.5867]
    maxsilent integer default 3600, -- meta.maxsilent
    timeout integer default 36000, -- meta.timeout