OXYGENHUB

riscv64 check: init before the identity, and cache the target directory f5bd79d06f5c

The first native run built oxy in 40 minutes and then stopped in the
script: identity create needs a repository, so init comes first. The
target directory is now cached between passing runs (oxygenflow#70), so
later runs on narvi-1 build only what changed.

Refs andymccall/oxygenflow#69
Author
Andy McCall @andymccall <[email protected]>
via
agent agent:claude@andymccall <[email protected]> · keyless, under your grant for changes,refs,seal · key 5293169007b0
When
· 2026-10-19 15:53 UTC
Signature
◈ sealed by agent:claude@andymccall
Hash
f5bd79d06f5cfb33b21a731e54175a0d3a820972dd3b4ca0d82b645c7bc69c87
Depends on
2b668d92b066 8d6cf1f23694
Depended on by
nothing yet
In bookmarks
identical-sides keyless-tags main push-notes subrepo-pin-state
In tags
v0.10.0 v0.11.0 v0.5.0 v0.5.1 v0.6.0 v0.7.0 v0.8.0 v0.9.0
Edits
5 atoms, 0 tree operations, 2 files

Browse the tree at this change

modified .flow/pipeline.kdl +7 −2
…
144 unchanged lines
145 145
    }
146 146
}
147 147
148 -
// The native RISC-V check (oxygenflow#69): oxy built and used on narvi-1,
149 -
// a real riscv64 board, so each release is known to run there and not
148 +
// touches these paths; "Run pipeline" and reruns always do. Its target
149 +
// directory is cached between passing runs (oxygenflow#70).
150 150
// only to cross-compile (dist). Like dist, a push runs it only when it
151 151
// touches these paths; "Run pipeline" and reruns always do. A cold build
152 152
// on a small board: no cache in the syscall tier yet.
…
3 unchanged lines
156 156
    scope "Cargo.toml" "scripts/dist.sh" "packaging/**" ".flow/riscv64-check.sh"
157 157
    timeout "3h"
158 158
    mount {
159 +
        // Kept from this job's last passing run in the syscall tier too
160 +
        // (oxygenflow#70): the first build is cold (~40 min on narvi-1),
161 +
        // later ones build only what changed.
162 +
        cache "target"
163 +
        key "Cargo.lock"
159 164
        source "ephemeral://disk"
160 165
        target "/src/target"
161 166
        size "16GiB"
…
8 unchanged lines
modified .flow/riscv64-check.sh +1 −1
…
10 unchanged lines
11 11
# bookmark, a merge, and a full integrity check.
12 12
export OXY_HOME="$(mktemp -d)"
13 13
cd "$(mktemp -d)"
14 +
"$oxy" --plain init
14 15
"$oxy" --plain identity create --name "narvi-1 check" --email [email protected]
15 16
"$oxy" --plain config --user core.sign change
16 -
"$oxy" --plain init
17 17
echo one > a.txt
18 18
"$oxy" --plain commit -m "first"
19 19
"$oxy" --plain bookmark create side
…
10 unchanged lines