Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make PathInput plugin cache validity configurable #775

Merged
merged 1 commit into from Jun 5, 2020
Merged

Make PathInput plugin cache validity configurable #775

merged 1 commit into from Jun 5, 2020

Conversation

knl
Copy link
Contributor

@knl knl commented Jun 4, 2020

PathInput plugin keeps a cache of path evaluations. This cache is simple, and
path is not checked more than once every N seconds, where N=30. The caching is
there to avoid expensive calls to nix-store --add.

This change makes the validity period configurable. The main use case is
api-test.pl which was implemented wrong for a while, as the invocation of
hydra-eval-jobset would return the previous evaluation, claiming there are no
changes. The test has been fixed to check better for a new evaluation.

PathInput plugin keeps a cache of path evaluations. This cache is simple, and
path is not checked more than once every N seconds, where N=30. The caching is
there to avoid expensive calls to `nix-store --add`.

This change makes the validity period configurable. The main use case is
`api-test.pl` which was implemented wrong for a while, as the invocation of
`hydra-eval-jobset` would return the previous evaluation, claiming there are no
changes. The test has been fixed to check better for a new evaluation.
@knl knl marked this pull request as ready for review June 4, 2020 14:32
@edolstra edolstra merged commit 56b1660 into NixOS:master Jun 5, 2020
kquick added a commit to kquick/hydra that referenced this pull request Jun 9, 2020
@kquick
Copy link
Contributor

kquick commented Jun 10, 2020

@edolstra, it would be nice to combine this with #602 if that one could be merged as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants