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

[Backport 2.19-maintenance] Make StoreConfig::getDefaultSystemFeatures a static method #9851

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

github-actions[bot]
Copy link

Automatic backport to 2.19-maintenance, triggered by a label in #9848.

This makes something in Hydra bit simpler. If someday the default
depends on the other config options, we can always change it back.

(cherry picked from commit a9e10a1)
@Ericson2314
Copy link
Member

@SuperSandro2000 encountered a small linking issue that this will help with. This change I am pretty sure is API preserving (though not ABI preserving) because you can still call static methods with obj.method(...).

@Ericson2314 Ericson2314 reopened this Jan 25, 2024
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Jan 25, 2024
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected when applying the following to hydra:

diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc
index 1cbcafea..71138c6f 100644
--- a/src/hydra-queue-runner/hydra-queue-runner.cc
+++ b/src/hydra-queue-runner/hydra-queue-runner.cc
@@ -227,7 +227,7 @@ void State::monitorMachinesFile()
         parseMachines("localhost " +
             (settings.thisSystem == "x86_64-linux" ? "x86_64-linux,i686-linux" : settings.thisSystem.get())
             + " - " + std::to_string(settings.maxBuildJobs) + " 1 "
-            + concatStringsSep(",", (LocalStoreConfig { {} }).getDefaultSystemFeatures()));
+            + concatStringsSep(",", StoreConfig::getDefaultSystemFeatures()));
         machinesReadyLock.unlock();
         return;
     }

@Ericson2314 Ericson2314 merged commit 2c4bb93 into 2.19-maintenance Jan 25, 2024
9 checks passed
@edolstra edolstra deleted the backport-9848-to-2.19-maintenance branch March 29, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
store Issues and pull requests concerning the Nix store
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants