aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-06-07 10:17:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-06-07 10:17:30 +0200
commitf24e48fef5be97f53225ce3a115f35a419b3cdbd (patch)
treec77d36568974b111b958702228fd5c24acada84a /mod/mod-ci-github.cxx
parentcbe3a565001efe2324b65f52bded710bab4da26d (diff)
Review
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r--mod/mod-ci-github.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx
index 0ddc75d..d829ff6 100644
--- a/mod/mod-ci-github.cxx
+++ b/mod/mod-ci-github.cxx
@@ -1579,7 +1579,10 @@ namespace brep
if (cr.state == build_state::built)
{
if (conclusion)
+ {
+ assert (cr.status);
*conclusion |= *cr.status;
+ }
}
else
conclusion = nullopt;
@@ -1798,6 +1801,15 @@ namespace brep
// result_status into a gq_ function because converting to a GitHub
// conclusion/title/summary is reasonably complicated.
//
+ // @@@ We need to redo that code:
+ //
+ // - Pass the vector of check runs with new state (and status) set.
+ // - Update synchronized flag inside those functions.
+ // - Update the state to built if it's already built on GitHub --
+ // but then what do we set the status to?
+ // - Maybe signal in return value (optional<bool>?) that there is
+ // a discrepancy.
+ //
cr.status = b.status;
// Update the conclusion check run if all check runs are now built.