interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / benchmarks / data / headstart / patched-20261015-4c83e38 / toolchain / 07-upstream-unit.sh

39 lines · 1724 bytes Raw Blame History
1#!/usr/bin/env bash
2# SPDX-License-Identifier: Apache-2.0
3# Copyright 2026 Drake Stapleton (AIEN / aien-dev)
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Stage 7: upstream unit tests for the patches (after the timing runs).
18# PATH changes are local to this process only.
19set -uo pipefail
20E=~/workspace/headstart-exp
21H=$E/headstart
22L=$E/logs
23S=$H/rustc/build/host/stage1/bin
24J=${J:-12}
25res() { echo "$1 rc=$2 wall_s=$3" | tee -a "$L/03-results.txt"; }
26t0=$(date +%s)
27(cd "$H/rustc" && nice -n 10 ./x test tests/run-make/early-metadata tests/ui/rmeta -j "$J") > "$L/07-x-test-early-metadata.log" 2>&1
28res x-test-early-metadata-ui-rmeta $? $(( $(date +%s) - t0 ))
29t0=$(date +%s)
30(cd "$H/cargo" && RUSTC=$(rustup which --toolchain 1.98.0 rustc) PATH=$S:$PATH nice -n 10 cargo +1.98.0 test --test testsuite --no-run -j "$J") > "$L/07-cargo-testsuite-build.log" 2>&1
31rc=$?
32res cargo-testsuite-build $rc $(( $(date +%s) - t0 ))
33if [ "$rc" -eq 0 ]; then
34 t0=$(date +%s)
35 bin=$(ls -t "$H"/cargo/target/debug/deps/testsuite-* | grep -v '\.d$' | head -1)
36 (cd "$H/cargo" && PATH=$S:$PATH "$bin" headstart) > "$L/07-cargo-testsuite-headstart.log" 2>&1
37 res cargo-testsuite-headstart $? $(( $(date +%s) - t0 ))
38fi
39echo UNIT_DONE