diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-03-19 17:31:32 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-05 09:12:46 +0200 |
commit | 82d71e17ce34fd6f2dae0af21edb935f50ed6416 (patch) | |
tree | 610b82bba7901b702ae89ce78fbf06d923b13482 | |
parent | 3354150fe59d3d7b28193ff1e39d403f6fdf5130 (diff) |
Pass diagnostics objects to CI state transition callbacks
-rw-r--r-- | mod/mod-ci-github.cxx | 18 | ||||
-rw-r--r-- | mod/mod-ci-github.hxx | 18 |
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 |