diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-03 17:05:53 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:28 +0200 |
commit | 665d620645f27dcc6d8124bbfcb9ae6681d3fc4a (patch) | |
tree | fd23e80ac35101b8d5a4a9082a80ccd606fafb39 /mod/mod-ci-github.cxx | |
parent | 4f909c11a4d7e2f4d87fcb55cd6f5c8e72d4e012 (diff) |
Post-review changes
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r-- | mod/mod-ci-github.cxx | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index 142878b..5401bc7 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -488,8 +488,8 @@ namespace brep // creating this conclusion check run later. But let's not complicate // things for now. // - fail << "unable to create conclusion check run for check suite " - << cs.check_suite.node_id; + fail << "check suite " << cs.check_suite.node_id + << ": unable to create conclusion check run"; } } @@ -506,9 +506,7 @@ namespace brep start (error, warn, verb_ ? &trace : nullptr, - tenant_service (move (cs.check_suite.node_id), - "ci-github", - sd.json ()), + tenant_service (cs.check_suite.node_id, "ci-github", sd.json ()), move (rl), vector<package> {}, nullopt, /* client_ip */ @@ -544,7 +542,11 @@ namespace brep l3 ([&]{trace << "updated check_run { " << cr << " }";}); } else - fail << "unable to update check_run { " << cr << " }"; // @@ + { + fail << "check suite " << cs.check_suite.node_id + << ": unable to update conclusion check_run " + << *sd.conclusion_node_id; + } } return true; @@ -705,7 +707,10 @@ namespace brep chrono::seconds (0) /* delay */)); if (!tid) - fail << "unable to create unloaded CI request"; + { + fail << "pull request " << pr.pull_request.node_id + << ": unable to create unloaded CI request"; + } return true; } @@ -1505,7 +1510,7 @@ namespace brep } else { - if (scr.state != build_state::built) + if (cr.state != build_state::built) unbuilt = true; } @@ -1749,7 +1754,9 @@ namespace brep { // Nothing we can do here except log the error. // - error << "unable to update check_run { " << cr << " }"; // @@ + error << "check suite " << ts.id + << ": unable to update conclusion check run " + << *sd.conclusion_node_id; } } } |