Make PathInput plugin cache validity configurable
[?]
Jun 4, 2020, 10:15 AM
KSFJOFICNKAPJPEAD2BHLHXEKU3PQIBL4LL2IK3ONY6KJDXQZPVACDependencies
- [2]
NP7IOJ4QFlesh out the API a bit - [3]
MIMHJSZKAdd json output for the search API endpoint - [4]
RWNXH3H2lastModified -> lastModifiedDate - [5]
WYXO75RJAdd support for fetching URLs as inputs. - [6]
LZVO64YGMerge in the first bits of the API work - [7]
7ECJWNVXCleanup Project model - [8]
MMHOJIGDTest whether incorrect passwords are rejected - [9]
Z3JVFE2RConvert all tests to the Python DSL - [10]
YI3BZG5NCleanup Jobset serialization - [11]
JAH3UPWASupport revision control systems via plugins - [12]
4VYSDP4IAdd eager fetching of relations and enable that for jobset->jobsetinputs - [13]
ZIIXICG7Make the outputs' outpaths available via the Build JSON API - [14]
2DGIP6L4Cleanup build serialization - [15]
SYLVCTT6Start api cleanup with the User model - [16]
MQYHIUEECleanup eval serialization
Change contents
- replacement in flake.nix at line 201
machine = hydraServer;machine = { pkgs, ... }: {imports = [ hydraServer ];# No caching for PathInput plugin, otherwise we get wrong values# (as it has a 30s window where no changes to the file are considered).services.hydra-dev.extraConfig = ''path_input_cache_validity_seconds = 0'';}; - edit in src/lib/Hydra/Plugin/PathInput.pm at line 24
my $timeout = $self->{config}->{path_input_cache_validity_seconds} // 30; - replacement in src/lib/Hydra/Plugin/PathInput.pm at line 29
{srcpath => $uri, lastseen => {">", $timestamp - 30}},{srcpath => $uri, lastseen => {">", $timestamp - $timeout}}, - replacement in tests/api-test.pl at line 3
use Test::Simple tests => 19;use Test::Simple tests => 20; - edit in tests/api-test.pl at line 62
ok(scalar(@$evals) == 2, "Changing a jobset source creates the second evaluation");