S16-S24: Remaining-Work plan, thesaurus occurrences, deploy docs
Some checks are pending
review / inventory (push) Waiting to run
Some checks are pending
review / inventory (push) Waiting to run
VARIABLES.md, MODULE writer, catalog review covers subjects.json, deploy rsyncs system HTML/PDF and SM docs.
This commit is contained in:
parent
07f147fffb
commit
8c09abecae
21 changed files with 1009 additions and 23 deletions
|
|
@ -27,6 +27,18 @@ fi
|
|||
if [[ -f "$ROOT/nats-service-endpoints/build/latex/nats-service-endpoints.pdf" ]]; then
|
||||
rsync -az "$ROOT/nats-service-endpoints/build/latex/nats-service-endpoints.pdf" "$HOST:/tmp/nse.pdf"
|
||||
fi
|
||||
if [[ -d "$ROOT/peergos-compliance-docs/build/html" ]]; then
|
||||
rsync -az "$ROOT/peergos-compliance-docs/build/html/" "$HOST:/tmp/pfc-docs-html/"
|
||||
fi
|
||||
if [[ -f "$ROOT/peergos-compliance-docs/build/latex/peergos-for-compliance.pdf" ]]; then
|
||||
rsync -az "$ROOT/peergos-compliance-docs/build/latex/peergos-for-compliance.pdf" "$HOST:/tmp/pfc-docs.pdf"
|
||||
fi
|
||||
if [[ -d "$ROOT/secure-messaging/build/html" ]]; then
|
||||
rsync -az "$ROOT/secure-messaging/build/html/" "$HOST:/tmp/sm-html/"
|
||||
fi
|
||||
if [[ -d "$ROOT/peergos-compliance-config/web" ]]; then
|
||||
rsync -az "$ROOT/peergos-compliance-config/web/" "$HOST:/tmp/config-web/"
|
||||
fi
|
||||
|
||||
echo "=== install on host ==="
|
||||
ssh "$HOST" 'bash -s' << "EOF"
|
||||
|
|
@ -105,6 +117,20 @@ fi
|
|||
if [ -f /tmp/nse.pdf ]; then
|
||||
sudo cp /tmp/nse.pdf /opt/pfc/docs/html/nats-service-endpoints/nats-service-endpoints.pdf
|
||||
fi
|
||||
if [ -d /tmp/pfc-docs-html ]; then
|
||||
sudo rsync -a /tmp/pfc-docs-html/ /opt/pfc/docs/html/
|
||||
fi
|
||||
if [ -f /tmp/pfc-docs.pdf ]; then
|
||||
sudo cp /tmp/pfc-docs.pdf /opt/pfc/docs/html/peergos-for-compliance.pdf
|
||||
fi
|
||||
if [ -d /tmp/sm-html ]; then
|
||||
sudo mkdir -p /opt/pfc/docs/html/secure-messaging
|
||||
sudo rsync -a /tmp/sm-html/ /opt/pfc/docs/html/secure-messaging/
|
||||
fi
|
||||
if [ -d /tmp/config-web ]; then
|
||||
sudo mkdir -p /opt/pfc/config-ui
|
||||
sudo rsync -a /tmp/config-web/ /opt/pfc/config-ui/
|
||||
fi
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now pfc-sm-leaf
|
||||
sudo systemctl restart pfc-py-admin
|
||||
|
|
|
|||
|
|
@ -19,23 +19,43 @@ run env PYTHONPATH="$ROOT/secure-messaging/python" \
|
|||
if [[ -d "$ROOT/secure-messaging/go" ]]; then
|
||||
( cd "$ROOT/secure-messaging/go" && run go test ./... )
|
||||
fi
|
||||
if [[ -d "$ROOT/peergos-compliance-go" ]]; then
|
||||
( cd "$ROOT/peergos-compliance-go" && run go test ./cmd/pfc-repl ./internal/leaf )
|
||||
fi
|
||||
if [[ -f "$ROOT/peergos-for-compliance-ipfs/pfc_ipfs/server.py" ]]; then
|
||||
run python3 -m py_compile "$ROOT/peergos-for-compliance-ipfs/pfc_ipfs/server.py"
|
||||
fi
|
||||
if [[ -f "$ROOT/peergos-for-compliance-replication/pfc_repl/server.py" ]]; then
|
||||
run python3 -m py_compile "$ROOT/peergos-for-compliance-replication/pfc_repl/server.py"
|
||||
fi
|
||||
if [[ -f "$ROOT/peergos-compliance-config/schema.json" ]]; then
|
||||
run python3 -c "import json; json.load(open('$ROOT/peergos-compliance-config/schema.json'))"
|
||||
fi
|
||||
if [[ -f "$ROOT/nats-service-endpoints/catalog/endpoints.json" ]]; then
|
||||
run python3 - << PY
|
||||
import json
|
||||
from pathlib import Path
|
||||
p = Path("$ROOT/nats-service-endpoints/catalog/endpoints.json")
|
||||
d = json.loads(p.read_text())
|
||||
names = {e["name"] for e in d["endpoints"]}
|
||||
root = Path("$ROOT")
|
||||
core = json.loads((root/"nats-service-endpoints/catalog/endpoints.json").read_text())
|
||||
derived = json.loads((root/"nats-service-endpoints/catalog/pfc-derived.json").read_text())
|
||||
names = {e["name"] for e in core["endpoints"]} | {e["name"] for e in derived["endpoints"]}
|
||||
need = {
|
||||
"verae.sm.send",
|
||||
"verae.sm.dead",
|
||||
"verae.sm.error",
|
||||
"verae.sm.log.summary",
|
||||
"verae.admin.config.sign",
|
||||
"verae.storage.pin",
|
||||
"verae.storage.replicate",
|
||||
"verae.pfc.health",
|
||||
"verae.inspect.open",
|
||||
}
|
||||
missing = sorted(need - names)
|
||||
assert not missing, missing
|
||||
print("catalog subjects ok", sorted(need))
|
||||
subj = {s["name"] for s in json.loads((root/"peergos-for-compliance/schemas/subjects.json").read_text())["subjects"]}
|
||||
gap = sorted(subj - names)
|
||||
assert not gap, gap
|
||||
print("catalog subjects ok", len(names), "covers subjects.json", len(subj))
|
||||
PY
|
||||
fi
|
||||
if [[ "$fail" -ne 0 ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue