Skip to content

Commit

Permalink
support for tunneled routing
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow committed Jan 3, 2024
1 parent a45e26b commit 216453b
Show file tree
Hide file tree
Showing 33 changed files with 799 additions and 285 deletions.
Empty file modified .github/buildomat/jobs/oxide-vpc.sh
100644 → 100755
Empty file.
29 changes: 27 additions & 2 deletions .github/buildomat/jobs/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
#:
#: name = "test"
#: variety = "basic"
#: target = "lab-2.0-opte-0.23"
#: target = "helios-2.0"
#: rust_toolchain = "stable"
#: output_rules = [
#: "/work/*.log",
#: ]
#: skip_clone = true
#:
#: [dependencies.xde]
#: job = "opte-xde"
Expand All @@ -22,6 +21,8 @@

set -o xtrace

pfexec pkg install brand/sparse opte

if [[ -z $BUILDOMAT_JOB_ID ]]; then
echo Note: if you are running this locally, you must run the xde.sh job first
echo to have the artifacts at the expected spot.
Expand All @@ -37,6 +38,30 @@ function cleanup {
}
trap cleanup EXIT

function get_artifact {
repo=$1
series=$2
commit=$3
name=$4
url=https://buildomat.eng.oxide.computer/public/file/oxidecomputer

mkdir -p download
pushd download
if [[ ! -f $name ]]; then
curl -fOL $url/$repo/$series/$commit/$name
fi
popd
}

banner "collect"
get_artifact softnpu image 88f5f1334364e5580fe778c44ac0746a35927351 softnpu
get_artifact sidecar-lite release 3fff53ae549ab1348b680845693e66b224bb5d2f libsidecar_lite.so
get_artifact sidecar-lite release 3fff53ae549ab1348b680845693e66b224bb5d2f scadm

if [[ $DOWNLOAD_ONLY -eq 1 ]]; then
exit 0;
fi

uname -a
cat /etc/versions/build

Expand Down
15 changes: 13 additions & 2 deletions .github/buildomat/jobs/xde.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
#: "=/work/xde.conf",
#: ]
#:
#: [[publish]]
#: series = "module"
#: name = "xde"
#: from_output = "/work/release/xde"
#
#: [[publish]]
#: series = "module"
#: name = "xde.sha256"
#: from_output = "/work/release/xde.sha256"

set -o errexit
set -o pipefail
Expand Down Expand Up @@ -69,10 +78,12 @@ header "check style"
ptime -m cargo +nightly-2023-10-23 fmt -p xde -p xde-link -- --check

header "analyze"
ptime -m cargo clippy -- --allow clippy::uninlined-format-args
ptime -m cargo clippy -- \
--allow clippy::uninlined-format-args --allow clippy::bad_bit_mask

pushd xde-link
ptime -m cargo clippy -- --allow clippy::uninlined-format-args
ptime -m cargo clippy -- \
--allow clippy::uninlined-format-args --allow clippy::bad_bit_mask
popd

header "build xde (debug)"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.html
target
download
Loading

0 comments on commit 216453b

Please sign in to comment.