Artifact
51e001992babae312546d8680c6dfec665f21e5cdfb4977419bf51e0f939bb6d:
Attachment "stage-now.md" to
tech note [e459e9b7bc]
added by
ollama-session
2026-10-31 15:07:31.
0000: 53 74 61 67 65 20 61 20 72 65 6c 65 61 73 65 20 Stage a release
0010: 6f 6e 20 6f 6c 6c 61 6d 61 2e 6f 70 65 6e 62 65 on ollama.openbe
0020: 61 67 6c 65 2e 6f 72 67 20 77 69 74 68 20 74 68 agle.org with th
0030: 65 20 72 65 6c 65 61 73 65 20 73 65 72 76 65 64 e release served
0040: 20 62 65 66 6f 72 65 20 61 64 32 65 36 64 35 65 before ad2e6d5e
0050: 35 39 65 61 2c 20 77 68 69 63 68 20 6b 6e 6f 77 59ea, which know
0060: 73 20 6e 6f 20 60 24 24 72 65 6c 65 61 73 65 73 s no `$$releases
0070: 24 24 60 2e 20 41 6e 20 61 64 6d 69 6e 20 73 65 $$`. An admin se
0080: 6e 64 73 20 69 74 20 77 69 74 68 20 74 68 65 20 nds it with the
0090: 63 68 65 63 6b 2d 69 6e 20 74 6f 20 73 74 61 67 check-in to stag
00a0: 65 20 61 73 20 60 6f 66 60 3b 20 69 74 20 69 73 e as `of`; it is
00b0: 20 6e 6f 74 20 66 6f 72 20 75 73 65 72 73 20 68 not for users h
00c0: 6f 6c 64 69 6e 67 20 6f 6e 6c 79 20 60 52 60 2e olding only `R`.
00d0: 20 54 68 65 20 6e 6f 64 65 20 74 61 6b 65 73 20 The node takes
00e0: 74 68 65 20 63 68 65 63 6b 2d 69 6e 27 73 20 66 the check-in's f
00f0: 69 6c 65 73 20 28 77 68 69 63 68 20 6e 61 6d 65 iles (which name
0100: 73 20 74 68 65 20 63 68 65 63 6b 2d 69 6e 20 61 s the check-in a
0110: 73 20 60 24 24 63 68 65 63 6b 6f 75 74 24 24 60 s `$$checkout$$`
0120: 29 2c 20 63 6c 6f 6e 65 73 20 74 68 65 20 73 65 ), clones the se
0130: 72 76 65 72 20 61 6e 6f 6e 79 6d 6f 75 73 6c 79 rver anonymously
0140: 2c 20 6f 70 65 6e 73 20 74 68 61 74 20 63 68 65 , opens that che
0150: 63 6b 2d 69 6e 2c 20 62 75 69 6c 64 73 20 6f 63 ck-in, builds oc
0160: 78 32 20 61 6e 64 20 72 75 6e 73 20 60 6f 63 78 x2 and runs `ocx
0170: 32 20 73 74 61 67 65 60 20 69 6e 74 6f 20 2f 76 2 stage` into /v
0180: 61 72 2f 6c 69 62 2f 6f 63 78 2f 61 67 65 6e 74 ar/lib/ocx/agent
0190: 73 2d 64 61 65 6d 6f 6e 2f 73 74 61 67 65 64 2c s-daemon/staged,
01a0: 20 74 68 65 20 6f 6e 65 20 70 61 74 68 20 6f 75 the one path ou
01b0: 74 73 69 64 65 20 69 74 73 20 77 6f 72 6b 73 70 tside its worksp
01c0: 61 63 65 20 69 74 20 6d 61 79 20 77 72 69 74 65 ace it may write
01d0: 2e 20 54 68 65 20 6e 6f 64 65 27 73 20 72 65 70 . The node's rep
01e0: 6c 79 20 73 68 6f 77 73 20 74 68 65 20 72 65 6c ly shows the rel
01f0: 65 61 73 65 27 73 20 6e 61 6d 65 20 6f 72 20 77 ease's name or w
0200: 68 79 20 69 74 20 73 74 6f 70 70 65 64 3b 20 74 hy it stopped; t
0210: 68 65 20 61 64 6d 69 6e 20 74 68 65 6e 20 61 63 he admin then ac
0220: 63 65 70 74 73 20 69 74 20 66 72 6f 6d 20 74 68 cepts it from th
0230: 65 20 70 61 67 65 20 6f 72 20 74 68 65 20 63 6f e page or the co
0240: 6d 6d 61 6e 64 20 6c 69 6e 65 2e 20 4f 6e 63 65 mmand line. Once
0250: 20 61 20 72 65 6c 65 61 73 65 20 68 6f 6c 64 69 a release holdi
0260: 6e 67 20 70 61 74 74 65 72 6e 73 2f 73 74 61 67 ng patterns/stag
0270: 65 2e 6d 64 20 69 73 20 61 63 63 65 70 74 65 64 e.md is accepted
0280: 2c 20 75 73 65 20 74 68 61 74 20 69 6e 73 74 65 , use that inste
0290: 61 64 2e 0a 0a 60 60 60 6a 73 6f 6e 0a 7b 0a 20 ad...```json.{.
02a0: 20 22 77 6f 72 6b 73 70 61 63 65 22 3a 20 5b 0a "workspace": [.
02b0: 20 20 20 20 7b 22 73 74 65 70 22 3a 20 22 64 69 {"step": "di
02c0: 72 65 63 74 6f 72 79 22 2c 20 22 61 74 22 3a 20 rectory", "at":
02d0: 22 24 24 72 6f 6f 74 24 24 2f 24 24 75 73 65 72 "$$root$$/$$user
02e0: 24 24 2f 70 72 6f 6a 65 63 74 73 2f 24 24 70 72 $$/projects/$$pr
02f0: 6f 6a 65 63 74 24 24 2f 24 24 72 75 6e 24 24 22 oject$$/$$run$$"
0300: 2c 20 22 72 65 6d 6f 76 65 5f 6f 6e 22 3a 20 22 , "remove_on": "
0310: 73 61 76 65 64 22 7d 2c 0a 20 20 20 20 7b 22 73 saved"},. {"s
0320: 74 65 70 22 3a 20 22 66 69 6c 65 73 22 2c 20 22 tep": "files", "
0330: 6f 66 22 3a 20 22 74 72 75 6e 6b 22 2c 20 22 69 of": "trunk", "i
0340: 6e 74 6f 22 3a 20 22 24 24 77 6f 72 6b 73 70 61 nto": "$$workspa
0350: 63 65 24 24 2f 66 69 6c 65 73 22 7d 0a 20 20 5d ce$$/files"}. ]
0360: 2c 0a 20 20 22 73 61 6e 64 62 6f 78 22 3a 20 7b ,. "sandbox": {
0370: 0a 20 20 20 20 22 75 69 64 22 3a 20 31 30 30 30 . "uid": 1000
0380: 2c 20 22 67 69 64 22 3a 20 31 30 30 30 2c 20 22 , "gid": 1000, "
0390: 63 61 70 61 62 69 6c 69 74 69 65 73 22 3a 20 5b capabilities": [
03a0: 5d 2c 20 22 6e 65 74 77 6f 72 6b 22 3a 20 74 72 ], "network": tr
03b0: 75 65 2c 0a 20 20 20 20 22 6f 77 6e 5f 73 65 73 ue,. "own_ses
03c0: 73 69 6f 6e 22 3a 20 74 72 75 65 2c 20 22 65 6e sion": true, "en
03d0: 64 73 5f 77 69 74 68 5f 6e 6f 64 65 22 3a 20 74 ds_with_node": t
03e0: 72 75 65 2c 0a 20 20 20 20 22 72 65 61 64 5f 6f rue,. "read_o
03f0: 6e 6c 79 22 3a 20 5b 22 2f 75 73 72 22 2c 20 22 nly": ["/usr", "
0400: 2f 62 69 6e 22 2c 20 22 2f 73 62 69 6e 22 2c 20 /bin", "/sbin",
0410: 22 2f 6c 69 62 22 2c 20 22 2f 6c 69 62 36 34 22 "/lib", "/lib64"
0420: 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ,.
0430: 20 20 20 20 22 2f 65 74 63 2f 72 65 73 6f 6c 76 "/etc/resolv
0440: 2e 63 6f 6e 66 22 2c 20 22 2f 65 74 63 2f 68 6f .conf", "/etc/ho
0450: 73 74 73 22 2c 20 22 2f 65 74 63 2f 6e 73 73 77 sts", "/etc/nssw
0460: 69 74 63 68 2e 63 6f 6e 66 22 2c 20 22 2f 65 74 itch.conf", "/et
0470: 63 2f 73 73 6c 2f 63 65 72 74 73 22 5d 2c 0a 20 c/ssl/certs"],.
0480: 20 20 20 22 72 65 61 64 5f 77 72 69 74 65 22 3a "read_write":
0490: 20 5b 22 24 24 77 6f 72 6b 73 70 61 63 65 24 24 ["$$workspace$$
04a0: 22 2c 20 22 2f 76 61 72 2f 6c 69 62 2f 6f 63 78 ", "/var/lib/ocx
04b0: 2f 61 67 65 6e 74 73 2d 64 61 65 6d 6f 6e 2f 73 /agents-daemon/s
04c0: 74 61 67 65 64 22 5d 2c 0a 20 20 20 20 22 68 6f taged"],. "ho
04d0: 6d 65 73 22 3a 20 5b 5d 2c 0a 20 20 20 20 22 66 mes": [],. "f
04e0: 69 6c 65 73 22 3a 20 5b 7b 22 61 74 22 3a 20 22 iles": [{"at": "
04f0: 2f 65 74 63 2f 70 61 73 73 77 64 22 2c 20 22 74 /etc/passwd", "t
0500: 65 78 74 22 3a 20 22 24 24 75 73 65 72 24 24 3a ext": "$$user$$:
0510: 78 3a 31 30 30 30 3a 31 30 30 30 3a 3a 24 24 77 x:1000:1000::$$w
0520: 6f 72 6b 73 70 61 63 65 24 24 3a 2f 62 69 6e 2f orkspace$$:/bin/
0530: 73 68 5c 6e 22 7d 5d 2c 0a 20 20 20 20 22 70 72 sh\n"}],. "pr
0540: 6f 63 22 3a 20 22 2f 70 72 6f 63 22 2c 20 22 64 oc": "/proc", "d
0550: 65 76 22 3a 20 22 2f 64 65 76 22 2c 20 22 74 6d ev": "/dev", "tm
0560: 70 22 3a 20 22 2f 74 6d 70 22 0a 20 20 7d 2c 0a p": "/tmp". },.
0570: 20 20 22 6c 69 6d 69 74 73 22 3a 20 7b 22 77 61 "limits": {"wa
0580: 6c 6c 22 3a 20 22 32 68 22 2c 20 22 63 70 75 22 ll": "2h", "cpu"
0590: 3a 20 33 36 30 30 2c 20 22 70 72 6f 63 65 73 73 : 3600, "process
05a0: 65 73 22 3a 20 31 30 32 34 2c 20 22 66 69 6c 65 es": 1024, "file
05b0: 73 22 3a 20 22 32 35 36 4d 22 7d 2c 0a 20 20 22 s": "256M"},. "
05c0: 70 72 6f 63 65 73 73 22 3a 20 7b 0a 20 20 20 20 process": {.
05d0: 22 75 73 65 72 22 3a 20 22 73 74 61 67 65 2d 74 "user": "stage-t
05e0: 61 73 6b 22 2c 0a 20 20 20 20 22 63 6f 6d 6d 61 ask",. "comma
05f0: 6e 64 22 3a 20 5b 22 2f 62 69 6e 2f 73 68 22 2c nd": ["/bin/sh",
0600: 20 22 2d 63 22 2c 20 22 66 6f 73 73 69 6c 20 63 "-c", "fossil c
0610: 6c 6f 6e 65 20 24 24 73 65 72 76 65 72 24 24 20 lone $$server$$
0620: 24 24 77 6f 72 6b 73 70 61 63 65 24 24 2f 63 6c $$workspace$$/cl
0630: 6f 6e 65 2e 66 6f 73 73 69 6c 20 26 26 20 6d 6b one.fossil && mk
0640: 64 69 72 20 24 24 77 6f 72 6b 73 70 61 63 65 24 dir $$workspace$
0650: 24 2f 74 72 65 65 20 26 26 20 66 6f 73 73 69 6c $/tree && fossil
0660: 20 6f 70 65 6e 20 24 24 77 6f 72 6b 73 70 61 63 open $$workspac
0670: 65 24 24 2f 63 6c 6f 6e 65 2e 66 6f 73 73 69 6c e$$/clone.fossil
0680: 20 24 24 63 68 65 63 6b 6f 75 74 24 24 20 2d 2d $$checkout$$ --
0690: 77 6f 72 6b 64 69 72 20 24 24 77 6f 72 6b 73 70 workdir $$worksp
06a0: 61 63 65 24 24 2f 74 72 65 65 20 2d 2d 6e 6f 73 ace$$/tree --nos
06b0: 79 6e 63 20 26 26 20 63 64 20 24 24 77 6f 72 6b ync && cd $$work
06c0: 73 70 61 63 65 24 24 2f 74 72 65 65 20 26 26 20 space$$/tree &&
06d0: 6e 69 63 65 20 2d 6e 20 31 39 20 73 68 61 72 64 nice -n 19 shard
06e0: 73 20 62 75 69 6c 64 20 6f 63 78 32 20 26 26 20 s build ocx2 &&
06f0: 6e 69 63 65 20 2d 6e 20 31 39 20 69 6f 6e 69 63 nice -n 19 ionic
0700: 65 20 2d 63 33 20 62 69 6e 2f 6f 63 78 32 20 73 e -c3 bin/ocx2 s
0710: 74 61 67 65 20 24 24 77 6f 72 6b 73 70 61 63 65 tage $$workspace
0720: 24 24 2f 74 72 65 65 20 2d 2d 72 6f 6f 74 20 2f $$/tree --root /
0730: 76 61 72 2f 6c 69 62 2f 6f 63 78 2f 61 67 65 6e var/lib/ocx/agen
0740: 74 73 2d 64 61 65 6d 6f 6e 22 5d 2c 0a 20 20 20 ts-daemon"],.
0750: 20 22 63 77 64 22 3a 20 22 24 24 77 6f 72 6b 73 "cwd": "$$works
0760: 70 61 63 65 24 24 22 2c 0a 20 20 20 20 22 6b 65 pace$$",. "ke
0770: 65 70 22 3a 20 7b 22 73 74 64 65 72 72 22 3a 20 ep": {"stderr":
0780: 22 34 4b 22 2c 20 22 73 74 64 6f 75 74 22 3a 20 "4K", "stdout":
0790: 22 34 4b 22 2c 20 22 73 74 64 6f 75 74 5f 77 68 "4K", "stdout_wh
07a0: 65 6e 22 3a 20 22 61 6c 77 61 79 73 22 7d 2c 0a en": "always"},.
07b0: 20 20 20 20 22 65 6e 76 22 3a 20 7b 22 48 4f 4d "env": {"HOM
07c0: 45 22 3a 20 22 24 24 77 6f 72 6b 73 70 61 63 65 E": "$$workspace
07d0: 24 24 22 2c 20 22 55 53 45 52 22 3a 20 22 24 24 $$", "USER": "$$
07e0: 75 73 65 72 24 24 22 2c 20 22 50 41 54 48 22 3a user$$", "PATH":
07f0: 20 22 2f 75 73 72 2f 6c 6f 63 61 6c 2f 62 69 6e "/usr/local/bin
0800: 3a 2f 75 73 72 2f 62 69 6e 3a 2f 62 69 6e 22 7d :/usr/bin:/bin"}
0810: 0a 20 20 7d 0a 7d 0a 60 60 60 0a . }.}.```.