From 71e4c41e4b04cae995bdd8390493fb5e8838859c Mon Sep 17 00:00:00 2001 From: AO55 Date: Wed, 11 Nov 2026 04:14:46 -0300 Subject: [PATCH 1/3] [rei] No ELFv1 tests line on a card: no job runs them ScarletNX's build has had no job for big-endian PowerPC64's ELFv1 since CI took ELFv2, so every card said "Linux PowerPC64 BE ELFv1: Waiting". Tests now lists the jobs that make no file and failed alone. Signed-off-by: AO55 --- rei/src/cards.c | 35 ++--------------------------------- rei/tests/test_rei.c | 11 ++++------- 2 files changed, 6 insertions(+), 40 deletions(-) diff --git a/rei/src/cards.c b/rei/src/cards.c index 8096a36..bf9d664 100644 --- a/rei/src/cards.c +++ b/rei/src/cards.c @@ -52,12 +52,6 @@ static const struct { #define GO_ON "\xe2\x80\x8b" /* each package's emoji as a message writes it, <:name:id>; "" until cd_icons found it */ static char g_icons[NPACKAGES][64]; -/* Build's jobs that make no release file whose state Tests always says: each job, as build.yml names it, and what it - tests. The others are said when they fail */ -static const struct { - const char *job, *label; -} CHECKS[] = {{"Linux (ppc64, cross)", "Linux PowerPC64 BE ELFv1"}}; -#define NCHECKS (int)(sizeof CHECKS / sizeof *CHECKS) static const char* S(const char* s) { return s ? s : ""; } /* FNV-1a of text, as 16 hex digits */ @@ -347,8 +341,7 @@ void cd_icons(const cJSON* emojis) { PACKAGES[i].icon, PACKAGES[i].system); } } -/* the emoji cd_icons found for the system name names first (Linux, Windows...), as a job's name or a check's; - "" for none */ +/* the emoji cd_icons found for the system a job's name names first (Linux, Windows...); "" for none */ static const char* icon_of(const char* name) { const char *first = NULL, *icon = ""; int i; @@ -393,8 +386,7 @@ int cd_downloads(Buf* b, const cJSON* release) { } char* cd_mascot(const char* repo) { return rei_format(WIMSY, repo); } /* a line per release file in Downloads: published, its extension linked; else what its job does; built: what a built - one waits for. Then in Tests a line per job of CHECKS, what its tests did, and one per other job that makes no file - and failed */ + one waits for. Then in Tests a line per job that makes no file and failed */ static void packages(cJSON* fields, const cJSON* jobs, const cJSON* release, const char* built) { Lines downloads = {fields, "Downloads", {0}}, tests = {fields, "Tests", {0}}; const cJSON* job; @@ -425,34 +417,11 @@ static void packages(cJSON* fields, const cJSON* jobs, const cJSON* release, con buf_free(&v); } lines_end(&downloads); - for (i = 0; i < NCHECKS; ++i) { - const char *status, *conclusion, *icon = icon_of(CHECKS[i].label); - Buf one = {0}; - job = named(jobs, "name", CHECKS[i].job); - status = S(jstr(job, "status")); - conclusion = S(jstr(job, "conclusion")); - if (*icon) buf_printf(&one, "%s ", icon); - buf_printf(&one, "%s: ", CHECKS[i].label); - if (!job || !strcmp(status, "queued") || !strcmp(status, "waiting") || !strcmp(status, "pending") || - !strcmp(status, "requested")) - buf_add(&one, "Waiting"); - else if (strcmp(status, "completed")) - buf_printf(&one, "Testing ([log](%s))", S(jstr(job, "html_url"))); - else if (!strcmp(conclusion, "success")) - buf_add(&one, "Passed"); - else if (!strcmp(conclusion, "cancelled") || !strcmp(conclusion, "skipped")) - capitalized(&one, conclusion); - else - buf_printf(&one, "Failed ([log](%s))", S(jstr(job, "html_url"))); - lines_add(&tests, one.text); - buf_free(&one); - } cJSON_ArrayForEach(job, jobs) { const char* name = S(jstr(job, "name")); int listed = 0; Buf one = {0}; for (i = 0; i < NPACKAGES; ++i) listed |= !strcmp(name, PACKAGES[i].job); - for (i = 0; i < NCHECKS; ++i) listed |= !strcmp(name, CHECKS[i].job); if (listed || strcmp(S(jstr(job, "status")), "completed") || !failure(S(jstr(job, "conclusion")))) continue; if (*icon_of(name)) buf_printf(&one, "%s ", icon_of(name)); buf_printf(&one, "%s: Failed ([log](%s))", name, S(jstr(job, "html_url"))); diff --git a/rei/tests/test_rei.c b/rei/tests/test_rei.c index 0c00d0c..de56617 100644 --- a/rei/tests/test_rei.c +++ b/rei/tests/test_rei.c @@ -1089,8 +1089,6 @@ static void pr_card(void) { "{\"name\":\"Android APK\",\"status\":\"completed\",\"conclusion\":\"failure\",\"html_url\":\"https://j/2\"}," "{\"name\":\"Linux AppImage (aarch64)\",\"status\":\"completed\",\"conclusion\":\"success\"}," "{\"name\":\"macOS and iOS (arm64)\",\"status\":\"queued\",\"html_url\":\"https://j/3\"}," - "{\"name\":\"Linux (ppc64, cross)\",\"status\":\"completed\",\"conclusion\":\"failure\"," - "\"html_url\":\"https://j/4\"}," "{\"name\":\"Linux (x86_64, ASan + UBSan)\",\"status\":\"completed\",\"conclusion\":\"failure\"," "\"html_url\":\"https://j/5\"}," "{\"name\":\"Linux (x86_64)\",\"status\":\"completed\",\"conclusion\":\"success\",\"html_url\":\"https://j/6\"}," @@ -1115,8 +1113,7 @@ static void pr_card(void) { "([its nightly](https://n/1))."); HAS(text, "**2 commits**, the newest first\\n- \\\\[gpu\\\\] Second \\\\*one\\\\*\\n- \\\\[gpu\\\\] First"); /* a line a package in one Downloads field, its icon, then its link or its job's state; then in Tests the jobs - of CHECKS, what their tests did, and the other jobs that make no file and failed, not those running or passed, - each with the icon of the system its name names. + that make no file and failed, not those running or passed, each with the icon of the system its name names. No Build field (each job has its line) and no Builds while this push's are published (each has its link) */ HAS(text, "{\"name\":\"Downloads\",\"value\":\"<:wimsy_linux:11> Linux x86-64: Building ([log](https://j/1))\\n" @@ -1126,8 +1123,8 @@ static void pr_card(void) { "<:wimsy_windows:22> Windows x86-64: [.zip](https://n/w)\\n" "<:wimsy_android:33> Android: Failed ([log](https://j/2))\\n" "<:wimsy_macos:44> macOS ARM64: Waiting\\n<:wimsy_ios:55> iOS ARM64: Waiting\",\"inline\":false}," - "{\"name\":\"Tests\",\"value\":\"<:wimsy_linux:11> Linux PowerPC64 BE ELFv1: Failed ([log](https://j/4))\\n" - "<:wimsy_linux:11> Linux (x86_64, ASan + UBSan): Failed ([log](https://j/5))\",\"inline\":false}"); + "{\"name\":\"Tests\",\"value\":\"<:wimsy_linux:11> Linux (x86_64, ASan + UBSan): Failed ([log](https://j/5))\"," + "\"inline\":false}"); CHECK(!strstr(text, " MB") && !strstr(text, "https://j/6") && !strstr(text, "https://j/7")); CHECK(!strstr(text, "\"name\":\"Build\"") && !strstr(text, "\"name\":\"Builds\"")); HAS(text, "\"color\":2066493"); /* GitHub's green: open */ @@ -1183,7 +1180,7 @@ static void pr_card(void) { CHECK(!strncmp(cJSON_GetObjectItemCaseSensitive(second, "value")->valuestring, windows, strlen(windows))); } text = cJSON_PrintUnformatted(e); - HAS(text, "<:wimsy_linux:1563256571297923183> Linux PowerPC64 BE ELFv1: Waiting"); + CHECK(!strstr(text, "ELFv1") && !strstr(text, "\"Tests\"")); HAS(text, "{\"name\":\"Builds\",\"value\":\"[The push before](https://n/pr-7)\",\"inline\":true}"); free(text); cJSON_Delete(e); From 7102bbdbf9e0e1ccba9e731a100b41f55e673d2c Mon Sep 17 00:00:00 2001 From: AO55 Date: Wed, 11 Nov 2026 04:14:54 -0300 Subject: [PATCH 2/3] [rei] A pull request's card lists only the packages its run builds The PowerPC64 LE, RISC-V and LoongArch AppImages are built for the nightlies alone, and every pull request's card said they were Waiting. A package marked a nightly's is left out of a pull request's card when its run has no job for it and its release no file. Signed-off-by: AO55 --- docs/REIWIMSY.md | 7 ++++--- rei/src/cards.c | 36 +++++++++++++++++++++--------------- rei/tests/test_rei.c | 15 +++++++++++---- 3 files changed, 36 insertions(+), 22 deletions(-) diff --git a/docs/REIWIMSY.md b/docs/REIWIMSY.md index 68bc195..90244fd 100644 --- a/docs/REIWIMSY.md +++ b/docs/REIWIMSY.md @@ -33,9 +33,10 @@ and logs nothing said, and pings no one. A message for each open pull request, each open issue and each push to main, in channels of their own, drawn from what GitHub says now and edited as it changes: its state, its commits or changes, the latest comment a person wrote, each -package of its build. Its activity (a push, a person's comment, a change of state, a pull request's builds published -or failed) moves it to the end of its channel, posted again before the old one is deleted; a pull request or an issue -closed keeps its card a day, as it closed, then the card is deleted. +package of its build (a pull request's leaves out those only a nightly builds, unless its run made them). Its +activity (a push, a person's comment, a change of state, a pull request's builds published or failed) moves it to the +end of its channel, posted again before the old one is deleted; a pull request or an issue closed keeps its card a +day, as it closed, then the card is deleted. The bot asks GitHub's API every 30 s, with ETags (an unchanged answer costs nothing of GitHub's 5000 an hour): the issues and pull requests updated, the builds that run and their jobs, the nightly releases, main's head and the pushes diff --git a/rei/src/cards.c b/rei/src/cards.c index bf9d664..92dcb1e 100644 --- a/rei/src/cards.c +++ b/rei/src/cards.c @@ -29,21 +29,25 @@ /* each release file, in the order the cards list them: the job of ScarletNX's build.yml that makes it (macOS's and iOS's share one runner), what it is for, as scripts/nightly-notes.py's SYSTEMS has it, what it holds where that is - not all, and the application's emoji beside it (Wimsy as its system, scarletnx/wimsy-dist's emoji/) */ + not all, the application's emoji beside it (Wimsy as its system, scarletnx/wimsy-dist's emoji/), and 1 for a file + only a run a nightly can come of makes (build.yml's appimage-cross): a pull request's card lists it only when its + run has its job or its release the file */ static const struct { const char *file, *job, *system, *arch, *note, *icon; + int nightly; } PACKAGES[] = { - {"ScarletNX-linux-x86_64.AppImage", "Linux AppImage (x86_64)", "Linux", "x86-64", "", "wimsy_linux"}, - {"ScarletNX-linux-aarch64.AppImage", "Linux AppImage (aarch64)", "Linux", "ARM64", "", "wimsy_linux"}, - {"ScarletNX-linux-ppc64le.AppImage", "Linux AppImage (ppc64le)", "Linux", "PowerPC64 LE", "", "wimsy_linux"}, + {"ScarletNX-linux-x86_64.AppImage", "Linux AppImage (x86_64)", "Linux", "x86-64", "", "wimsy_linux", 0}, + {"ScarletNX-linux-aarch64.AppImage", "Linux AppImage (aarch64)", "Linux", "ARM64", "", "wimsy_linux", 0}, + {"ScarletNX-linux-ppc64le.AppImage", "Linux AppImage (ppc64le)", "Linux", "PowerPC64 LE", "", "wimsy_linux", 1}, {"ScarletNX-linux-ppc64.AppImage", "Linux AppImage (ppc64)", "Linux", "PowerPC64 BE", " (Linux programs)", - "wimsy_linux"}, - {"ScarletNX-linux-riscv64.AppImage", "Linux AppImage (riscv64)", "Linux", "RISC-V 64", "", "wimsy_linux"}, - {"ScarletNX-linux-loongarch64.AppImage", "Linux AppImage (loongarch64)", "Linux", "LoongArch64", "", "wimsy_linux"}, - {"ScarletNX-windows-x86_64.zip", "Windows (Clang + LLVM)", "Windows", "x86-64", "", "wimsy_windows"}, - {"ScarletNX-android-universal.apk", "Android APK", "Android", "ARM64, x86-64", "", "wimsy_android"}, - {"ScarletNX-macos-arm64.zip", "macOS and iOS (arm64)", "macOS", "ARM64", "", "wimsy_macos"}, - {"ScarletNX-ios-arm64.ipa", "macOS and iOS (arm64)", "iOS", "ARM64", "", "wimsy_ios"}, + "wimsy_linux", 0}, + {"ScarletNX-linux-riscv64.AppImage", "Linux AppImage (riscv64)", "Linux", "RISC-V 64", "", "wimsy_linux", 1}, + {"ScarletNX-linux-loongarch64.AppImage", "Linux AppImage (loongarch64)", "Linux", "LoongArch64", "", "wimsy_linux", + 1}, + {"ScarletNX-windows-x86_64.zip", "Windows (Clang + LLVM)", "Windows", "x86-64", "", "wimsy_windows", 0}, + {"ScarletNX-android-universal.apk", "Android APK", "Android", "ARM64, x86-64", "", "wimsy_android", 0}, + {"ScarletNX-macos-arm64.zip", "macOS and iOS (arm64)", "macOS", "ARM64", "", "wimsy_macos", 0}, + {"ScarletNX-ios-arm64.ipa", "macOS and iOS (arm64)", "iOS", "ARM64", "", "wimsy_ios", 0}, }; #define NPACKAGES (int)(sizeof PACKAGES / sizeof *PACKAGES) /* a field's value Discord takes, in letters */ @@ -386,8 +390,9 @@ int cd_downloads(Buf* b, const cJSON* release) { } char* cd_mascot(const char* repo) { return rei_format(WIMSY, repo); } /* a line per release file in Downloads: published, its extension linked; else what its job does; built: what a built - one waits for. Then in Tests a line per job that makes no file and failed */ -static void packages(cJSON* fields, const cJSON* jobs, const cJSON* release, const char* built) { + one waits for; pr: a pull request's card, which leaves out a nightly's file its run and release have nothing of. + Then in Tests a line per job that makes no file and failed */ +static void packages(cJSON* fields, const cJSON* jobs, const cJSON* release, const char* built, int pr) { Lines downloads = {fields, "Downloads", {0}}, tests = {fields, "Tests", {0}}; const cJSON* job; int i; @@ -396,6 +401,7 @@ static void packages(cJSON* fields, const cJSON* jobs, const cJSON* release, con const char *status, *conclusion; Buf v = {0}, one = {0}; job = named(jobs, "name", PACKAGES[i].job); + if (pr && PACKAGES[i].nightly && !asset && !job) continue; status = S(jstr(job, "status")); conclusion = S(jstr(job, "conclusion")); if (asset) @@ -575,7 +581,7 @@ cJSON* cd_pr(Cards* c, int number, int* open, double* closed_at) { fork_name = rei_strdup(S(jstr(cJSON_GetObjectItemCaseSensitive(head_obj, "repo"), "full_name"))); built = rei_strdup(strcmp(fork_name, c->gh->repo) && !labeled(pr, LABEL) ? "waits for the team's label" : "being published"); - packages(fields, jobs, current, built); + packages(fields, jobs, current, built, 1); /* the outcome that moves the card: published or failed, kept while its push's builds run again or are cancelled */ if (current) @@ -894,7 +900,7 @@ cJSON* cd_nightly(Cards* c, const char* sha) { } for (i = 0; i < n; ++i) free(lines[i]); if (n >= 0) free(lines); - packages(fields, jobs, own, built); + packages(fields, jobs, own, built, 0); { char *source = rei_format("[`%.7s`](%s)", sha, commit), *every = rei_format("[%s](" SERVER "/%s/releases)", c->gh->nightly, c->gh->nightly); diff --git a/rei/tests/test_rei.c b/rei/tests/test_rei.c index de56617..cb2a356 100644 --- a/rei/tests/test_rei.c +++ b/rei/tests/test_rei.c @@ -982,7 +982,13 @@ static void fix_cards(void) { c.nightlies = NULL; { cJSON* drawn = cd_nightly(&c, head); + char* all = cJSON_PrintUnformatted(drawn); HAS(jstr(drawn, "description"), "; no nightly of it is kept now: o/nightly keeps the newest 30."); + /* a nightly's card lists every package, those only a nightly builds too */ + HAS(all, "Linux PowerPC64 LE: "); + HAS(all, "Linux RISC-V 64: "); + HAS(all, "Linux LoongArch64: "); + free(all); cJSON_Delete(drawn); } free(head); @@ -1112,14 +1118,14 @@ static void pr_card(void) { "on main at [`3333333`](https://github.com/o/r/commit/3333333333333333333333333333333333333333) " "([its nightly](https://n/1))."); HAS(text, "**2 commits**, the newest first\\n- \\\\[gpu\\\\] Second \\\\*one\\\\*\\n- \\\\[gpu\\\\] First"); - /* a line a package in one Downloads field, its icon, then its link or its job's state; then in Tests the jobs - that make no file and failed, not those running or passed, each with the icon of the system its name names. + /* a line a package in one Downloads field, its icon, then its link or its job's state, but a nightly's package + its run has no job for and its release no file; then in Tests the other jobs that make no file and failed, not + those running or passed, each with the icon of the system its name names. No Build field (each job has its line) and no Builds while this push's are published (each has its link) */ HAS(text, "{\"name\":\"Downloads\",\"value\":\"<:wimsy_linux:11> Linux x86-64: Building ([log](https://j/1))\\n" - "<:wimsy_linux:11> Linux ARM64: Built, being published\\n<:wimsy_linux:11> Linux PowerPC64 LE: Waiting\\n" + "<:wimsy_linux:11> Linux ARM64: Built, being published\\n" "<:wimsy_linux:11> Linux PowerPC64 BE: [.AppImage](https://n/p) (Linux programs)\\n" - "<:wimsy_linux:11> Linux RISC-V 64: Waiting\\n<:wimsy_linux:11> Linux LoongArch64: Waiting\\n" "<:wimsy_windows:22> Windows x86-64: [.zip](https://n/w)\\n" "<:wimsy_android:33> Android: Failed ([log](https://j/2))\\n" "<:wimsy_macos:44> macOS ARM64: Waiting\\n<:wimsy_ios:55> iOS ARM64: Waiting\",\"inline\":false}," @@ -1174,6 +1180,7 @@ static void pr_card(void) { CHECK(first && second && n == 2); CHECK(rei_letters(cJSON_GetObjectItemCaseSensitive(first, "value")->valuestring) <= 1024); CHECK(rei_letters(cJSON_GetObjectItemCaseSensitive(second, "value")->valuestring) <= 1024); + /* a nightly's package its run has a job for: listed on a pull request's card too */ CHECK(strstr(cJSON_GetObjectItemCaseSensitive(first, "value")->valuestring, "Linux LoongArch64: Building")); { const char* windows = "<:wimsy_windows:1563256573802057808> Windows x86-64: Building ([log]("; From 1c9e6c3ed832683c6b2d71c763cd4b4f40f3d33a Mon Sep 17 00:00:00 2001 From: AO55 Date: Wed, 11 Nov 2026 05:50:35 -0300 Subject: [PATCH 3/3] [rei] A run cancelled at its first failed job reads as failed ScarletNX's Build now cancels the rest of a run once a job of it has failed, on main too: such a run ended cancelled, and its nightly's card said it was cancelled and a pull request's card did not move. Signed-off-by: AO55 --- rei/src/cards.c | 18 ++++++++++++++---- rei/tests/test_rei.c | 21 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/rei/src/cards.c b/rei/src/cards.c index 92dcb1e..c800157 100644 --- a/rei/src/cards.c +++ b/rei/src/cards.c @@ -362,6 +362,17 @@ static const char* icon_of(const char* name) { static int failure(const char* conclusion) { return !strcmp(conclusion, "failure") || !strcmp(conclusion, "timed_out") || !strcmp(conclusion, "startup_failure"); } +/* a run that ended failed: GitHub says so, or it was cancelled once one of its jobs had failed (ScarletNX's + scripts/fail-fast.py cancels the rest of a run at its first failed job) */ +static int run_failed(const cJSON* run, const cJSON* jobs) { + const char* ended = S(jstr(run, "conclusion")); + const cJSON* job; + if (failure(ended)) return 1; + if (strcmp(ended, "cancelled")) return 0; + cJSON_ArrayForEach(job, jobs) if (!strcmp(S(jstr(job, "status")), "completed") && + failure(S(jstr(job, "conclusion")))) return 1; + return 0; +} /* package i's line: its icon, its system and its architecture where it has one, then what */ static void line_of(Buf* b, int i, const char* what) { if (*g_icons[i]) buf_printf(b, "%s ", g_icons[i]); @@ -586,9 +597,7 @@ cJSON* cd_pr(Cards* c, int number, int* open, double* closed_at) { cancelled */ if (current) snprintf(c->builds, sizeof c->builds, "published %s", head); - else if (run && !strcmp(S(jstr(run, "status")), "completed") && - (!strcmp(S(jstr(run, "conclusion")), "failure") || !strcmp(S(jstr(run, "conclusion")), "timed_out") || - !strcmp(S(jstr(run, "conclusion")), "startup_failure"))) + else if (run && !strcmp(S(jstr(run, "status")), "completed") && run_failed(run, jobs)) snprintf(c->builds, sizeof c->builds, "failed %s", head); else { char* mine = rei_format(" %s", head); @@ -867,7 +876,8 @@ cJSON* cd_nightly(Cards* c, const char* sha) { buf_printf(&b, "Building main at [`%.7s`](%s), committed %s.", sha, commit, date); else if (strcmp(S(jstr(run, "conclusion")), "success")) { const char* ended = S(jstr(run, "conclusion")); - char* how = !strcmp(ended, "failure") ? rei_strdup("failed") + char* how = !strcmp(ended, "failure") || (!strcmp(ended, "cancelled") && run_failed(run, jobs)) + ? rei_strdup("failed") : !strcmp(ended, "cancelled") ? rei_strdup("was cancelled") : rei_format("ended as %s", *ended ? ended : "nothing GitHub said"); buf_printf(&b, "Not published: the build of [`%.7s`](%s) %s ([run](%s)).", sha, commit, how, diff --git a/rei/tests/test_rei.c b/rei/tests/test_rei.c index cb2a356..7dfbfb2 100644 --- a/rei/tests/test_rei.c +++ b/rei/tests/test_rei.c @@ -968,6 +968,19 @@ static void fix_cards(void) { cJSON_Delete(drawn); free(run); } + /* cancelled once a job of it had failed (ScarletNX's fail-fast): failed */ + gh_shas("repos/o/r/actions/workflows/build.yml/runs?head_sha=@c&per_page=100&page=1", + "{\"workflow_runs\":[{\"id\":71,\"event\":\"push\",\"status\":\"completed\",\"conclusion\":" + "\"cancelled\",\"created_at\":\"2026-11-04T22:00:05Z\"}]}"); + gh("repos/o/r/actions/runs/71/jobs?per_page=100&page=1", + "{\"jobs\":[{\"name\":\"Linux (aarch64)\",\"status\":\"completed\",\"conclusion\":\"failure\"}," + "{\"name\":\"Android APK\",\"status\":\"completed\",\"conclusion\":\"cancelled\"}]}"); + { + cJSON* drawn = cd_nightly(&c, head); + HAS(jstr(drawn, "description"), "failed ([run]"); + cJSON_Delete(drawn); + } + gh("repos/o/r/actions/runs/71/jobs?per_page=100&page=1", "{\"jobs\":[]}"); /* built, and older than the oldest nightly kept: none of it is kept now, which is all the card can know */ gh_shas("repos/o/r/actions/workflows/build.yml/runs?head_sha=@c&per_page=100&page=1", "{\"workflow_runs\":[{\"id\":71,\"event\":\"push\",\"status\":\"completed\",\"conclusion\":" @@ -1217,6 +1230,14 @@ static void pr_card(void) { SAME(c.activity, was); /* a job done */ run_is(&c, "\"completed\",\"conclusion\":\"cancelled\""); SAME(c.activity, was); /* cancelled, none failed before */ + gh("repos/o/r/actions/runs/9/jobs?per_page=100&page=1", + "{\"jobs\":[{\"name\":\"Linux AppImage (x86_64)\",\"status\":\"completed\",\"conclusion\":\"success\"}," + "{\"name\":\"Linux (aarch64)\",\"status\":\"completed\",\"conclusion\":\"failure\"}]}"); + run_is(&c, "\"completed\",\"conclusion\":\"cancelled\""); + CHECK(strcmp(c.activity, was)); /* cancelled once a job had failed (ScarletNX's fail-fast): failed */ + SAME(c.builds, "failed 1111111111111111111111111111111111111111"); + gh("repos/o/r/actions/runs/9/jobs?per_page=100&page=1", + "{\"jobs\":[{\"name\":\"Linux AppImage (x86_64)\",\"status\":\"completed\",\"conclusion\":\"success\"}]}"); run_is(&c, "\"completed\",\"conclusion\":\"failure\""); CHECK(strcmp(c.activity, was)); /* failed */ SAME(c.builds, "failed 1111111111111111111111111111111111111111");