Compare commits
3
Commits
9077618c49
...
f38761ff66
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f38761ff66 | ||
|
|
c76a742f2b | ||
|
|
7e0728e46b |
@@ -39,6 +39,9 @@ jobs:
|
||||
fetch-depth: 0
|
||||
lfs: false
|
||||
|
||||
# A release refuses an unsigned build (Captain Bob, 2026-11-12: "release MUST refuse unsigned
|
||||
# builds"), as the gate into master does (#174). It warned and went on.
|
||||
# scripts/test_acceptance_signing.sh runs this step.
|
||||
- name: The capsule-signing key
|
||||
env:
|
||||
KEY: ${{ secrets.CAPSULE_SIGN_KEY }}
|
||||
@@ -48,7 +51,8 @@ jobs:
|
||||
(umask 077; printf '%s\n' "$KEY" > "$f")
|
||||
echo "SIGN_KEY=$f" >> "$GITHUB_ENV"; echo "The capsules will be signed."
|
||||
else
|
||||
echo "::warning::No CAPSULE_SIGN_KEY secret: the capsules are built unsigned."
|
||||
echo "::error::No CAPSULE_SIGN_KEY secret: a release is not built unsigned."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: The tag names the tree's version
|
||||
|
||||
@@ -6581,3 +6581,23 @@ and memorize frequently so we can pick up where we left off").
|
||||
- **Seen to pass:** `mint_part_fail` (the new message, never "nothing changed", the old stick logs
|
||||
in); `mint_fail`, every write failing, still "nothing changed"; `replace`, the success path.
|
||||
|
||||
### 21. #188: the Jacquard selector's cards -- 64, each different, L2 a real gate (2026-11-12)
|
||||
|
||||
- **Found** (Captain Bob asked, 2026-11-12: "Is the jacquard selector implementing all of the
|
||||
possible cards?"): the table held 128 cards, the 7-bit L1-L7 DoE space, and wrote all seven bits
|
||||
into the VM's config, but nothing read L7 and the rolling window (L2) recorded every execution
|
||||
whatever the card said: the 128 cards were 32 behaviours, four cards each. `ssm_jacquard.h` said
|
||||
L7 was wired; it was not.
|
||||
- **Ruled:** "Wire L2, keep L7 on" -- L7 permanently on, as `docs/reference/L8_ADAPTIVE_CONFIG_TABLE.md`
|
||||
§2 says it is; L2 the selector's to switch.
|
||||
- **Tested first, seen to fail:** `kernel/tests/test_ssm_jacquard.c` -- 64 cards, the start still
|
||||
C4 (L3+L7), L7 on in all, all 64 L1-L6 settings distinct, a forced 7-bit index naming its card
|
||||
with or without its L7 bit: 4 of 7 failed. `kernel/tests/test_physics_l2.c` -- with L2 off an
|
||||
execution is not recorded: failed against the old hook.
|
||||
- **Built:** `cd_tuning_word()` sizes the table to 64 (`compudynamics.c`); a card's index is its L1-L6 bits and
|
||||
`card_bits()` in `ssm_jacquard.c` makes its 7-bit mask with L7 set, at the three places a card is
|
||||
read, the DoE seeding, and the start (17 -> card 8). `ssm_l8_force_config()` takes the 7-bit index
|
||||
as before. The rolling window records only while the config's L2 is on, or before there is a
|
||||
config (`physics_execution_hooks.c`, `kernel/src/vm/vm_core.c`).
|
||||
`ssm_jacquard.h` says what is wired, bit by bit; `v3/CLAUDE.md` and the L8 reference corrected.
|
||||
- **Seen to pass:** both tests; v4 does not read the rolling window, so acceptance is unchanged.
|
||||
|
||||
@@ -4,6 +4,14 @@
|
||||
**Author:** Claude Code session, June 2026
|
||||
**Affects:** `include/ssm_jacquard.h`, `src/ssm_jacquard.c`, `src/inference_engine.c`, `include/vm.h`
|
||||
|
||||
> **Corrected 2026-11-12 (#188; Captain Bob: "Wire L2, keep L7 on").** As built, the table has **64
|
||||
> cards, not 128**: the six bits L1–L6, with L7 permanently on in every card, as §2's table says L7
|
||||
> is. The 128 below -- the 2^7 DoE space -- held each card twice, differing only in an L7 bit that
|
||||
> nothing read, so half the table was the same cards. A card's 7-bit mask is `(card << 1) | L7`;
|
||||
> `ssm_l8_force_config()` still takes the 7-bit index and ignores its L7 bit. L2 (rolling window) was
|
||||
> recorded whatever the card said; it is now L8's live toggle, as L4 is. The 128s below are left as
|
||||
> the proposal said them.
|
||||
|
||||
---
|
||||
|
||||
## 1. Executive Summary
|
||||
|
||||
@@ -785,8 +785,13 @@ void execute_colon_word(VM* vm)
|
||||
uint32_t word_id = w->word_id;
|
||||
if (word_id < DICTIONARY_SIZE)
|
||||
{
|
||||
/* L8 FINAL INTEGRATION: Loop #2 always-on - Rolling Window of Truth */
|
||||
rolling_window_record_execution(&vm->rolling_window, word_id);
|
||||
/* Loop #2: Rolling Window of Truth -- L8's live toggle (#188: it was always on,
|
||||
* so the selector's L2 bit did nothing). No config yet: recorded. */
|
||||
{
|
||||
const ssm_config_t *ssm_cfg = (const ssm_config_t*)vm->ssm_config;
|
||||
if (!ssm_cfg || ssm_cfg->L2_rolling_window)
|
||||
rolling_window_record_execution(&vm->rolling_window, word_id);
|
||||
}
|
||||
|
||||
/* L8 FINAL INTEGRATION: Loop always-on */ /* Loop #4: Pipelining Transition Metrics - WIRED & UTILIZED */
|
||||
if (prev_word && prev_word->transition_metrics && ENABLE_PIPELINING)
|
||||
|
||||
@@ -19,7 +19,9 @@ CC ?= cc
|
||||
CFLAGS := -std=c99 -Wall -Wextra -Werror -O2 -g -I$(HERE) -I$(ROOT)/kernel/include \
|
||||
-I$(ROOT)/kernel/include/starkernel -I$(ROOT)/v3/include
|
||||
|
||||
TESTS := test_gpt test_usb_config test_sk_v4_stop test_sk_v4_slots test_sk_v4_mint test_sk_v4_identity test_heartbeat_export
|
||||
TESTS := test_gpt test_usb_config test_sk_v4_stop test_sk_v4_slots test_sk_v4_mint test_sk_v4_identity test_heartbeat_export test_ssm_jacquard test_physics_l2
|
||||
SRC_test_physics_l2 := $(ROOT)/v3/src/physics_execution_hooks.c
|
||||
SRC_test_ssm_jacquard := $(ROOT)/v3/src/ssm_jacquard.c $(ROOT)/v3/src/compudynamics.c
|
||||
SRC_test_heartbeat_export := $(ROOT)/v3/src/heartbeat_export.c
|
||||
SRC_test_sk_v4_identity := $(ROOT)/kernel/src/v4/sk_v4_identity.c $(ROOT)/kernel/src/v4/sk_v4_slots.c $(ROOT)/kernel/src/gpt.c
|
||||
EXTRA_test_sk_v4_identity := -D__STARKERNEL__ -I$(ROOT)/v4/include -DSTICK_GROW_MIN_BYTES=8000000000ULL -DSTICK_ARTEMIS_CAP_GIB=256ULL
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* SPDX-License-Identifier: LicenseRef-Starship-1.0
|
||||
* Copyright (c) 2023-2026 Robert A. James
|
||||
*/
|
||||
/* test_physics_l2.c -- v3/src/physics_execution_hooks.c on the host (#188): the rolling window
|
||||
* records a word's execution only while the live config's L2 (rolling window) is on -- L8's toggle,
|
||||
* as L4 is -- and, with no config yet, records it. It recorded whatever the card said (Captain Bob,
|
||||
* 2026-11-12: "Wire L2, keep L7 on").
|
||||
*
|
||||
* What the hook calls outside itself is defined here: the rolling window's recorder counts.
|
||||
*/
|
||||
#include "harness.h"
|
||||
#include "vm.h"
|
||||
#include "physics_execution_hooks.h"
|
||||
#include "physics_metadata.h"
|
||||
#include "platform_time.h"
|
||||
#include "profiler.h"
|
||||
#include "rolling_window_of_truth.h"
|
||||
#include "ssm_jacquard.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static unsigned recorded;
|
||||
int rolling_window_record_execution(RollingWindowOfTruth *window, uint32_t word_id)
|
||||
{
|
||||
(void)window; (void)word_id; recorded++; return 0;
|
||||
}
|
||||
void physics_metadata_apply_linear_decay(DictEntry *entry, uint64_t elapsed_ticks, VM *vm)
|
||||
{
|
||||
(void)entry; (void)elapsed_ticks; (void)vm;
|
||||
}
|
||||
void physics_metadata_touch(DictEntry *entry, cell_t execution_heat, uint64_t now_ns)
|
||||
{
|
||||
(void)entry; (void)execution_heat; (void)now_ns;
|
||||
}
|
||||
void profiler_word_exit(const DictEntry *entry) { (void)entry; }
|
||||
void sf_mutex_lock(sf_mutex_t *mutex) { (void)mutex; }
|
||||
void sf_mutex_unlock(sf_mutex_t *mutex) { (void)mutex; }
|
||||
void vm_heartbeat_run_cycle(VM *vm) { (void)vm; }
|
||||
|
||||
static sf_time_ns_t clock_ns(void) { return 1000u; }
|
||||
static sf_time_backend_t backend;
|
||||
const sf_time_backend_t *sf_time_backend = &backend;
|
||||
|
||||
static unsigned run(VM *vm, DictEntry *w) /* one execution of w: how many times was it recorded */
|
||||
{
|
||||
recorded = 0;
|
||||
physics_pre_execute(vm, w, NULL);
|
||||
return recorded;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
VM *vm = calloc(1, sizeof *vm);
|
||||
DictEntry w;
|
||||
ssm_config_t cfg;
|
||||
unsigned n;
|
||||
|
||||
backend.get_monotonic_ns = clock_ns;
|
||||
CHECK(vm != 0, "a VM");
|
||||
if (!vm) return DONE();
|
||||
memset(&w, 0, sizeof w);
|
||||
w.word_id = 7;
|
||||
memset(&cfg, 0, sizeof cfg);
|
||||
|
||||
vm->ssm_config = NULL;
|
||||
n = run(vm, &w);
|
||||
CHECK(n == 1u, "no config yet: the execution is recorded (%u)", n);
|
||||
|
||||
vm->ssm_config = &cfg;
|
||||
cfg.L2_rolling_window = 1;
|
||||
n = run(vm, &w);
|
||||
CHECK(n == 1u, "L2 on: the execution is recorded (%u)", n);
|
||||
|
||||
cfg.L2_rolling_window = 0;
|
||||
n = run(vm, &w);
|
||||
CHECK(n == 0u, "#188: L2 off: the execution is not recorded (%u times)", n);
|
||||
|
||||
free(vm);
|
||||
return DONE();
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
/* SPDX-License-Identifier: LicenseRef-Starship-1.0
|
||||
* Copyright (c) 2023-2026 Robert A. James
|
||||
*/
|
||||
/* test_ssm_jacquard.c -- v3/src/ssm_jacquard.c and compudynamics.c on the host (#188): the L8
|
||||
* selector's cards are 64, every one different, L7 (adaptive heartrate) on in all of them -- it is
|
||||
* permanently on (docs/reference/L8_ADAPTIVE_CONFIG_TABLE.md; Captain Bob, 2026-11-12: "Wire L2,
|
||||
* keep L7 on") -- instead of 128 cards of which those differing only in L7 (or L2) acted alike.
|
||||
*/
|
||||
#include "harness.h"
|
||||
#include "ssm_jacquard.h"
|
||||
#include "compudynamics.h"
|
||||
#include <string.h>
|
||||
|
||||
static unsigned tuple(const ssm_config_t *c) /* L1..L6 as six bits */
|
||||
{
|
||||
return (unsigned)(c->L1_heat_tracking << 5 | c->L2_rolling_window << 4 | c->L3_linear_decay << 3 |
|
||||
c->L4_pipelining << 2 | c->L5_window_inference << 1 | c->L6_decay_inference);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
ssm_l8_state_t st;
|
||||
ssm_config_t cfg;
|
||||
unsigned seen[64], c, n, distinct = 0, all_l7 = 1;
|
||||
|
||||
memset(&st, 0, sizeof st);
|
||||
ssm_l8_init(&st, SSM_MODE_C4);
|
||||
ssm_l8_init_table(&st);
|
||||
CHECK(st.table != 0, "the adaptive table is allocated");
|
||||
if (!st.table) return DONE();
|
||||
n = st.table->num_configs;
|
||||
CHECK(n == 64u, "#188: 64 cards -- L7 is not the selector's to choose (%u)", n);
|
||||
|
||||
memset(&cfg, 0, sizeof cfg);
|
||||
ssm_apply_mode_from_table(&st, &cfg);
|
||||
CHECK(cfg.L3_linear_decay == 1 && cfg.L7_adaptive_heartrate == 1 && tuple(&cfg) == 0x08u,
|
||||
"the starting card is still C4: L3 and L7 only (L1-L6 bits %#x, L7 %d)", tuple(&cfg), cfg.L7_adaptive_heartrate);
|
||||
|
||||
memset(seen, 0, sizeof seen);
|
||||
for (c = 0; c < n && c < 128u; c++) {
|
||||
st.table->current_config = c;
|
||||
memset(&cfg, 0, sizeof cfg);
|
||||
ssm_apply_mode_from_table(&st, &cfg);
|
||||
if (!cfg.L7_adaptive_heartrate) all_l7 = 0;
|
||||
if (tuple(&cfg) < 64u && !seen[tuple(&cfg)]++) distinct++;
|
||||
}
|
||||
CHECK(all_l7, "#188: L7 on in every card");
|
||||
CHECK(distinct == 64u && distinct == n, "#188: every card a different L1-L6 setting, all 64 of them (%u distinct of %u)", distinct, n);
|
||||
|
||||
/* forcing a card by its 7-bit index (inference_words.c): the L7 bit is implied on */
|
||||
memset(&cfg, 0, sizeof cfg);
|
||||
ssm_l8_force_config(&st, &cfg, 0x31u); /* 49: L2+L3+L7 -- C12 */
|
||||
CHECK(tuple(&cfg) == 0x18u && cfg.L7_adaptive_heartrate == 1, "forced 0x31: L2, L3 and L7 (L1-L6 %#x)", tuple(&cfg));
|
||||
memset(&cfg, 0, sizeof cfg);
|
||||
ssm_l8_force_config(&st, &cfg, 0x30u); /* the same without its L7 bit */
|
||||
CHECK(tuple(&cfg) == 0x18u && cfg.L7_adaptive_heartrate == 1, "forced 0x30: the same card, L7 still on (L1-L6 %#x, L7 %d)",
|
||||
tuple(&cfg), cfg.L7_adaptive_heartrate);
|
||||
|
||||
ssm_l8_free_table(&st);
|
||||
return DONE();
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,63 @@
|
||||
# Protocol for c76a742f
|
||||
|
||||
- Commit: c76a742f2bed8176083363bf7b6aaa02a4f694af
|
||||
- Tree: clean
|
||||
- Result: PASS
|
||||
|
||||
`scripts/nightly.sh protocol` (#135), begun 20261112-210531 UTC; `#188: the Jacquard selector's 64 cards, L7 permanently on, L2 a real gate`.
|
||||
|
||||
## Stages
|
||||
|
||||
| Stage | Result | Output |
|
||||
|---|---|---|
|
||||
| `accept-amd64` | PASS | `logs/20261112-210531/protocol/accept-amd64.log` |
|
||||
| `accept-aarch64` | PASS | `logs/20261112-210531/protocol/accept-aarch64.log` |
|
||||
| `accept-riscv64` | PASS | `logs/20261112-210531/protocol/accept-riscv64.log` |
|
||||
| `accept-stick-high` | PASS | `logs/20261112-210531/protocol/accept-stick-high.log` |
|
||||
| `test-32` | PASS | `logs/20261112-210531/protocol/test-32.log` |
|
||||
| `proofs` | PASS | `logs/20261112-210531/protocol/proofs.log` |
|
||||
| `images` | PASS | `logs/20261112-210531/protocol/images.log` |
|
||||
| `docs` | PASS | `logs/20261112-210531/protocol/docs.log` |
|
||||
|
||||
## The boots
|
||||
|
||||
| Boot | Serial log | POST | System |
|
||||
|---|---|---|---|
|
||||
| amd64 | `logs/20261112-210607/amd64/qemu-amd64-20261112-210607.log` | `PARITY:V4_POST tests=538 pass=538 fail=0` | `PARITY:V4_SYSTEM word_count=318 dict_hash=0x8c92508f748f99cf` |
|
||||
| aarch64 | `logs/20261112-210815/aarch64/qemu-aarch64-20261112-210815.log` | `PARITY:V4_POST tests=538 pass=538 fail=0` | `PARITY:V4_SYSTEM word_count=318 dict_hash=0x8c92508f748f99cf` |
|
||||
| riscv64 | `logs/20261112-211202/riscv64/qemu-riscv64-20261112-211202.log` | `PARITY:V4_POST tests=538 pass=538 fail=0` | `PARITY:V4_SYSTEM word_count=318 dict_hash=0x8c92508f748f99cf` |
|
||||
| stick-high | `logs/20261112-211347/amd64/qemu-amd64-20261112-211347.log` | `PARITY:V4_POST tests=538 pass=538 fail=0` | `PARITY:V4_SYSTEM word_count=318 dict_hash=0x8c92508f748f99cf` |
|
||||
|
||||
dict_hash: the same on all three: `0x8c92508f748f99cf`.
|
||||
|
||||
## test-32
|
||||
|
||||
39 programs, 1869223 checks, 0 failures
|
||||
|
||||
## The proofs
|
||||
|
||||
`logs/20261112-212105/isabelle/isabelle-20261112-212105.log`
|
||||
|
||||
## The images (SHA-256)
|
||||
|
||||
```
|
||||
34ca63bd3088058a8680df3f1d00aef604a8d9536ebfa5061fab335f789b9df7 StarshipOS.iso
|
||||
3f60fd2ce16cce4aedf4e4ea7275c75738e12c77bd2707126bb835e973e34d0d pc-stick.img
|
||||
69c6a38bffb5ac99c4ee4779b6d294e996ba55135014e1ce9fea02b7294efdbb raspi5.img
|
||||
c223d1a6b3b0b6029a692d1314c5c0653d1d0cd961d75516532eba042f22417b MilkV.img
|
||||
44131434a50efac48b0589e5e31c1779f845aee22fe344aac3ecef768dfed727 pc-stick.img.xz
|
||||
900c16e505c631b6bfcacd54e11f0297423832dadf495c55b8b87d75ffbc6de4 raspi5.img.xz
|
||||
4770fdb21a9141db1631b3b3ba0e7d40d11257033d41fd73994f26710ec24e25 MilkV.img.xz
|
||||
```
|
||||
|
||||
## The documents (SHA-256)
|
||||
|
||||
```
|
||||
ba4fa7d7eaf02e4739ac13502aa75ca10e93d3fc9c744255b4886b37eef352eb ./api.pdf
|
||||
724e2758ab7edcdcfdb98aa82fb84f543052174627655edcb79fc89144c027c2 ./book.pdf
|
||||
ab75ef4e0e8fe2b3b1126df512652f72f8f869a305c20956d87fda3f5a2db43f ./dictionary.pdf
|
||||
6ac0403ce9b02827d9b9371a50b5f063bfc8199e9e6d0635048b2414925bd996 ./fabric.pdf
|
||||
37a663aaa15aba11c763123b5706b042b6b04630dffe76ab3567cbb61f5f84b0 ./vol1.pdf
|
||||
0a51a076a309597a2ba538a757b3fec2e2824ca2f3a22d9fed9d78e983d7aee6 ./vol2.pdf
|
||||
e4988907b8b4afa1a585f26bc97ded0f99f688843519e821527f630ec151e2ba ./vol3.pdf
|
||||
```
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: LicenseRef-Starship-1.0
|
||||
# Copyright (c) 2023-2026 Robert A. James
|
||||
# test_acceptance_signing.sh -- #174: the PR gate into master refuses an unsigned build. The step
|
||||
# ".gitea/workflows/acceptance.yml: The capsule-signing key" is taken from the workflow as CI runs
|
||||
# it, and run here with and without CAPSULE_SIGN_KEY.
|
||||
# test_acceptance_signing.sh -- the gate into master (#174) and a release (Captain Bob, 2026-11-12:
|
||||
# "release MUST refuse unsigned builds") refuse an unsigned build. Each workflow's step "The
|
||||
# capsule-signing key" is taken from the workflow as CI runs it, and run here with and without
|
||||
# CAPSULE_SIGN_KEY.
|
||||
#
|
||||
# Prints PASS:/FAIL: per check and RESULT:; exits 0 only if every check passes.
|
||||
set -uo pipefail
|
||||
@@ -12,27 +13,32 @@ T=$(mktemp -d)
|
||||
trap 'rm -rf "$T"' EXIT
|
||||
ok=1
|
||||
|
||||
python3 - "$ROOT/.gitea/workflows/acceptance.yml" "$T/step.sh" <<'EOF' || { echo "FAIL: no 'The capsule-signing key' step in acceptance.yml"; exit 1; }
|
||||
check_workflow() { # check_workflow <workflow> <job>
|
||||
local wf=$1 job=$2 step="$T/$1.sh"
|
||||
if ! python3 - "$ROOT/.gitea/workflows/$wf.yml" "$job" "$step" <<'EOF'
|
||||
import sys, yaml
|
||||
steps = yaml.safe_load(open(sys.argv[1]))["jobs"]["acceptance"]["steps"]
|
||||
steps = yaml.safe_load(open(sys.argv[1]))["jobs"][sys.argv[2]]["steps"]
|
||||
run = [s["run"] for s in steps if s.get("name") == "The capsule-signing key"]
|
||||
assert len(run) == 1
|
||||
open(sys.argv[2], "w").write(run[0])
|
||||
open(sys.argv[3], "w").write(run[0])
|
||||
EOF
|
||||
then echo "FAIL: $wf: no 'The capsule-signing key' step in job $job"; ok=0; return; fi
|
||||
|
||||
run_step() { # run_step <key or empty>: the step's exit status; GITHUB_ENV and RUNNER_TEMP in $T
|
||||
: > "$T/env"
|
||||
KEY="$1" GITHUB_ENV="$T/env" RUNNER_TEMP="$T" bash -e "$T/step.sh" > "$T/out" 2>&1
|
||||
run_step() { : > "$T/env"; KEY="$1" GITHUB_ENV="$T/env" RUNNER_TEMP="$T" bash -e "$step" > "$T/out" 2>&1; }
|
||||
|
||||
if run_step ""; then echo "FAIL: $wf: no CAPSULE_SIGN_KEY: the step passed -- an unsigned build would go on"; ok=0
|
||||
else echo "PASS: $wf: no CAPSULE_SIGN_KEY: the step fails, the unsigned build is refused"; fi
|
||||
grep -q "::error::" "$T/out" && echo "PASS: $wf: and says so as an error" || { echo "FAIL: $wf: no ::error:: line"; ok=0; }
|
||||
|
||||
if run_step "-----BEGIN PRIVATE KEY----- test -----END PRIVATE KEY-----" &&
|
||||
grep -q "^SIGN_KEY=$T/capsule-signing.key$" "$T/env" && [ -s "$T/capsule-signing.key" ]; then
|
||||
echo "PASS: $wf: with a key: the step passes and hands it to the build (SIGN_KEY)"
|
||||
else echo "FAIL: $wf: with a key: the step did not pass, or did not set SIGN_KEY"; ok=0; fi
|
||||
rm -f "$T/capsule-signing.key"
|
||||
}
|
||||
|
||||
if run_step ""; then echo "FAIL: #174 no CAPSULE_SIGN_KEY: the step passed -- an unsigned build would be accepted"; ok=0
|
||||
else echo "PASS: #174 no CAPSULE_SIGN_KEY: the step fails, the gate refuses the unsigned build"; fi
|
||||
grep -q "::error::" "$T/out" && echo "PASS: #174 and says so as an error" || { echo "FAIL: #174 no ::error:: line"; ok=0; }
|
||||
|
||||
if run_step "-----BEGIN PRIVATE KEY----- test -----END PRIVATE KEY-----" && grep -q "^SIGN_KEY=$T/capsule-signing.key$" "$T/env" &&
|
||||
[ -s "$T/capsule-signing.key" ]; then
|
||||
echo "PASS: with a key: the step passes and hands it to the build (SIGN_KEY)"
|
||||
else echo "FAIL: with a key: the step did not pass, or did not set SIGN_KEY"; ok=0; fi
|
||||
check_workflow acceptance acceptance # the gate into master (#174)
|
||||
check_workflow release release # a release
|
||||
|
||||
echo "RESULT: $([ $ok = 1 ] && echo PASS || echo FAIL)"
|
||||
[ $ok = 1 ]
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user