summaryrefslogtreecommitdiff
path: root/test/buildtool/graph_traverser
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-16 17:30:36 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-19 09:50:37 +0200
commit616cd734e76b7f4c9666bbaeaa6820fa9980816d (patch)
treead9f43d86c3dc88b61c213625c625dbf20f7a167 /test/buildtool/graph_traverser
parent4e2e6585441cc69b2c2ebc29b9ca95e1804b5053 (diff)
downloadjustbuild-616cd734e76b7f4c9666bbaeaa6820fa9980816d.tar.gz
Pass RetryConfig instance to ApiBundle
Also store a const ref for usage in setting up a fresh ApiBundle during target serve.
Diffstat (limited to 'test/buildtool/graph_traverser')
-rw-r--r--test/buildtool/graph_traverser/TARGETS1
-rw-r--r--test/buildtool/graph_traverser/graph_traverser.test.hpp11
2 files changed, 12 insertions, 0 deletions
diff --git a/test/buildtool/graph_traverser/TARGETS b/test/buildtool/graph_traverser/TARGETS
index 23a2814f..4b1a531f 100644
--- a/test/buildtool/graph_traverser/TARGETS
+++ b/test/buildtool/graph_traverser/TARGETS
@@ -7,6 +7,7 @@
, ["@", "json", "", "json"]
, ["@", "src", "src/buildtool/auth", "auth"]
, ["@", "src", "src/buildtool/common", "common"]
+ , ["@", "src", "src/buildtool/common/remote", "retry_config"]
, ["@", "src", "src/buildtool/execution_api/local", "config"]
, ["@", "src", "src/buildtool/execution_api/remote", "config"]
, ["@", "src", "src/buildtool/file_system", "file_system_manager"]
diff --git a/test/buildtool/graph_traverser/graph_traverser.test.hpp b/test/buildtool/graph_traverser/graph_traverser.test.hpp
index b0187392..86be3110 100644
--- a/test/buildtool/graph_traverser/graph_traverser.test.hpp
+++ b/test/buildtool/graph_traverser/graph_traverser.test.hpp
@@ -29,6 +29,7 @@
#include "gsl/gsl"
#include "nlohmann/json.hpp"
#include "src/buildtool/auth/authentication.hpp"
+#include "src/buildtool/common/remote/retry_config.hpp"
#include "src/buildtool/common/statistics.hpp"
#include "src/buildtool/execution_api/common/api_bundle.hpp"
#include "src/buildtool/execution_api/local/config.hpp"
@@ -174,6 +175,7 @@ class TestProject {
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser const gt{clargs.gtargs,
p.GetRepoConfig(),
@@ -206,6 +208,7 @@ class TestProject {
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser const gt_get_exec{clargs_exec.gtargs,
p.GetRepoConfig(),
@@ -250,6 +253,7 @@ class TestProject {
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser const gt{clargs.gtargs,
p.GetRepoConfig(),
@@ -289,6 +293,7 @@ class TestProject {
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser const gt{clargs.gtargs,
p.GetRepoConfig(),
@@ -348,6 +353,7 @@ class TestProject {
&local_exec_config,
full_hello_world.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser const gt_upload{clargs_update_cpp.gtargs,
full_hello_world.GetRepoConfig(),
@@ -413,6 +419,7 @@ static void TestBlobsUploadedAndUsed(
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser gt{clargs.gtargs,
p.GetRepoConfig(),
@@ -460,6 +467,7 @@ static void TestEnvironmentVariablesSetAndUsed(
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser gt{clargs.gtargs,
p.GetRepoConfig(),
@@ -507,6 +515,7 @@ static void TestTreesUsed(
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser gt{clargs.gtargs,
p.GetRepoConfig(),
@@ -554,6 +563,7 @@ static void TestNestedTreesUsed(
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
GraphTraverser gt{clargs.gtargs,
p.GetRepoConfig(),
@@ -600,6 +610,7 @@ static void TestFlakyHelloWorldDetected(
&local_exec_config,
p.GetRepoConfig(),
auth,
+ &RetryConfig::Instance(),
remote_config};
{