aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-03-19 17:31:32 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-10-15 09:05:27 +0200
commit492c26b60a5e17c5f405e7f5a7ecd922ccafca66 (patch)
tree4d78cb455611f376baab9ca88d9f4bb6204111cd /mod
parent79dc7754bf9842790f4aa4686ae5d9440fd158ff (diff)
Pass diagnostics objects to CI state transition callbacks
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-ci-github.cxx18
-rw-r--r--mod/mod-ci-github.hxx18
2 files changed, 30 insertions, 6 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx
index 38f9cd7..5e041bb 100644
--- a/mod/mod-ci-github.cxx
+++ b/mod/mod-ci-github.cxx
@@ -855,7 +855,11 @@ namespace brep
function<optional<string> (const brep::tenant_service&)> brep::ci_github::
build_queued (const tenant_service& ts,
const vector<build>& bs,
- optional<build_state> /* initial_state */) const
+ optional<build_state> /* initial_state */,
+ const fail_mark<server_error>& fail,
+ const basic_mark& error,
+ const basic_mark& warn,
+ const basic_mark& trace) const
{
HANDLER_DIAG;
@@ -964,7 +968,11 @@ namespace brep
}
function<optional<string> (const brep::tenant_service&)> brep::ci_github::
- build_building (const tenant_service&, const build&) const
+ build_building (const tenant_service&, const build&,
+ const fail_mark<server_error>&,
+ const basic_mark&,
+ const basic_mark&,
+ const basic_mark&) const
{
// return [&b] (const tenant_service& ts)
// {
@@ -984,7 +992,11 @@ namespace brep
}
function<optional<string> (const brep::tenant_service&)> brep::ci_github::
- build_built (const tenant_service&, const build&) const
+ build_built (const tenant_service&, const build&,
+ const fail_mark<server_error>&,
+ const basic_mark&,
+ const basic_mark&,
+ const basic_mark&) const
{
// return [&b] (const tenant_service& ts)
// {
diff --git a/mod/mod-ci-github.hxx b/mod/mod-ci-github.hxx
index 433ae3d..713eb4b 100644
--- a/mod/mod-ci-github.hxx
+++ b/mod/mod-ci-github.hxx
@@ -168,13 +168,25 @@ namespace brep
virtual function<optional<string> (const tenant_service&)>
build_queued (const tenant_service&,
const vector<build>&,
- optional<build_state> initial_state) const override;
+ optional<build_state> initial_state,
+ const fail_mark<server_error>& fail,
+ const basic_mark& error,
+ const basic_mark& warn,
+ const basic_mark& trace) const override;
virtual function<optional<string> (const tenant_service&)>
- build_building (const tenant_service&, const build&) const override;
+ build_building (const tenant_service&, const build&,
+ const fail_mark<server_error>& fail,
+ const basic_mark& error,
+ const basic_mark& warn,
+ const basic_mark& trace) const override;
virtual function<optional<string> (const tenant_service&)>
- build_built (const tenant_service&, const build&) const override;
+ build_built (const tenant_service&, const build&,
+ const fail_mark<server_error>& fail,
+ const basic_mark& error,
+ const basic_mark& warn,
+ const basic_mark& trace) const override;
private:
virtual void