resync hydra with upstream #4

Merged
ahuston-0 merged 36 commits from feature/resync into add-gitea-pulls 2025-04-09 11:38:41 -04:00
15 changed files with 57 additions and 68 deletions
Showing only changes of commit 9c022848cf - Show all commits

View File

@ -12,20 +12,6 @@ nix_util_dep = dependency('nix-util', required: true)
nix_store_dep = dependency('nix-store', required: true) nix_store_dep = dependency('nix-store', required: true)
nix_main_dep = dependency('nix-main', required: true) nix_main_dep = dependency('nix-main', required: true)
# Nix need extra flags not provided in its pkg-config files.
nix_dep = declare_dependency(
dependencies: [
nix_util_dep,
nix_store_dep,
nix_main_dep,
],
compile_args: [
'-include', 'nix/config-util.hh',
'-include', 'nix/config-store.hh',
'-include', 'nix/config-main.hh',
],
)
pqxx_dep = dependency('libpqxx', required: true) pqxx_dep = dependency('libpqxx', required: true)
prom_cpp_core_dep = dependency('prometheus-cpp-core', required: true) prom_cpp_core_dep = dependency('prometheus-cpp-core', required: true)

View File

@ -1,8 +1,8 @@
#include "db.hh" #include "db.hh"
#include "hydra-config.hh" #include "hydra-config.hh"
#include "pool.hh" #include <nix/util/pool.hh>
#include "shared.hh" #include <nix/main/shared.hh>
#include "signals.hh" #include <nix/util/signals.hh>
#include <algorithm> #include <algorithm>
#include <thread> #include <thread>

View File

@ -2,7 +2,8 @@ hydra_evaluator = executable('hydra-evaluator',
'hydra-evaluator.cc', 'hydra-evaluator.cc',
dependencies: [ dependencies: [
libhydra_dep, libhydra_dep,
nix_dep, nix_util_dep,
nix_main_dep,
pqxx_dep, pqxx_dep,
], ],
install: true, install: true,

View File

@ -5,20 +5,20 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include "build-result.hh" #include <nix/store/build-result.hh>
#include "path.hh" #include <nix/store/path.hh>
#include "legacy-ssh-store.hh" #include <nix/store/legacy-ssh-store.hh>
#include "serve-protocol.hh" #include <nix/store/serve-protocol.hh>
#include "serve-protocol-impl.hh" #include <nix/store/serve-protocol-impl.hh>
#include "state.hh" #include "state.hh"
#include "current-process.hh" #include <nix/util/current-process.hh>
#include "processes.hh" #include <nix/util/processes.hh>
#include "util.hh" #include <nix/util/util.hh>
#include "serve-protocol.hh" #include <nix/store/serve-protocol.hh>
#include "serve-protocol-impl.hh" #include <nix/store/serve-protocol-impl.hh>
#include "ssh.hh" #include <nix/store/ssh.hh>
#include "finally.hh" #include <nix/util/finally.hh>
#include "url.hh" #include <nix/util/url.hh>
using namespace nix; using namespace nix;

View File

@ -1,7 +1,7 @@
#include "hydra-build-result.hh" #include "hydra-build-result.hh"
#include "store-api.hh" #include <nix/store/store-api.hh>
#include "util.hh" #include <nix/util/util.hh>
#include "source-accessor.hh" #include <nix/util/source-accessor.hh>
#include <regex> #include <regex>

View File

@ -2,8 +2,8 @@
#include "state.hh" #include "state.hh"
#include "hydra-build-result.hh" #include "hydra-build-result.hh"
#include "finally.hh" #include <nix/util/finally.hh>
#include "binary-cache-store.hh" #include <nix/store/binary-cache-store.hh>
using namespace nix; using namespace nix;

View File

@ -2,9 +2,9 @@
#include <memory> #include <memory>
#include "hash.hh" #include <nix/util/hash.hh>
#include "derivations.hh" #include <nix/store/derivations.hh>
#include "store-api.hh" #include <nix/store/store-api.hh>
#include "nar-extractor.hh" #include "nar-extractor.hh"
struct BuildProduct struct BuildProduct

View File

@ -11,16 +11,16 @@
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include "signals.hh" #include <nix/util/signals.hh>
#include "state.hh" #include "state.hh"
#include "hydra-build-result.hh" #include "hydra-build-result.hh"
#include "store-api.hh" #include <nix/store/store-api.hh>
#include "remote-store.hh" #include <nix/store/remote-store.hh>
#include "globals.hh" #include <nix/store/globals.hh>
#include "hydra-config.hh" #include "hydra-config.hh"
#include "s3-binary-cache-store.hh" #include <nix/store/s3-binary-cache-store.hh>
#include "shared.hh" #include <nix/main/shared.hh>
using namespace nix; using namespace nix;
using nlohmann::json; using nlohmann::json;

View File

@ -13,7 +13,9 @@ hydra_queue_runner = executable('hydra-queue-runner',
srcs, srcs,
dependencies: [ dependencies: [
libhydra_dep, libhydra_dep,
nix_dep, nix_util_dep,
nix_store_dep,
nix_main_dep,
pqxx_dep, pqxx_dep,
prom_cpp_core_dep, prom_cpp_core_dep,
prom_cpp_pull_dep, prom_cpp_pull_dep,

View File

@ -1,6 +1,6 @@
#include "nar-extractor.hh" #include "nar-extractor.hh"
#include "archive.hh" #include <nix/util/archive.hh>
#include <unordered_set> #include <unordered_set>

View File

@ -1,9 +1,9 @@
#pragma once #pragma once
#include "source-accessor.hh" #include <nix/util/source-accessor.hh>
#include "types.hh" #include <nix/util/types.hh>
#include "serialise.hh" #include <nix/util/serialise.hh>
#include "hash.hh" #include <nix/util/hash.hh>
struct NarMemberData struct NarMemberData
{ {

View File

@ -1,7 +1,7 @@
#include "state.hh" #include "state.hh"
#include "hydra-build-result.hh" #include "hydra-build-result.hh"
#include "globals.hh" #include <nix/store/globals.hh>
#include "parsed-derivations.hh" #include <nix/store/parsed-derivations.hh>
#include <cstring> #include <cstring>

View File

@ -13,18 +13,18 @@
#include "db.hh" #include "db.hh"
#include "derivations.hh" #include <nix/store/derivations.hh>
#include "derivation-options.hh" #include <nix/store/derivation-options.hh>
#include "pathlocks.hh" #include <nix/store/pathlocks.hh>
#include "pool.hh" #include <nix/util/pool.hh>
#include "build-result.hh" #include <nix/store/build-result.hh>
#include "store-api.hh" #include <nix/store/store-api.hh>
#include "sync.hh" #include <nix/util/sync.hh>
#include "nar-extractor.hh" #include "nar-extractor.hh"
#include "serve-protocol.hh" #include <nix/store/serve-protocol.hh>
#include "serve-protocol-impl.hh" #include <nix/store/serve-protocol-impl.hh>
#include "serve-protocol-connection.hh" #include <nix/store/serve-protocol-connection.hh>
#include "machines.hh" #include <nix/store/machines.hh>
typedef unsigned int BuildID; typedef unsigned int BuildID;

View File

@ -2,8 +2,8 @@
#include <pqxx/pqxx> #include <pqxx/pqxx>
#include "environment-variables.hh" #include <nix/util/environment-variables.hh>
#include "util.hh" #include <nix/util/util.hh>
struct Connection : pqxx::connection struct Connection : pqxx::connection

View File

@ -2,8 +2,8 @@
#include <map> #include <map>
#include "file-system.hh" #include <nix/util/file-system.hh>
#include "util.hh" #include <nix/util/util.hh>
struct HydraConfig struct HydraConfig
{ {