use HYDRA_DATA/hydra.conf as default location for hydra.conf

[?]
Mar 7, 2011, 3:06 PM
RBGYFVWXQNXAZ57534WQQJH6PYW7PU6YZLSCLXDZYXACXDA2D3NQC

Dependencies

  • [2] FR7XCVLK
  • [3] 6US6LEC7 * Add a NarSize field to Hydra manifests. This allows nix-env
  • [4] IDFJXJHW revert commit 26130, use hardcoded default value for HYDRA_DATA (/var/lib/hydra)
  • [5] A63IHCMX * Register GC roots properly.
  • [6] 3BKF6P72 * Use Nix's negative caching.
  • [7] N22GPKYT * Put info about logs / build products in the DB.
  • [8] BDSD2JLV * Speed up manifest generation.
  • [9] LZO3C2KI * Hack around those SQLite timeouts: just retry the transaction.
  • [10] IN272KZW * Automatically keep all builds in the latest successful release in
  • [11] CXRCPDSQ * added support for twitter notification
  • [12] ZDENAYQI * email notification of evaluation errors to project owner (if desired)
  • [13] QBQSQOSY hydra: moved getbuildlog
  • [14] TULPZ62Y * Perform builds in parallel.
  • [15] RFE6T5LG * Store jobset evaluations in the database explicitly. This includes
  • [16] 6KCP6ODP * Get the URI for use in notification mails from the Hydra config
  • [17] AFTXA575 * $HYDRA_DATA environment variable.
  • [*] 2GK5DOU7 * Downloading closures.
  • [*] 7YBYT2LQ

Change contents

  • replacement in src/lib/Hydra/Helper/Nix.pm at line 13
    [3.107][5.536:587](),[5.30][5.536:587]()
    getHydraPath getHydraDBPath openHydraDB txn_do
    [3.107]
    [5.665]
    getHydraPath getHydraDBPath openHydraDB getHydraConf txn_do
  • replacement in src/lib/Hydra/Helper/Nix.pm at line 28
    [4.84][4.84:153]()
    die "The HYDRA_DATA directory does not exist!\n" unless -d $dir;
    [4.84]
    [5.503]
    die "The HYDRA_DATA directory ($dir) does not exist!\n" unless -d $dir;
  • edit in src/lib/Hydra/Helper/Nix.pm at line 30
    [5.520]
    [5.520]
    }
    sub getHydraConf {
    my $conf = $ENV{"HYDRA_CONF"} || (getHydraPath . "/hydra.conf");
    die "The HYDRA_CONF file ($conf) does not exist!\n" unless -f $conf;
    return $conf;
  • replacement in src/script/hydra_build.pl.in at line 26
    [5.24][2.0:64]()
    my %config = new Config::General($ENV{"HYDRA_CONFIG"})->getall;
    [5.24]
    [5.0]
    my %config = new Config::General(getHydraConf)->getall;
  • edit in src/script/hydra_build.pl.in at line 28
    [5.1][5.1:2]()
  • replacement in src/script/hydra_evaluator.pl.in at line 21
    [5.1793][5.420:484]()
    my %config = new Config::General($ENV{"HYDRA_CONFIG"})->getall;
    [5.1793]
    [5.5400]
    my %config = new Config::General(getHydraConf)->getall;