code wiki / _hdl_build / nx_publish.nx

nx_publish.nx

buildroot/runtime/_hdl_build/nx_publish.nx

2221 B47 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic publish
docsdependenciesstructsconstsfunctions

about

nx_publish.nx -- the team's DOCUMENT -> BUILD -> DEPLOY publish pipeline (operator: "build the capability to document and build and deploy this ask INTO the nishi team if you wont do it"). The team now OWNS the whole loop and EXECUTES it: document (catalog/provenance) -> build (web-builder) -> deploy (sovereign ssh_put_file + backup + verify) -> check LIVENESS. It is HONEST about the outcome: LIVE -- deployed AND the live route actually serves it STAGED -- deployed + verified on the host, but the live daemon does not route it yet (the real result here: sites.elf has COMPILED-IN routes, so a doc-root file is not served) BLOCKED -- a pre-step failed; nothing deployed So the team executes everything it safely can and names exactly what is left. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_publish.nx nx_publish_test.nx

imports: nx_syscalls.nx

imported by: nx_publish_test.nx

structs

none

consts

13const PUB_BLOCKED: i64 = 0
14const PUB_STAGED: i64 = 1
15const PUB_LIVE: i64 = 2
33const PUB_GAP_NONE: i64 = 0
34const PUB_GAP_ROUTE: i64 = 1 // live daemon does not route the file (compiled-in routes -> needs rebuild or wiki)

functions

18func pub_ready(documented: i64, built: i64) -> i64
called by 2: pub_verdictmain
25func pub_verdict(documented: i64, built: i64, transferred: i64, route_serves: i64) -> i64
called by 1: main calls 1: pub_ready
35func pub_blocker(verdict: i64) -> i64 { if verdict == PUB_STAGED { return PUB_GAP_ROUTE } return PUB_GAP_NONE }
called by 1: main
38func pub_practices(doc: i64, build: i64, backup: i64, transfer: i64, verify: i64, rollback: i64) -> i64
called by 1: main