From 82d71e17ce34fd6f2dae0af21edb935f50ed6416 Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Tue, 19 Mar 2024 17:31:32 +0200 Subject: Pass diagnostics objects to CI state transition callbacks --- mod/mod-ci-github.cxx | 18 +++++++++++++++--- mod/mod-ci-github.hxx | 18 +++++++++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) (limited to 'mod') 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 (const brep::tenant_service&)> brep::ci_github:: build_queued (const tenant_service& ts, const vector& bs, - optional /* initial_state */) const + optional /* initial_state */, + const fail_mark& fail, + const basic_mark& error, + const basic_mark& warn, + const basic_mark& trace) const { HANDLER_DIAG; @@ -964,7 +968,11 @@ namespace brep } function (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&, + const basic_mark&, + const basic_mark&, + const basic_mark&) const { // return [&b] (const tenant_service& ts) // { @@ -984,7 +992,11 @@ namespace brep } function (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&, + 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 (const tenant_service&)> build_queued (const tenant_service&, const vector&, - optional initial_state) const override; + optional initial_state, + const fail_mark& fail, + const basic_mark& error, + const basic_mark& warn, + const basic_mark& trace) const override; virtual function (const tenant_service&)> - build_building (const tenant_service&, const build&) const override; + build_building (const tenant_service&, const build&, + const fail_mark& fail, + const basic_mark& error, + const basic_mark& warn, + const basic_mark& trace) const override; virtual function (const tenant_service&)> - build_built (const tenant_service&, const build&) const override; + build_built (const tenant_service&, const build&, + const fail_mark& fail, + const basic_mark& error, + const basic_mark& warn, + const basic_mark& trace) const override; private: virtual void -- cgit v1.1