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 the use of substitutes on builders configurable #1158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dasJ
Copy link
Member

@dasJ dasJ commented Feb 13, 2022

No description provided.

@grahamc
Copy link
Member

grahamc commented Feb 14, 2022

Looks good, can you document this option? One caveat here is users need to be very careful that the build machines do not substitute from a caching proxy. For example, consider a Hydra which pushes paths to S3, and serves them through CloudFront. Builders must not be configured to look at CloudFront for store paths, and must directly talk to S3.

@dasJ
Copy link
Member Author

dasJ commented Feb 14, 2022

Is sounds pretty much like the issue we were solving with this option :D

@dasJ
Copy link
Member Author

dasJ commented Feb 14, 2022

Any suggestion where to document this option?

@grahamc
Copy link
Member

grahamc commented Feb 14, 2022

The main hydra should also not point to the cache :).

@grahamc
Copy link
Member

grahamc commented Feb 14, 2022

Maybe start an (anemic) section here for "queue runner settings": https://github.com/NixOS/hydra/blob/master/doc/manual/src/configuration.md#statsd-configuration ?

@dasJ
Copy link
Member Author

dasJ commented Feb 14, 2022

For reference:

hydra-queue-runner.cc:    , maxUnsupportedTime(config->getIntOption("max_unsupported_time", 0))
hydra-queue-runner.cc:    , dbPool(config->getIntOption("max_db_connections", 128))
hydra-queue-runner.cc:    , maxOutputSize(config->getIntOption("max_output_size", 2ULL << 30))
hydra-queue-runner.cc:    , maxLogSize(config->getIntOption("max_log_size", 64ULL << 20))
hydra-queue-runner.cc:    , uploadLogsToBinaryCache(config->getBoolOption("upload_logs_to_binary_cache", false))
hydra-queue-runner.cc:    , rootsDir(config->getStrOption("gc_roots_dir", fmt("%s/gcroots/per-user/%s/hydra-roots", settings.nixStateDir, getEnvOrDie("LOGNAME"))))
hydra-queue-runner.cc:    if (config->getStrOption("store_mode") != "")
hydra-queue-runner.cc:    if (config->getStrOption("binary_cache_dir") != "")
hydra-queue-runner.cc:    if (config->getStrOption("binary_cache_s3_bucket") != "")
hydra-queue-runner.cc:    if (config->getStrOption("binary_cache_secret_key_file") != "")
hydra-queue-runner.cc:    auto storeUri = config->getStrOption("store_uri");
hydra-queue-runner.cc:    useSubstitutes = config->getBoolOption("use-substitutes", false);
hydra-queue-runner.cc:    useSubstitutesOnRemoteBuilders = config->getBoolOption("use_substitutes_on_remote_builders", true);
hydra-queue-runner.cc:    for (auto & s : tokenizeString<Strings>(config->getStrOption("xxx-jobset-repeats"))) {

@grahamc
Copy link
Member

grahamc commented Feb 14, 2022

Well, it would be amazing if you made a passing note of each of those. And, I'm not going to block this PR on it.

@dasJ dasJ force-pushed the feat/subst-on-builders-option branch from 147b9c7 to 2076f50 Compare February 20, 2022 17:29
@dasJ
Copy link
Member Author

dasJ commented Feb 20, 2022

Like this?

@dasJ dasJ force-pushed the feat/subst-on-builders-option branch 2 times, most recently from a386d82 to 25f7e6e Compare February 20, 2022 17:32
@ajs124 ajs124 force-pushed the feat/subst-on-builders-option branch from 25f7e6e to 7a78c06 Compare March 31, 2022 00:37
@dasJ dasJ force-pushed the feat/subst-on-builders-option branch 3 times, most recently from 70a3f8b to 1b4b7da Compare March 8, 2024 15:33
@dasJ dasJ force-pushed the feat/subst-on-builders-option branch from 1b4b7da to b26be13 Compare March 8, 2024 15:37
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.

2 participants